Skip to content

Windows: cli installed using bun i -g cannot be run after executing the strip command. #25051

@ahaoboy

Description

@ahaoboy

https://github.com/ahaoboy/bun-strip-test/blob/main/.github/workflows/test.yml

bun i -g quickjs-emscripten-cli

strip $(which "quickjs-emscripten-cli.exe")

quickjs-emscripten-cli test.js
D:\a\_temp\f1d69090-8a33-443b-a2ec-75cc0c509dd6.sh: line 2: /c/Users/runneradmin/.bun/bin/quickjs-emscripten-cli: cannot execute binary file: Exec format error

https://github.com/ahaoboy/js-engine-benchmark/actions/runs/19556393461
1.3.2+b131639cc

I'm not entirely sure if this issue only appeared after version 1.3.3, but the last version that could run after stripping was 1.3.2+b131639cc.

In 1.3.3+274e01c73, if you run the stripped program from the command line on Windows, a confirmation dialog pops up, which causes CI to never finish.

🔍 Found: /c/Users/runneradmin/.bun/bin/quickjs-emscripten-cli.exe
✅ Stripped: /c/Users/runneradmin/.bun/bin/quickjs-emscripten-cli.exe


cmd: {
  cmd: "quickjs-emscripten-cli  D:\\a\\js-engine-benchmark\\js-engine-benchmark\\dist\\run.js",
  cwd: "C:/Users/runneradmin/.bun/bin",
}
exec output {
  err: null,
  stdout: "Richards: 366\nDeltaBlue: 389\nCrypto: 416\nRayTrace: 462\nEarleyBoyer: 877\nRegExp: 179\nSplay: 1266\nNavierStokes: 736\n----\nScore: 502\n",
  stderr: "",
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions