fix(ci): suffix macOS .app.tar.gz bundles with arch to fix auto-updater
This commit is contained in:
1 file changed
+14
-5
@@ -18,8 +18,10 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- target: aarch64-apple-darwin
|
- target: aarch64-apple-darwin
|
||||||
artifact: qbz-macos-aarch64
|
artifact: qbz-macos-aarch64
|
||||||
|
arch: aarch64
|
||||||
- target: x86_64-apple-darwin
|
- target: x86_64-apple-darwin
|
||||||
artifact: qbz-macos-x86_64
|
artifact: qbz-macos-x86_64
|
||||||
|
arch: x86_64
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -102,13 +104,20 @@ jobs:
|
|||||||
run: npm run tauri build -- --target ${{ matrix.target }}
|
run: npm run tauri build -- --target ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Collect artifacts
|
- name: Collect artifacts
|
||||||
|
env:
|
||||||
|
BUNDLE_DIR: src-tauri/target/${{ matrix.target }}/release/bundle
|
||||||
|
ARCH: ${{ matrix.arch }}
|
||||||
run: |
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
# DMG for manual distribution
|
# DMG for manual distribution (filename already includes arch).
|
||||||
cp -v src-tauri/target/${{ matrix.target }}/release/bundle/dmg/*.dmg dist/ || true
|
cp -v "$BUNDLE_DIR"/dmg/*.dmg dist/
|
||||||
# .app.tar.gz + .sig for auto-updater
|
# .app.tar.gz + .sig for auto-updater. Rename with arch suffix so the
|
||||||
cp -v src-tauri/target/${{ matrix.target }}/release/bundle/macos/*.tar.gz dist/ || true
|
# two matrix jobs don't overwrite each other on the GitHub Release,
|
||||||
cp -v src-tauri/target/${{ matrix.target }}/release/bundle/macos/*.tar.gz.sig dist/ || true
|
# and so release-updater-manifest.yml's regex picks them up
|
||||||
|
# ("aarch64.app.tar.gz$" / "(x64|x86_64).app.tar.gz$").
|
||||||
|
cp -v "$BUNDLE_DIR/macos/QBZ.app.tar.gz" "dist/QBZ_${ARCH}.app.tar.gz"
|
||||||
|
cp -v "$BUNDLE_DIR/macos/QBZ.app.tar.gz.sig" "dist/QBZ_${ARCH}.app.tar.gz.sig"
|
||||||
ls -la dist
|
ls -la dist
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
|
|||||||
Reference in new issue
Block a user