-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] "runner": "cross" in tauri.conf.json did not work when packaging linux AppImage. #4255
Comments
|
@lucasfernog Hi, how can I separate the |
It seems that I can just generate the executable via passing a If I want to make a bundle later, then I can invoke it without D:\code\rust\tauri-app>yarn tauri build --help
yarn run v1.22.17
warning package.json: No license field
$ tauri build --help
yarn-run-tauri-build 1.0.0-rc.13
Tauri build
USAGE:
yarn run tauri build [OPTIONS] [ARGS]...
ARGS:
<ARGS>... Command line arguments passed to the runner
OPTIONS:
-b, --bundles <BUNDLES> List of bundles to package
-c, --config <CONFIG> JSON string or path to JSON file to merge with tauri.conf.json
-d, --debug Builds with the debug flag
-f, --features <FEATURES> List of cargo features to activate
-h, --help Print help information
-r, --runner <RUNNER> Binary to use to build the application, defaults to `cargo`
-t, --target <TARGET> Target triple to build against. It must be one of the values
outputted by `$rustc --print target-list` or
`universal-apple-darwin` for an universal macOS application. Note
that compiling an universal macOS application requires both
`aarch64-apple-darwin` and `x86_64-apple-darwin` targets to be
installed
-v, --verbose Enables verbose logging
-V, --version Print version information
Done in 0.24s.
D:\code\rust\tauri-app> |
Describe the bug
I tried to write a github ci/cd action for a tauri app. And I use
"runner": "cross"
intauri.conf.json
. The binary compilation is ok in the docker container, but I find the linuxAppImage
packaging is not running in the docker container but in the host, so it always failed withERROR: Could not find dependency
, see linuxdeploy/linuxdeploy#203 for more details.Reproduction
yarn create tauri-app
cargo install cross
"runner": "cross"
intauri.conf.json
Cross.toml
insrc-tauri
as the following contents.yarn tauri build -t x86_64-unknown-linux-gnu -v
andyarn tauri build -t i686-unknown-linux-gnu -v
Expected behavior
Both the compilation and packaging are executed in the docker container, not the host environment.
Platform and versions
Stack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: