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