Some checks failed
deploy-site / deploy (push) Failing after 14m16s
The released installer could not start: it carried a better-sqlite3 build for the host Node runtime instead of Electron, so the app died immediately with a module version mismatch when it opened its database. Packaging now proves the Electron build of every runtime-sensitive native module before an installer or archive exists, and installers are produced only from that verified tree, so the mistake cannot pass silently. The release pipelines run the same check. The default local model also pointed at a retired model: a *.gguf name that Ollama cannot serve, while the settings, onboarding, and guide screens recommended an older model. All of them now use the model the service code already preferred.
148 lines
7 KiB
YAML
148 lines
7 KiB
YAML
appId: com.d3ro.voice
|
|
productName: D3RO Voice
|
|
copyright: Copyright © 2026 D3RO
|
|
# monorepo(npm workspaces)에서 electron이 루트 node_modules로 호이스팅되어
|
|
# 자동 감지가 실패하는 문제를 피하려고 명시적으로 버전 고정.
|
|
electronVersion: "33.4.11"
|
|
# 설치 크기 절감 — 지원 로케일만 포함한다
|
|
electronLanguages:
|
|
- ko
|
|
- en-US
|
|
|
|
directories:
|
|
# buildResources를 build/로 지정 — resources/icons/가 비어있어 아이콘 자동 스캔이 실패하는 것을 우회.
|
|
# 아이콘 준비되면 build/icon.png(또는 .ico)를 두고 win.icon을 명시.
|
|
buildResources: build
|
|
output: release/${version}
|
|
|
|
files:
|
|
- out/**/*
|
|
- "!out/**/*.map"
|
|
# ffmpeg 정적 바이너리(61MB)는 설치본에 넣지 않는다 — 필요할 때 런타임으로 내려받는다
|
|
- "!node_modules/@ffmpeg-installer/**"
|
|
# ffmpeg 정적 바이너리(61MB)는 설치본에 넣지 않는다 — 필요할 때 런타임으로 내려받는다
|
|
- "!node_modules/@ffmpeg-installer/**"
|
|
|
|
# ────────────────────────────────────────────────────────────────────
|
|
# 자동 업데이트 feed — 이 설정이 있어야 electron-builder가
|
|
# latest.yml / latest-mac.yml (update info)를 생성한다.
|
|
# generic provider는 파일 생성만 트리거하고 직접 업로드는 하지 않음
|
|
# (업로드는 scripts/ci/publish-forgejo-release.mjs 담당).
|
|
# canonical 호스트 = Forgejo (git.chanpaca.net/yunchan/d3ro-voice).
|
|
# src/main/update-feed.ts의 UPDATE_FEED_URL과 반드시 동일 값 유지.
|
|
# ────────────────────────────────────────────────────────────────────
|
|
publish:
|
|
provider: generic
|
|
url: "https://git.chanpaca.net/api/packages/yunchan/generic/d3ro-voice/latest"
|
|
|
|
# prerelease 버전(0.1.1-alpha)에서 채널을 "alpha"로 감지해 alpha.yml을 만드는 동작 차단 —
|
|
# electron-updater(기본 채널 latest)가 latest.yml을 찾으므로 항상 latest 채널로 고정.
|
|
detectUpdateChannel: false
|
|
|
|
# native 모듈은 asar 외부에 배치
|
|
asarUnpack:
|
|
- "node_modules/better-sqlite3/**"
|
|
- "node_modules/uiohook-napi/**"
|
|
- "node_modules/@nut-tree-fork/**"
|
|
|
|
# ────────────────────────────────────────────────────────────────────
|
|
# Windows
|
|
# 주: icon 지정 시 resources/icons/icon.ico 필요. 초기 배포에선 생략하여
|
|
# electron 기본 아이콘 사용(아이콘 준비되면 win.icon 라인 추가).
|
|
# ────────────────────────────────────────────────────────────────────
|
|
win:
|
|
icon: build/icon.ico
|
|
# Stable artifacts must never silently fall back to an unsigned build.
|
|
forceCodeSigning: true
|
|
target:
|
|
- target: nsis
|
|
arch:
|
|
- x64
|
|
|
|
# ────────────────────────────────────────────────────────────────────
|
|
# macOS
|
|
# ────────────────────────────────────────────────────────────────────
|
|
mac:
|
|
# icns는 electron-builder가 build/icon.png(1024)에서 자동 생성
|
|
icon: build/icon.png
|
|
category: public.app-category.productivity
|
|
# 파일명 공백 금지 — GitLab Generic Package Registry가 공백을 불허해
|
|
# latest-mac.yml의 url과 레지스트리 업로드명이 어긋나면 업데이트 다운로드 404.
|
|
artifactName: "D3RO-Voice-${version}-${arch}.${ext}"
|
|
# x64 제외 — 사이드카(PyInstaller)가 arm64 전용이라 x64 산출물은 깨진 빌드가 됨.
|
|
# Intel Mac 수요 발생 시 x64 runner에서 별도 빌드.
|
|
target:
|
|
- target: dmg
|
|
arch:
|
|
- arm64
|
|
- target: zip
|
|
arch:
|
|
- arm64
|
|
hardenedRuntime: true
|
|
gatekeeperAssess: false
|
|
entitlements: build/entitlements.mac.plist
|
|
entitlementsInherit: build/entitlements.mac.plist
|
|
notarize: false
|
|
extendInfo:
|
|
NSMicrophoneUsageDescription: "D3RO Voice는 음성 인식을 위해 마이크 접근이 필요합니다."
|
|
NSCameraUsageDescription: "D3RO Voice는 스크린 컨텍스트 캡처를 위해 화면 녹화 권한이 필요합니다."
|
|
NSAppleEventsUsageDescription: "D3RO Voice는 활성 앱 정보를 가져오기 위해 다른 앱 제어 권한이 필요합니다."
|
|
NSSystemAdministrationUsageDescription: "D3RO Voice는 전역 핫키 등록을 위해 접근성 권한이 필요합니다."
|
|
|
|
dmg:
|
|
writeUpdateInfo: false
|
|
contents:
|
|
- x: 130
|
|
y: 220
|
|
- x: 410
|
|
y: 220
|
|
type: link
|
|
path: /Applications
|
|
|
|
# ────────────────────────────────────────────────────────────────────
|
|
# 공통 리소스 번들
|
|
# ────────────────────────────────────────────────────────────────────
|
|
extraResources:
|
|
# 앱 아이콘 (트레이/런타임용 — paths.ts getAppIconPath)
|
|
- from: build/icon.ico
|
|
to: icons/icon.ico
|
|
- from: build/icon.png
|
|
to: icons/icon.png
|
|
|
|
# 효과음 (플랫폼 공통)
|
|
- from: resources/sounds/
|
|
to: sounds/
|
|
filter:
|
|
- "*.wav"
|
|
|
|
# SoX 바이너리
|
|
# 주의: filter에 "**/*"를 쓰면 하위 디렉토리가 통째로 누락된다(실측).
|
|
# 디렉토리를 그대로 복사할 때는 filter를 지정하지 않는다.
|
|
- from: resources/sox/
|
|
to: sox/
|
|
|
|
# 주의: 로컬 AI 런타임(사이드카 엔진, ffmpeg)은 여기에 넣지 않는다.
|
|
# 포함하면 설치본이 Cloudflare 업로드 한도(100MiB)를 넘어 자동 업데이트 메타데이터를
|
|
# 게시할 수 없다(실측: 엔진 포함 189MB vs 엔진 제외 90.5MiB). 런타임은 처음 필요할 때
|
|
# RuntimeProvisioner가 feed에서 내려받아 검증한 뒤 해제해 설치한다.
|
|
|
|
|
|
# Ollama 바이너리 (포터블 zip을 사전 배치)
|
|
- from: resources/ollama/
|
|
to: ollama/
|
|
|
|
nsis:
|
|
# 파일명 공백 금지 — mac.artifactName 주석과 동일한 이유 (latest.yml url 정합)
|
|
artifactName: "D3RO-Voice-Setup-${version}-${arch}.${ext}"
|
|
# oneClick=false + perMachine=false 조합이 System.dll 0xc0000005 크래시 사례(#7921).
|
|
# 사내 테스트 단계에선 oneClick=true로 전환하여 크래시 경로 회피.
|
|
oneClick: true
|
|
perMachine: false
|
|
allowToChangeInstallationDirectory: false
|
|
createDesktopShortcut: true
|
|
createStartMenuShortcut: true
|
|
shortcutName: D3RO Voice
|
|
deleteAppDataOnUninstall: false
|
|
# installer.nsh 비활성화 유지 (System.dll 크래시 방지)
|
|
|
|
npmRebuild: true
|