Skip to content

Commit 9168337

Browse files
author
Mindless999
committed
Revert "Allow build to run on MacOS"
This reverts commit 738f929.
1 parent 56fe50b commit 9168337

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

make.js

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ import { execSync } from "child_process";
22
import { copyFileSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "fs";
33
import { platform } from "os";
44

5-
//Check if using MacOS
6-
const isMac = process.platform === "darwin";
7-
8-
// Used to have items writable during build on MacOS
9-
import fs from "fs";
10-
115
const run = (cmd) => execSync(cmd, { stdio: "inherit" });
126

137
const binPath = platform() === "win32" ? ".\\build\\float.exe" : "./build/float";
@@ -28,19 +22,7 @@ copyFileSync(process.execPath, binPath);
2822
writeFileSync("./build/version", JSON.parse(readFileSync("./package.json")).version);
2923

3024
// Create the blob
31-
if (isMac) {
32-
execSync("node --experimental-sea-config sea-config.json", {
33-
stdio: "inherit",
34-
});
35-
// Set permissions for float which otherwise breaks the build or run
36-
fs.chmodSync("./build/float", 0o755);
37-
38-
console.log("macOS SEA build complete (no postject)");
39-
process.exit(0);
40-
}
41-
else{
42-
run("node --experimental-sea-config ./sea-config.json");
43-
}
25+
run("node --experimental-sea-config ./sea-config.json");
4426

4527
// Inject the blob
4628
run(`npx postject ${binPath} NODE_SEA_BLOB ./dist/float.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 --macho-segment-name NODE_SEA`);

0 commit comments

Comments
 (0)