Here are the last few lines of the run when it errors out for - platform: 'macos-latest' # for Arm based macs (M1 and above).:
Compiling state v0.5.3
Finished `release` profile [optimized] target(s) in 1m 20s
Warn Signing, by default, is only supported on Windows hosts, but you can specify a custom signing command in `bundler > windows > sign_command`, for now, skipping signing the installer...
Bundling deploy.app (/Users/runner/work/deploy/deploy/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/deploy.app)
Bundling deploy_1.0.0_aarch64.dmg (/Users/runner/work/deploy/deploy/src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/deploy_1.0.0_aarch64.dmg)
Running bundle_dmg.sh
Error failed to bundle project: error running bundle_dmg.sh
Error: Command failed with exit code 1: npm run tauri build -- --target aarch64-apple-darwin
I have pretty much the default script but using bun instead of npm and added 'workflow_dispatch:' for manual runs ..
the section that is erroring our is the following (see complete yml file below):
- platform: 'macos-latest' # for Arm based macs (M1 and above).
args: '--target aarch64-apple-darwin'
For complete reference here is the entire workflow file
name: '๐ Publish'
on:
workflow_dispatch:
push:
branches:
- release
# This workflow will trigger on each push to the `release` branch to create or update a GitHub release, build your app, and upload the artifacts to the release.
jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: 'macos-latest' # for Arm based macs (M1 and above).
args: '--target aarch64-apple-darwin'
- platform: 'macos-latest' # for Intel based macs.
args: '--target x86_64-apple-darwin'
- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
args: ''
- platform: 'windows-latest'
args: ''
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: ๐ ๏ธ Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: ๐ ๏ธ Set up Bun.sh
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: ๐ง Install ๐ฆ Rust ๐ขโจ Stable
uses: dtolnay/rust-toolchain@stable
with:
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
- name: ๐ง Install ๐ฆ Dependencies (๐งUbuntu only)
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
# You can remove the one that doesn't apply to your app to speed up the workflow a bit.
- name: ๐ง Install ๐ป Frontend ๐ฆ Dependencies
# change this to npm, pnpm or bun depending on which one you use.
run: bun install --frozen-lockfile # current equivalent of 'npm ci' for bun (as of 07/29/2024 see/subscribe to this issue: https://github.com/oven-sh/bun/issues/5283 for updates).
# Info: For reproducible installs, use --frozen-lockfile . This will install the exact versions of each package specified in the lockfile.
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: depoly-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
releaseName: 'Deploy v__VERSION__'
releaseBody: '๐ See the ๐ assets to โฌ๏ธ download this ๐ version and ๐ง install.'
releaseDraft: true
prerelease: false
args: ${{ matrix.args }}
Here are the last few lines of the run when it errors out for
- platform: 'macos-latest' # for Arm based macs (M1 and above).
:I have pretty much the default script but using bun instead of npm and added 'workflow_dispatch:' for manual runs ..
the section that is erroring our is the following (see complete yml file below):
For complete reference here is the entire workflow file