Open terrablue opened 4 months ago
I'm also having this issue.
Can you try using --target=bun-darwin-x64-baseline
, I was able to cross compile for MacOS x64.
See the note about baseline
on this page: https://bun.sh/docs/bundler/executables#cross-compile-to-other-platforms
Hello @terrablue. Please provide a minimal reproduction using a GitHub repository, Replit, or CodeSandbox. Issues marked with needs repro
will be closed if they have no activity within 3 days.
Hi. I added the baseline variant to the repo, still doesn't work.
Please note that the problem isn't cross-compilation (as described in the original issue), it's about running the binary on MacOS x64. This doesn't work whether I compile the binary on Linux and copy it to a Mac computer or compile it directly on Mac.
Hi @paperdave, were you able to reproduce the issue, is the problem clear now?
What version of Bun is running?
1.1.13+bd6a60512
What platform is your computer?
Linux 6.9.5-arch1-1 x86_64 unknown
What steps can reproduce the bug?
npm run mac
mac/app
to an Mac (x64) device and run itWhat is the expected behavior?
A webview window should open with the content
hi
.What do you see instead?
Nothing happens.
Additional information
This is related to https://github.com/oven-sh/bun/issues/7901. Running a compiled binary which incorporates a worker and a shared library asset works for Linux and Windows, but not for Mac (x64).
For comparison with Linux and Windows, run
npm run linux
andnpm run windows
in the same repository and the executableslinux/app
on Linux andwindows/app.exe
on Windows. Both work as expected.