Skip to content

Commit 1dec988

Browse files
Unify release workflow and keep mac arm64-only assets
1 parent fa233d9 commit 1dec988

3 files changed

Lines changed: 1 addition & 8 deletions

File tree

.github/RELEASE_SETUP.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ scripts/macos-notarize-dmg.sh target/aarch64-apple-darwin/release/bundle/osx/att
7676
```
7777
3. `Release` workflow runs automatically and uploads:
7878
- `attn-v<VERSION>-darwin-arm64`
79-
- `attn-v<VERSION>-darwin-x64`
8079
- matching `.sha256` files
8180
- `attn-v<VERSION>-darwin-arm64.dmg` and checksum when notarization secrets are configured
8281
4. A GitHub Release for the tag is created/updated with those assets.

.github/workflows/release.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ jobs:
2020
- runner: macos-14
2121
target: aarch64-apple-darwin
2222
asset_suffix: darwin-arm64
23-
- runner: macos-13
24-
target: x86_64-apple-darwin
25-
asset_suffix: darwin-x64
2623
steps:
2724
- name: Checkout
2825
uses: actions/checkout@v4

scripts/postinstall.mjs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const assetSuffix = resolveAssetSuffix(process.platform, process.arch);
2020
if (!assetSuffix) {
2121
console.warn(
2222
`attn: unsupported platform ${process.platform}/${process.arch}. ` +
23-
"Currently supported: darwin-arm64, darwin-x64."
23+
"Currently supported: darwin-arm64."
2424
);
2525
process.exit(0);
2626
}
@@ -47,9 +47,6 @@ function resolveAssetSuffix(platform, arch) {
4747
if (platform === "darwin" && arch === "arm64") {
4848
return "darwin-arm64";
4949
}
50-
if (platform === "darwin" && arch === "x64") {
51-
return "darwin-x64";
52-
}
5350
return null;
5451
}
5552

0 commit comments

Comments
 (0)