Skip to content

Commit

Permalink
More build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Inrixia committed May 1, 2024
1 parent 1a9bab2 commit c295f6f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/autoBuildDev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:

DockerHub:
name: "dev Build - DockerHub"
runs-on: "linux"
runs-on: "ubuntu-latest"

steps:
- name: Set up Docker Buildx
Expand Down
4 changes: 3 additions & 1 deletion make.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { mkdirSync, copyFileSync, readFileSync, writeFileSync } from "fs";
mkdirSync("./build", { recursive: true });
copyFileSync(process.execPath, "./build/float-win.exe");
const binPath = process.argv[2];
if (binPath === undefined) throw new Error("No bin path provided");
copyFileSync(process.execPath, binPath);
writeFileSync("./dist/version", JSON.parse(readFileSync("./package.json")).version);
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
"lint": "eslint ./src --fix",
"sanity": "npm run checkLint && npm run test-esm && npm run test-windows",
"test-esm": "tsc && node ./dist/float.js --sanityCheck",
"test-ubuntu-latest": "npm run build-linux && ./build/float-linux --sanityCheck",
"test-windows-latest": "npm run build-windows && cd ./build/float-win.exe --sanityCheck",
"test-ubuntu-latest": "npm run build-ubuntu-latest && ./build/float-linux --sanityCheck",
"test-windows-latest": "npm run build-windows-latest && cd ./build/float-win --sanityCheck",
"makeBlob": "node --experimental-sea-config ./sea-config.json",
"makeBin": "node make.js",
"injectWin": "npx postject ./build/float-win.exe NODE_SEA_BLOB ./dist/float.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 --overwrite",
"injectLinux": "npx postject ./build/float-linux NODE_SEA_BLOB ./dist/float.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 --overwrite",
"build-windows-latest": "npm run makeBin && npm run bundle && npm run makeBlob && npm run injectWin",
"build-ubuntu-latest": "npm run makeBin && npm run bundle && npm run makeBlob && npm run injectLinux"
"build-windows-latest": "node make.js ./build/float-win.exe && npm run bundle && npm run makeBlob && npm run injectWin",
"build-ubuntu-latest": "node make.js ./build/float-linux && npm run bundle && npm run makeBlob && npm run injectLinux"
},
"dependencies": {
"@ctrl/plex": "^3.0.0",
Expand Down

0 comments on commit c295f6f

Please sign in to comment.