[ENG-1928] Update to tauri 2.0.1 stable (#2752)

* Update to tauri 2.0.0 stable
 - Update a some othe dependencies
 - Autoformat rust and toml files

* Fix clippy complain

* Update tauri 2.0.1
 - Update rspc
 - Update some frontend files due changes in rspc
 - Update some frontend build dependencies

* Revert babel update

* Fix code typing typing and style + a couple of bugs

* More type fixes
This commit is contained in:
Vítor Vasconcellos
2024-10-05 18:17:30 -03:00
committed by GitHub
parent f4622b5d2f
commit cdc50140b0
79 changed files with 201 additions and 290 deletions

View File

@@ -19,7 +19,7 @@
},
"dependencies": {
"smol-toml": "^1.3.0",
"archive-wasm": "^1.7.0",
"archive-wasm": "^1.7.1",
"mustache": "^4.2.0",
"os-proxy-config": "^1.1.1",
"plist": "^3.1.0",
@@ -28,17 +28,17 @@
},
"devDependencies": {
"@babel/core": "^7.24.0",
"@babel/eslint-parser": "^7.24.1",
"@babel/eslint-plugin": "^7.23.5",
"@babel/eslint-parser": "^7.24.0",
"@babel/eslint-plugin": "^7.24.0",
"@types/mustache": "^4.2.5",
"@types/node": ">18.18.x",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"eslint": "^8.57.0",
"@typescript-eslint/eslint-plugin": "^8.8.0",
"@typescript-eslint/parser": "^8.8.0",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-jsdoc": "^48.2.1",
"eslint-plugin-prettier": "^5.1.3",
"typescript": "^5.4.2"
"eslint-plugin-jsdoc": "^50.3.1",
"eslint-plugin-prettier": "^5.2.1",
"typescript": "^5.6.2"
}
}

View File

@@ -37,6 +37,13 @@ const __dirname = path.dirname(__filename)
// NOTE: Must point to package root path
const __root = path.resolve(path.join(__dirname, '..'))
const extractOpts = {
chmod: 0o600,
sizeLimit: 256n * 1024n * 1024n,
recursive: true,
overwrite: true,
}
const bugWarn =
'This is probably a bug, please open a issue with you system info at: ' +
'https://github.com/spacedriveapp/spacedrive/issues/new/choose'
@@ -74,13 +81,7 @@ try {
)
console.log(`Extracting native dependencies...`)
await spinTask(
extractTo(archiveData, nativeDeps, {
chmod: 0o600,
recursive: true,
overwrite: true,
})
)
await spinTask(extractTo(archiveData, nativeDeps, extractOpts))
} catch (e) {
console.error(`Failed to download native dependencies.\n${bugWarn}`)
if (__debug) console.error(e)
@@ -119,14 +120,7 @@ try {
)
console.log(`Extracting native dependencies...`)
await spinTask(
extractTo(archiveData, specificMobileNativeDeps, {
chmod: 0o600,
sizeLimit: 256n * 1024n * 1024n,
recursive: true,
overwrite: true,
})
)
await spinTask(extractTo(archiveData, specificMobileNativeDeps, extractOpts))
}
} catch (e) {
console.error(`Failed to download native dependencies for mobile.\n${bugWarn}`)