fix exe paths
This commit is contained in:
parent
29096f502d
commit
10e5b82714
2 changed files with 6 additions and 6 deletions
6
.github/workflows/main.yaml
vendored
6
.github/workflows/main.yaml
vendored
|
|
@ -57,19 +57,19 @@ jobs:
|
|||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: Linux Build
|
||||
path: extension/server/exe/run-linux
|
||||
path: extension/server/exe/linux
|
||||
|
||||
- name: Download macOS build
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: macOS Build
|
||||
path: extension/server/exe/run-darwin
|
||||
path: extension/server/exe/mac
|
||||
|
||||
- name: Download Windows build
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: Windows Build
|
||||
path: extension/server/exe/run-windows.exe
|
||||
path: extension/server/exe/windows
|
||||
|
||||
- name: Use Node.js 19.0.0
|
||||
uses: actions/setup-node@v3
|
||||
|
|
|
|||
|
|
@ -452,14 +452,14 @@ export async function startContinuePythonServer() {
|
|||
const exeDir = path.join(getExtensionUri().fsPath, "server", "exe");
|
||||
let exePath: string;
|
||||
if (os.platform() === "win32") {
|
||||
exePath = path.join(exeDir, "run-win.exe");
|
||||
exePath = path.join(exeDir, "windows", "run.exe");
|
||||
} else if (os.platform() === "darwin") {
|
||||
exePath = path.join(exeDir, "run-darwin");
|
||||
exePath = path.join(exeDir, "mac", "run");
|
||||
// Add permissions
|
||||
await runCommand(`chmod +x ${exePath}`);
|
||||
await runCommand(`xattr -dr com.apple.quarantine ${exePath}`);
|
||||
} else {
|
||||
exePath = path.join(exeDir, "run-linux");
|
||||
exePath = path.join(exeDir, "linux", "run");
|
||||
}
|
||||
|
||||
// Run the executable
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue