tauri
tauri copied to clipboard
[bug] Building release Appimage leads to broken external binary in the package
Describe the bug
When building the app for release with an external binary (this binary was built using pkg) this causes the binary to break only for AppImage works fine it's a deb on macOS & windows.
Reproduction
- Download the linux binary from here
- Clone this repo: https://github.com/fayeed/test-tauri
- Copy that to
src-tauri/bins
- Run
yarn tauri build
- The Binary that's copied in
src-tauri/target/release/bundle/appimage/test-tauri.AppDir/usr/bin/ad4m
when run using./ad4m serve
will throw this error message
pkg/prelude/bootstrap.js:1
���
�/�$����_��&�"�-���
�/�(������[��*�︈b
SyntaxError: Invalid or unexpected token
at new Script (node:vm:101:7)
at readPrelude (node:internal/bootstrap/pkg:29:13)
at node:internal/bootstrap/pkg:36:18
at node:internal/bootstrap/pkg:43:4
at node:internal/bootstrap/pkg:44:2
Expected behavior
Expect the release AppImage binary to work.
Platform and versions
Environment › OS: Ubuntu 22.04 X64 › Node.js: 16.13.2 › npm: 8.1.2 › pnpm: Not installed! › yarn: 1.22.15 › rustup: 1.24.3 › rustc: 1.60.0 › cargo: 1.60.0 › Rust toolchain: stable-x86_64-unknown-linux-gnu
Packages › @tauri-apps/cli [NPM]: 1.0.5 › @tauri-apps/api [NPM]: Not installed! › tauri [RUST]: 1.0.5, › tauri-build [RUST]: 1.0.4, › tao [RUST]: 0.12.2, › wry [RUST]: 0.19.0,
App › build-type: bundle › CSP: unset › distDir: ../src › devPath: ../src
App directory structure ├─ node_modules ├─ src ├─ .git ├─ src-tauri └─ .vscode
Stack trace
No response
Additional context
No response