fix: script error

This commit is contained in:
MystiPanda 2024-03-31 16:37:33 +08:00
parent 3b06cf8a2a
commit ddab131102
No known key found for this signature in database
GPG Key ID: 47D0F0284DC57888
2 changed files with 12 additions and 1 deletions

View File

@ -361,7 +361,7 @@ const resolveLinuxServicePermission = async () => {
"uninstall-service",
];
const resDir = path.join(cwd, "src-tauri/resources");
for (f of serviceExecutables) {
for (let f of serviceExecutables) {
const targetPath = path.join(resDir, f);
if (await fs.pathExists(targetPath)) {
execSync(`chmod 755 ${targetPath}`);

11
src-tauri/Cargo.lock generated
View File

@ -777,6 +777,7 @@ dependencies = [
"tauri",
"tauri-build",
"tokio",
"users",
"warp",
"window-shadows",
"winreg 0.52.0",
@ -6048,6 +6049,16 @@ dependencies = [
"serde",
]
[[package]]
name = "users"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "24cc0f6d6f267b73e5a2cadf007ba8f9bc39c6a6f9666f8cf25ea809a153b032"
dependencies = [
"libc",
"log 0.4.20",
]
[[package]]
name = "utf-8"
version = "0.7.6"