fix(desktop): use full Windows installers within the feed limit

This commit is contained in:
Yun Chan 2026-11-20 21:13:37 +09:00
parent 52df7e7e7b
commit df680e4716
17 changed files with 109 additions and 32 deletions

View file

@ -7,7 +7,7 @@ copyright: Copyright © 2026 D3RO
# 자동 감지가 실패하는 문제를 피하려고 명시적으로 버전 고정.
electronVersion: "43.8.10"
# 설치 크기 절감 — 지원 로케일만 포함한다
# 설치본 압축을 최대로 — 빌드는 느려지지만 업로드 한도(100MiB) 안에 들어야 한다
# Windows full-only 패키지는 차분용 1MiB 사전/비-solid 제약 없이 최대 압축을 사용한다
compression: maximum
electronLanguages:
- ko
@ -28,6 +28,8 @@ files:
- "!node_modules/better-sqlite3/prebuilds/linux*"
# 런타임에 쓰지 않는 SQLite 소스(amalgamation) · C++ 소스
- "!node_modules/better-sqlite3/{deps,src}/**"
# shared packages는 main/preload/renderer에 번들됐고 main locale도 out/main/locales에 복사됐다
- "!node_modules/@d3ro/**"
# 렌더러 전용 패키지 — Vite 가 out/renderer 번들에 이미 넣었다. 메인/프리로드는 require 하지 않는다
# (out/main · out/preload 의 require 목록으로 확인). Electron 43 으로 실행 파일이 47MB 커져
# 설치본이 Cloudflare 업로드 한도(100MiB)를 넘었기 때문에 중복 사본을 뺀다.
@ -67,6 +69,10 @@ asarUnpack:
# ────────────────────────────────────────────────────────────────────
win:
icon: build/icon.ico
files:
# Windows는 koffi SendInput을 사용하므로 nut-js/Jimp의 macOS·Linux 입력 경로는 제외한다
- "!node_modules/@nut-tree-fork/**"
- "!node_modules/better-sqlite3/prebuilds/{darwin*,win32-arm64.node}"
# Stable artifacts must never silently fall back to an unsigned build.
forceCodeSigning: true
target:
@ -156,6 +162,8 @@ extraResources:
to: ollama/
nsis:
# Cloudflare 100MiB 한도 안에서 최대 solid 압축을 쓴다. Windows는 .blockmap 없이 전체 설치본을 받는다.
differentialPackage: false
# 파일명 공백 금지 — mac.artifactName 주석과 동일한 이유 (latest.yml url 정합)
artifactName: "D3RO-Voice-Setup-${version}-${arch}.${ext}"
# oneClick=false + perMachine=false 조합이 System.dll 0xc0000005 크래시 사례(#7921).

View file

@ -77,6 +77,11 @@ describe('decideUpdate', () => {
expect(decision.forceFull).toBe(true)
})
it('full-only 정책이면 작은 패치도 전체 설치 파일을 받는다', () => {
const fullOnly = { ...policy, fullInstallVersionGap: 0 }
expect(decideUpdate(fullOnly, '1.18.2', '1.18.3').forceFull).toBe(true)
})
it('major 정책이 꺼져 있으면 major 승격도 차분 가능', () => {
const relaxed = { ...policy, fullInstallOnMajorChange: false }
expect(decideUpdate(relaxed, '1.9.0', '2.0.0').forceFull).toBe(false)