hotfix(build): npm run dist Mac arm64 cross-platform 지원 #20

Merged
altair823 merged 1 commits from hotfix/arm-mac-build into main 2026-05-02 07:06:25 +00:00
Owner

Summary

npm run dist 가 ARM Mac (Apple Silicon) 에서도 동작하도록 cross-platform 빌드 지원. Windows 빌드 동작은 그대로 (host-default 가 win32 → win-x64).

Changes

scripts

  • dist: electron-builder --win --x64electron-builder (host-default)
  • dist:dir: 동일하게 --win --x64 제거
  • 신규 dist:win: 강제 Windows 빌드 (--win --x64) — 기존 동작 보존
  • 신규 dist:mac: 강제 Mac 빌드 (--mac --arm64)
  • predist:win / predist:mac hooks (rebuild + build)

build.mac 블록 추가

"mac": {
  "target": [{ "target": "dmg", "arch": ["arm64"] }],
  "category": "public.app-category.productivity",
  "identity": null
}

identity: null — 개인 dogfood 라 codesign skip. 첫 실행 시 "Apple 이 검증할 수 없음" 경고 → 우클릭 → 열기.

Verification

  • typecheck 0
  • 단위 403/403 (회귀 X)
  • npm run dist:dir on Windows → platform=win32 arch=x64 정상 빌드

사용법

머신 명령 결과
어떤 머신이든 npm run dist host-default (Win→Windows / Mac→Mac)
강제 npm run dist:win NSIS x64
강제 npm run dist:mac DMG arm64
## Summary `npm run dist` 가 ARM Mac (Apple Silicon) 에서도 동작하도록 cross-platform 빌드 지원. Windows 빌드 동작은 그대로 (host-default 가 win32 → win-x64). ## Changes **`scripts`** - `dist`: `electron-builder --win --x64` → `electron-builder` (host-default) - `dist:dir`: 동일하게 `--win --x64` 제거 - 신규 `dist:win`: 강제 Windows 빌드 (`--win --x64`) — 기존 동작 보존 - 신규 `dist:mac`: 강제 Mac 빌드 (`--mac --arm64`) - `predist:win` / `predist:mac` hooks (rebuild + build) **`build.mac` 블록 추가** ```json "mac": { "target": [{ "target": "dmg", "arch": ["arm64"] }], "category": "public.app-category.productivity", "identity": null } ``` `identity: null` — 개인 dogfood 라 codesign skip. 첫 실행 시 "Apple 이 검증할 수 없음" 경고 → 우클릭 → 열기. ## Verification - typecheck 0 - 단위 403/403 (회귀 X) - `npm run dist:dir` on Windows → `platform=win32 arch=x64` 정상 빌드 ## 사용법 | 머신 | 명령 | 결과 | |---|---|---| | 어떤 머신이든 | `npm run dist` | host-default (Win→Windows / Mac→Mac) | | 강제 | `npm run dist:win` | NSIS x64 | | 강제 | `npm run dist:mac` | DMG arm64 |
altair823 added 1 commit 2026-05-02 07:05:29 +00:00
- dist / dist:dir 에서 --win --x64 제거 → electron-builder host-default
  (Windows 에선 win-x64, Mac 에선 mac-arm64 자동 선택)
- 명시적 강제 variant 추가: dist:win, dist:mac
- build.mac 블록 추가:
  - target: dmg / arch: arm64
  - category: productivity
  - identity: null (개인 dogfood, codesign skip)

검증:
- typecheck 0
- 단위 403/403
- npm run dist:dir on Windows: platform=win32 arch=x64 (회귀 X)

Mac arm64 빌드 시 첫 실행 시 "Apple 이 검증할 수 없음" 경고 → 우클릭 → 열기 (codesign 미적용 의도).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
altair823 merged commit 4e1f60cb7d into main 2026-05-02 07:06:25 +00:00
altair823 deleted branch hotfix/arm-mac-build 2026-05-02 07:06:26 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: altair823-org/inkling#20