fix(KAN-65): package release DMGs without Finder automation
CI/CD / preconditions (pull_request) Successful in 2s
Native JavaScript checks / Native launcher and release tests (pull_request) Successful in 1m5s
macOS checks / Native Rust tests and unsigned build (pull_request) Successful in 1m39s
CI/CD / Publish immutable image (pull_request) Canceled after 0s
CI/CD / test_and_check_app (pull_request) Canceled after 5m33s
CI/CD / preconditions (pull_request) Successful in 2s
Native JavaScript checks / Native launcher and release tests (pull_request) Successful in 1m5s
macOS checks / Native Rust tests and unsigned build (pull_request) Successful in 1m39s
CI/CD / Publish immutable image (pull_request) Canceled after 0s
CI/CD / test_and_check_app (pull_request) Canceled after 5m33s
This commit is contained in:
@@ -176,6 +176,9 @@ jobs:
|
|||||||
- name: Build, sign and notarize with Tauri
|
- name: Build, sign and notarize with Tauri
|
||||||
uses: tauri-apps/tauri-action@1deb371b0cd8bd54025b384f1cd735e725c4060f # v1.0.0
|
uses: tauri-apps/tauri-action@1deb371b0cd8bd54025b384f1cd735e725c4060f # v1.0.0
|
||||||
env:
|
env:
|
||||||
|
# The DMG bundler reads these variables separately from --ci.
|
||||||
|
CI: "true"
|
||||||
|
TAURI_BUNDLER_DMG_IGNORE_CI: "false"
|
||||||
APPLE_ID: dev@petsch-studios.de
|
APPLE_ID: dev@petsch-studios.de
|
||||||
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
||||||
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
|
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
|
||||||
|
|||||||
@@ -113,6 +113,19 @@ test('manual release on main accepts an existing tag without moving it', (t) =>
|
|||||||
assert.equal(f.git(f.checkout, 'rev-parse', 'macos-v1.2.3'), f.commit);
|
assert.equal(f.git(f.checkout, 'rev-parse', 'macos-v1.2.3'), f.commit);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('release DMG packaging disables Finder automation in the Tauri action environment', () => {
|
||||||
|
const build = workflow
|
||||||
|
.split(' - name: Build, sign and notarize with Tauri\n')[1]
|
||||||
|
.split('\n - name:')[0];
|
||||||
|
const environment = build
|
||||||
|
.split(' env:\n')[1]
|
||||||
|
.split(' with:\n')[0];
|
||||||
|
assert.match(environment, /^ {10}CI: "true"$/m);
|
||||||
|
assert.match(environment, /^ {10}TAURI_BUNDLER_DMG_IGNORE_CI: "false"$/m);
|
||||||
|
assert.match(build, /--bundles app,dmg/);
|
||||||
|
assert.match(build, /"createUpdaterArtifacts":true/);
|
||||||
|
});
|
||||||
|
|
||||||
for (const [name, overrides] of [
|
for (const [name, overrides] of [
|
||||||
['web release tag', { GITHUB_REF: 'refs/tags/v1.2.3' }],
|
['web release tag', { GITHUB_REF: 'refs/tags/v1.2.3' }],
|
||||||
['missing tag', { GITHUB_REF: 'refs/tags/macos-v9.9.9' }],
|
['missing tag', { GITHUB_REF: 'refs/tags/macos-v9.9.9' }],
|
||||||
|
|||||||
Reference in New Issue
Block a user