-
Notifications
You must be signed in to change notification settings - Fork 673
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
[docs] tauri build --bundles dmg
can works?
#3097
Comments
Yes it does work. The linked reference is auto generated on a Linux system and the help output is platform specific. |
Since you opened another issue, here's how to build a universal app/dmg:
Note that thanks to apple this (currently) only works on macOS machines. |
@FabianLars |
i'll reopen this because we really need to add back those instructions to the new docs (we've had it in v1) |
@FabianLars
How can I resolve this issue? This is my CI script. execute:
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- export PATH="$HOME/.cargo/bin:$PATH"
- rustup target add aarch64-apple-darwin x86_64-apple-darwin
- apt-get update
- apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf jq
- VERSION=$(jq -r '.version' package.json)
- yarn
- cargo install tauri-cli --git https://github.com/tauri-apps/tauri
- yarn tauri build -- --target universal-apple-darwin Error occurs in |
Like I said above, you can only build macos apps on a macos machine. Your CI seems to be running on Linux though. |
https://v2.tauri.app/distribute/dmg/
This document says
yarn tauri build --bundles dmg
can works.https://v2.tauri.app/reference/cli/#build
But in this document, dmg option is not valid.
How to bundle dmg which targets universal-apple-darwin?
The text was updated successfully, but these errors were encountered: