fix
This commit is contained in:
1453
package-lock.json
generated
1453
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -10,6 +10,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tauri-apps/cli": "^2",
|
||||
"npx": "^3.0.0",
|
||||
"rcedit": "^1.1.2"
|
||||
}
|
||||
}
|
||||
|
||||
3
sidecar/package-lock.json
generated
3
sidecar/package-lock.json
generated
@@ -9,6 +9,9 @@
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"castv2-client": "^1.2.0"
|
||||
},
|
||||
"bin": {
|
||||
"radiocast-sidecar": "index.js"
|
||||
}
|
||||
},
|
||||
"node_modules/@protobufjs/aspromise": {
|
||||
|
||||
Binary file not shown.
@@ -37,9 +37,9 @@ if (localBin) {
|
||||
cmd = localBin;
|
||||
args = [exePath, '--set-icon', iconPath];
|
||||
} else {
|
||||
// Fallback to npx. Note: Node can't execute PowerShell shims (npx.ps1), so this may fail
|
||||
// in environments that only provide .ps1 launchers.
|
||||
cmd = 'npx';
|
||||
// Fallback to npx. Use the platform-specific shim on Windows so Node spawn finds it.
|
||||
// PowerShell-only shims like npx.ps1 won't work with Node spawn; prefer npx.cmd.
|
||||
cmd = process.platform === 'win32' ? 'npx.cmd' : 'npx';
|
||||
args = ['rcedit', exePath, '--set-icon', iconPath];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user