Browse Source

fix: script error

MystiPanda 1 year ago
parent
commit
ddab131102
2 changed files with 12 additions and 1 deletions
  1. 1 1
      scripts/check.mjs
  2. 11 0
      src-tauri/Cargo.lock

+ 1 - 1
scripts/check.mjs

@@ -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 - 0
src-tauri/Cargo.lock

@@ -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"