@7n/rules 1.7.1 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/rules/tauri/release/release.mdc +5 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -81,8 +81,10 @@ jobs:
|
|
|
81
81
|
contents: write
|
|
82
82
|
id-token: write # OIDC для Infisical
|
|
83
83
|
steps:
|
|
84
|
-
# ... checkout,
|
|
84
|
+
# ... checkout, потім (rust.mdc вимагає кеш, zizmor фейлить
|
|
85
85
|
# cache-poisoning у тег-тригереному release — прийнятий ризик приглушуємо inline):
|
|
86
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
87
|
+
with: { targets: aarch64-apple-darwin }
|
|
86
88
|
- uses: Swatinem/rust-cache@v2 # zizmor: ignore[cache-poisoning]
|
|
87
89
|
- name: Sync app version from tag
|
|
88
90
|
run: |
|
|
@@ -93,11 +95,12 @@ jobs:
|
|
|
93
95
|
- uses: Infisical/secrets-action@v1
|
|
94
96
|
with: { secret-path: '/updater' }
|
|
95
97
|
- uses: tauri-apps/tauri-action@v0
|
|
96
|
-
with: { projectPath: app }
|
|
98
|
+
with: { projectPath: app, args: '--target aarch64-apple-darwin' }
|
|
97
99
|
```
|
|
98
100
|
|
|
99
101
|
- **«Sync app version from tag» має йти перед кроком `tauri-apps/tauri-action`** — тег `vX.Y.Z` є єдиним джерелом версії для build-артефактів; `tauri.conf.json#version` у робочому дереві не редагується вручну (він там лишається тим, що востаннє поставив `n-rules release`, і синхронізується цим кроком лише в CI, не в git).
|
|
100
102
|
- Секрети підпису — з Infisical: Apple-сертифікати (`secret-path: /apple`) і `TAURI_SIGNING_PRIVATE_KEY` (`secret-path: /updater`) — обидва потрібні `tauri-apps/tauri-action`, щоб зібрати підписаний DMG з updater-артефактами.
|
|
103
|
+
- **macOS-таргет — завжди `aarch64-apple-darwin`, ніколи `universal-apple-darwin`.** Без умовного галуження за кількістю `[[bin]]` у крейті: lipo-merge крок `tauri-action` зливає між арками лише головний GUI-бінарник, а будь-який додатковий `[[bin]]`-таргет лишається поза `universal-apple-darwin`-директорією — бандлер падає на `Failed to copy binary from ".../universal-apple-darwin/release/<bin>": ... does not exist`. Синхронно звузити `with.targets` кроку `dtolnay/rust-toolchain@…` до `aarch64-apple-darwin` (без `x86_64-apple-darwin`).
|
|
101
104
|
|
|
102
105
|
### `tauri.conf.json` — updater-артефакти й endpoint
|
|
103
106
|
|