Skip to content

Commit ebf2656

Browse files
beautyfreeclaude
andcommitted
v0.2.7: macOS Intel (x64) build target
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f079a8d commit ebf2656

4 files changed

Lines changed: 24 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
Desktop installers — download the one that matches your OS:
3636
3737
- **macOS (Apple Silicon):** `Skiller-<version>-macos-arm64.dmg` (signed + notarized — drag to Applications)
38+
- **macOS (Intel):** `Skiller-<version>-macos-x64.dmg` (signed + notarized — drag to Applications)
3839
- **Windows (x64):** `Skiller-<version>-win-x64.exe` (NSIS installer)
3940
- **Linux (x64):** `Skiller-<version>-linux-x86_64.AppImage` or `.deb`
4041

electron-builder.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ mac:
4646
# and auto-updates silently break for macOS users.
4747
target:
4848
- target: dir
49-
arch: [arm64]
49+
arch: [arm64, x64]
5050
- target: zip
51-
arch: [arm64]
51+
arch: [arm64, x64]
5252

5353
# Electron-builder's own DMG creation is disabled on macOS (see target: dir
5454
# above). scripts/repack-dmg.sh produces the styled, drag-to-Applications DMG

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "skiller",
3-
"version": "0.2.6",
3+
"version": "0.2.7",
44
"description": "A desktop app for managing AI agent skills across Claude Code, Cursor, Copilot, Gemini CLI, and more",
55
"license": "MIT",
66
"author": {
@@ -20,7 +20,7 @@
2020
"preview": "electron-vite preview",
2121
"typecheck": "tsc --noEmit && tsc -p tsconfig.node.json --noEmit",
2222
"test": "bun test src/shared/skill-footprint.test.ts",
23-
"dist:mac": "electron-vite build && electron-builder --mac && bash scripts/repack-dmg.sh",
23+
"dist:mac": "electron-vite build && electron-builder --mac --arm64 --x64 && bash scripts/repack-dmg.sh arm64 && bash scripts/repack-dmg.sh x64",
2424
"dist:win": "electron-vite build && electron-builder --win",
2525
"dist:linux": "electron-vite build && electron-builder --linux && node scripts/patch-appimage-runtime.mjs artifacts"
2626
},

scripts/repack-dmg.sh

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,32 @@
66
# the bug doesn't exist, but the styled DMG stays as industry-standard UX
77
# (see Slack, Chrome, Notion — all do this).
88
#
9-
# Expected input: artifacts/mac-arm64/Skiller.app (from `electron-builder --mac`
10-
# with mac.target = dir).
11-
# Output: artifacts/Skiller-<version>-macos-arm64.dmg — signed, notarized,
9+
# Expected input: artifacts/mac-<arch>/Skiller.app (from `electron-builder --mac`
10+
# with mac.target = dir). Pass the target arch as the first arg: arm64 or x64.
11+
# Defaults to the host arch for backwards compat with local one-shot runs.
12+
# Output: artifacts/Skiller-<version>-macos-<arch>.dmg — signed, notarized,
1213
# stapled.
1314
#
1415
# Requires: create-dmg (brew install create-dmg), xcrun, codesign.
1516
set -euo pipefail
1617

1718
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
18-
ARCH="$(uname -m)"
19+
20+
# Normalize: accept arm64|x64 as input; the DMG filename uses that, and
21+
# electron-builder's output dir uses the same tokens (mac-arm64, mac-x64)
22+
# when multiple arches are built in one invocation. When only one arch is
23+
# built, electron-builder drops the suffix (just `mac/`) — handle that too.
24+
RAW_ARCH="${1:-$(uname -m)}"
25+
case "$RAW_ARCH" in
26+
arm64|aarch64) ARCH="arm64" ;;
27+
x64|x86_64|amd64) ARCH="x64" ;;
28+
*) echo "error: unknown arch '$RAW_ARCH'" >&2; exit 1 ;;
29+
esac
30+
1931
BUILD_DIR="$ROOT_DIR/artifacts/mac-${ARCH}"
32+
if [[ ! -d "$BUILD_DIR" && -d "$ROOT_DIR/artifacts/mac" ]]; then
33+
BUILD_DIR="$ROOT_DIR/artifacts/mac"
34+
fi
2035
APP_PATH="$BUILD_DIR/Skiller.app"
2136
BG_IMG="$ROOT_DIR/assets/dmg/background.png"
2237
APP_ICON="$ROOT_DIR/assets/icons/app.icns"

0 commit comments

Comments
 (0)