debugging old pyinstaller exe
This commit is contained in:
parent
7cfa711d4a
commit
dec135ed1e
3 changed files with 9 additions and 7 deletions
2
.github/workflows/main.yaml
vendored
2
.github/workflows/main.yaml
vendored
|
|
@ -49,7 +49,7 @@ jobs:
|
|||
needs: pyinstaller
|
||||
strategy:
|
||||
matrix:
|
||||
os: [windows-latest]
|
||||
os: [macos-latest, ubuntu-20.04, windows-latest]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
|
|
|
|||
3
extension/server/.gitignore
vendored
3
extension/server/.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
|||
**.whl
|
||||
exe/**
|
||||
exe/**
|
||||
exe
|
||||
|
|
@ -186,6 +186,7 @@ export async function startContinuePythonServer() {
|
|||
console.log("Continue server already downloaded");
|
||||
shouldDownload = false;
|
||||
} else {
|
||||
console.log("Old version of the server downloaded");
|
||||
fs.unlinkSync(destination);
|
||||
}
|
||||
}
|
||||
|
|
@ -201,9 +202,9 @@ export async function startContinuePythonServer() {
|
|||
await downloadFromS3(bucket, fileName, destination, "us-west-1");
|
||||
}
|
||||
);
|
||||
console.log("Downloaded server executable at ", destination);
|
||||
}
|
||||
|
||||
console.log("Downloaded server executable at ", destination);
|
||||
// Get name of the corresponding executable for platform
|
||||
if (os.platform() === "darwin") {
|
||||
// Add necessary permissions
|
||||
|
|
@ -245,16 +246,16 @@ export async function startContinuePythonServer() {
|
|||
detached: true,
|
||||
stdio: "ignore",
|
||||
};
|
||||
const settings: any =
|
||||
os.platform() === "win32" ? windowsSettings : macLinuxSettings;
|
||||
const settings: any = windowsSettings;
|
||||
// os.platform() === "win32" ? windowsSettings : macLinuxSettings;
|
||||
|
||||
// Spawn the server
|
||||
const child = spawn(destination, settings);
|
||||
|
||||
// Either unref to avoid zombie process, or listen to events because you can
|
||||
if (os.platform() === "win32") {
|
||||
if (os.platform() === "win32" || true) {
|
||||
child.stdout.on("data", (data: any) => {
|
||||
// console.log(`stdout: ${data}`);
|
||||
console.log(`stdout: ${data}`);
|
||||
});
|
||||
child.stderr.on("data", (data: any) => {
|
||||
console.log(`stderr: ${data}`);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue