fix(desktop): exclude build outputs and source maps from installers

This commit is contained in:
Yun Chan 2026-11-20 22:00:09 +09:00
parent f59a8c9df0
commit 8e3cf088c9
8 changed files with 62 additions and 15 deletions

View file

@ -116,3 +116,8 @@
- `1.18.2`도 동일한 패키징에서 `120,821,907 bytes`라 업로드 전 크기 게이트가 중단했다. `release:metadata`, `version:check`, 전 workspace typecheck와 네이티브 DB 열기·질의는 GREEN이었고, 태그만 로컬에 있고 원격 push·upload는 실행되지 않았다.
- 차분 친화적 archive는 빌더가 compression을 normal로 재설정하므로 `compression: maximum`만으로는 줄지 않았다. 분리된 `differentialPackage=false` 시험 설치본은 `108,504,875 bytes`였고 `.blockmap`을 만들지 않았다. 이것만으로는 부족해 게시하지 않았다.
- `1.18.3`은 Windows full-only(`nsis.differentialPackage=false`, `fullInstallVersionGap=0`)로 전환하고 Windows에서 사용하지 않는 nut-js, 다른 플랫폼의 SQLite 바이너리, 번들된 shared packages의 중복 복사본을 제외한다. macOS 패키지는 변경하지 않는다. 기존 차분 모드의 기본 smoke 검사는 유지하면서 full-only의 `.blockmap` 부재를 명시적 계약으로 검사한다.
- `1.18.3`의 첫 정식 빌드는 NSIS 압축 중 30분 작업 제한에 걸렸다. 생성된 `app.asar`는 약 19GB였고, 실제 header에 과거 `release/<version>/win-unpacked`의 실행 파일과 `src`/`tests`까지 포함돼 있었다. 중단된 `.nsis.7z`를 재시도가 `Archive file is up to date`로 재사용해 7-Zip `Is not archive`가 발생했다. 어떤 파일도 업로드하지 않았다.
- 패키지 입력에 `!release/**`와 Windows `out/**/*`를 명시하고, smoke가 ASAR 최상위 `release` 항목을 거부하는 테스트를 먼저 RED로 확인한 뒤 GREEN으로 고쳤다. 분리된 레이아웃 시험의 ASAR은 `54,555,897 bytes`이고 최상위 항목은 `out`, `node_modules`, `package.json`뿐이다. `release`/`src`/`tests`, `@d3ro`, `@nut-tree-fork` 포함 0건, 외부 SQLite prebuild는 `win32-x64.node`만 존재한다.
- 정상화된 트리의 full-only 크기 시험은 109.6초 만에 완료했지만 설치본은 `105,962,867 bytes`로 한도보다 `1,105,267 bytes` 컸다. ASAR 안 source map이 `15,231,119 bytes` 있어 production 패키지에서는 `!**/*.map`으로 제외한다. 실행 코드·리소스가 아니며 macOS에도 동일하게 적용할 수 있는 패키지 위생 수정이다.
- source map 제거본의 ASAR은 `38,905,787 bytes`이며 최상위 `out`/`node_modules`/`package.json`만 있고 source map·release/src/tests·제외한 package는 0건이다. 패키징된 `win32-x64` SQLite 열기·질의와 `uiohook` 검사 GREEN이다.
- full-only 설치본 시험은 106.6초 만에 `104,687,868 bytes`를 생성했다. 한도 `104,857,600 bytes`보다 `169,732 bytes` 작다. `.blockmap` 없이 `latest.yml`이 생성됐고, 실제 설치본·manifest와 레이아웃을 함께 smoke에 넣어 PE/SHA-512/feed/ASAR 계약 GREEN이다. self-test는 3 valid + 10 negative cases다.