feat(packaging): add electron-builder NSIS installer + Windows autostart
- electron-builder 26.8.1 (devDep, exact pin) with NSIS x64 target - moved electron 41.3.0 to devDependencies (electron-builder requirement) - new scripts: dist, dist:dir, predist runs rebuild:electron + build - main: detect --hidden arg, skip inbox window on hidden launch - main: first-run autostart enable on packaged Windows (.autostart-init flag) - tray: 'Windows 시작 시 자동 실행' checkbox (packaged only) - README: packaging section + Dev Mode requirement Build verified: dist/Inkling Setup 0.2.0.exe (100MB), dist/win-unpacked/ runs better-sqlite3 native module from app.asar.unpacked. Note: requires Windows Developer Mode ON (winCodeSign cache extraction contains darwin symlinks that need SeCreateSymbolicLinkPrivilege). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
21
README.md
21
README.md
@@ -55,6 +55,27 @@ Quick Capture 창이 화면 중앙 상단에 뜬다. 한 줄 던지고 `Ctrl+Ent
|
||||
|
||||
---
|
||||
|
||||
## 패키징 (Windows NSIS 인스톨러)
|
||||
|
||||
```bash
|
||||
# Windows 개발자 모드 ON 필요 (winCodeSign 캐시 추출 시 darwin symlink 풀어야 해서)
|
||||
# 설정 → 시스템 → 개발자용 → 개발자 모드 ON
|
||||
|
||||
npm run dist # NSIS 인스톨러: dist/Inkling Setup x.y.z.exe
|
||||
npm run dist:dir # 패키징 없이 win-unpacked 디렉터리만
|
||||
```
|
||||
|
||||
산출물:
|
||||
- `dist/Inkling Setup 0.2.0.exe` — 약 100MB, oneClick=false (설치 위치 선택 가능)
|
||||
- `dist/win-unpacked/` — portable 디렉터리, 그대로 실행 가능
|
||||
|
||||
설치 후:
|
||||
- 첫 실행 시 `app.isPackaged === true` 면 `<프로필>/.autostart-init` 마커가 없을 때 한정 자동 시작 ON 으로 설정 (`--hidden` 인자 포함, inbox 창 안 뜨고 트레이만)
|
||||
- 이후 트레이 메뉴 → "윈도우 시작 시 자동 실행" 토글로 조작
|
||||
- 자동 시작 시 inbox 창은 안 뜸. `Ctrl+Shift+J` 또는 트레이 클릭으로 호출
|
||||
|
||||
---
|
||||
|
||||
## 테스트
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user