Skip to content

Commit

Permalink
Fix platform specific build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Inrixia committed Oct 17, 2024
1 parent ce87de4 commit fdabbd5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/autoDev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,17 @@ jobs:
- name: Build Binaries
run: pnpm run build

- name: Rename Float for Windows
if: runner.os == 'Windows'
run: mv ./build/float ./build/float.exe

- name: Test Build Binaries
run: pnpm run test

- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.runs-on }}${{ matrix.runs-on == 'windows-latest' && '.exe' || '' }}
name: build-${{ matrix.runs-on }}
path: ./build/float

# Release to GitHub (runs after tests)
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
shell-emulator=true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"checkLint": "eslint ./src",
"sanity": "pnpm run checkLint && pnpm run test-esm && pnpm run build-windows-latest && pnpm run test-windows-latest",
"test-esm": "pnpm run tsc && node ./dist/float.js --sanityCheck",
"test": "cd build && float --sanityCheck",
"test": "./build/float --sanityCheck",
"makeBlob": "node --experimental-sea-config ./sea-config.json",
"bundle": "pnpm run tsc && npx esbuild ./src/float.ts --bundle --minify --tree-shaking=true --platform=node --outfile=./dist/float.cjs",
"inject": "npx postject ./build/float NODE_SEA_BLOB ./dist/float.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 --macho-segment-name NODE_SEA",
Expand Down

0 comments on commit fdabbd5

Please sign in to comment.