expose tauri fs api
This commit is contained in:
parent
cc6997baec
commit
610ea414c1
2 changed files with 8 additions and 3 deletions
|
|
@ -17,7 +17,7 @@ tauri-build = { version = "1.4.0", features = [] }
|
|||
[dependencies]
|
||||
serde_json = "1.0"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
tauri = { version = "1.4.0", features = [] }
|
||||
tauri = { version = "1.4.0", features = ["fs-all"] }
|
||||
|
||||
[features]
|
||||
# this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
"beforeBuildCommand": "npm run build",
|
||||
"beforeDevCommand": "npm run dev",
|
||||
"devPath": "http://localhost:3000",
|
||||
"distDir": "../website/dist"
|
||||
"distDir": "../website/dist",
|
||||
"withGlobalTauri": true
|
||||
},
|
||||
"package": {
|
||||
"productName": "Strudel",
|
||||
|
|
@ -12,7 +13,11 @@
|
|||
},
|
||||
"tauri": {
|
||||
"allowlist": {
|
||||
"all": false
|
||||
"all": false,
|
||||
"fs": {
|
||||
"all": true,
|
||||
"scope": ["$AUDIO/**", "$AUDIO"]
|
||||
}
|
||||
},
|
||||
"bundle": {
|
||||
"active": true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue