debugging old pyinstaller exe

This commit is contained in:
Nate Sesti 2023-08-14 11:58:11 -07:00
parent 7cfa711d4a
commit dec135ed1e
3 changed files with 9 additions and 7 deletions

View file

@ -49,7 +49,7 @@ jobs:
needs: pyinstaller
strategy:
matrix:
os: [windows-latest]
os: [macos-latest, ubuntu-20.04, windows-latest]
runs-on: ${{ matrix.os }}

View file

@ -1,2 +1,3 @@
**.whl
exe/**
exe/**
exe

View file

@ -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}`);