👷 download sync.node to correct path
This commit is contained in:
parent
be6f412285
commit
caac9cfc9e
1 changed files with 11 additions and 1 deletions
|
|
@ -28,9 +28,19 @@ const { exec } = require("child_process");
|
|||
}
|
||||
|
||||
if (process.env.target === "darwin-arm64") {
|
||||
// Remove the old binary
|
||||
exec("rm -rf sync.node", (error, stdout, stderr) => {
|
||||
if (error) {
|
||||
console.log("Error removing sync.node");
|
||||
console.log("stdout: ", stdout);
|
||||
console.log("stderr: ", stderr);
|
||||
throw error;
|
||||
}
|
||||
});
|
||||
|
||||
// Download the prebuilt binary
|
||||
exec(
|
||||
"curl -L https://continue-server-binaries.s3.us-west-1.amazonaws.com/apple-silicon/sync.node -o out/sync.node",
|
||||
"curl -L https://continue-server-binaries.s3.us-west-1.amazonaws.com/apple-silicon/sync.node -o sync.node",
|
||||
(error, stdout, stderr) => {
|
||||
if (error) {
|
||||
console.log("Error downloading sync.node");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue