|
Hello, I am trying building the example single executable application on windows, following this document. But the bundled binary is not working on Windows, and it does not output the And I also tried directly running the copied node exectuable, and it also output nothing. Reproduction: https://github.com/yjl9903/unbuild-sea/blob/main/.github/workflows/compile.yaml Running logs: https://github.com/yjl9903/unbuild-sea/actions/runs/4752558049/jobs/8443057778 name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: ${{ matrix.target }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- target: linux
os: ubuntu-latest
bin: hello
- target: windows
os: windows-latest
bin: hello
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: npm
- name: Install
run: npm install
- name: Copy on windows
if: ${{ matrix.target == 'windows' }}
run: |
echo (Get-Command node).source
cp (Get-Command node).source ${{ matrix.bin }}
echo '---'
ls .
echo '---'
ls (Split-Path -Path (Get-Command node).source)
echo '---'
./${{ matrix.bin }} --version
echo '---'
- name: Copy on linux
if: ${{ matrix.target != 'windows' }}
run: |
cp $(command -v node) ${{ matrix.bin }}
- name: Build
run: |
node --experimental-sea-config sea-config.json
npx postject ${{ matrix.bin }} NODE_SEA_BLOB sea-prep.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2
./${{ matrix.bin }} world
- name: Test on windows
if: ${{ matrix.target == 'windows' }}
run: |
.\${{ matrix.bin }} world
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.bin }}-${{ matrix.target }}
path: ./${{ matrix.bin }} |
Answered by
RaisinTen
Apr 21, 2023
Replies: 2 comments 4 replies
|
@nodejs/single-executable |
0 replies
|
Could you try renaming the Windows binary name in https://github.com/yjl9903/unbuild-sea/blob/1bd3c785207a5d3745aa29110073f26860135335/.github/workflows/compile.yaml#L26 from |
4 replies
Answer selected by
yjl9903
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could you try renaming the Windows binary name in https://github.com/yjl9903/unbuild-sea/blob/1bd3c785207a5d3745aa29110073f26860135335/.github/workflows/compile.yaml#L26 from
hellotohello.exe?