The rp installer's `index.html` references `../installer/styles.css`, which works in dev because both source directories sit side by side. The packaged exe's `files` list only included `installer-rp/**`, so inside the asar the stylesheet path resolved to nothing and the UI rendered completely unstyled (per user screenshot). Add the single shared file `installer/styles.css` to the rp build's file list. The cross-directory `<link>` reference now resolves inside the asar, and we avoid duplicating the stylesheet. Bump to 0.1.1 — small patch-level fix. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
42 lines
1.5 KiB
YAML
42 lines
1.5 KiB
YAML
appId: kr.tkrmagid.musicquiz.installer-rp
|
|
productName: MusicQuizResourcepackInstaller
|
|
# 루트 package.json 의 "main" 은 메인 설치기를 가리키므로, 패키지된 앱이
|
|
# 리소스팩 설치기를 진입점으로 쓰도록 빌드 시 main 을 덮어쓴다.
|
|
extraMetadata:
|
|
main: dist/installer-rp/main.js
|
|
directories:
|
|
output: release
|
|
buildResources: build
|
|
files:
|
|
- dist/installer-rp/**
|
|
- dist/shared/**
|
|
- installer-rp/**
|
|
# rp 의 index.html 은 메인 설치기와 동일한 styles.css 를 공유함
|
|
# (`<link href="../installer/styles.css">`). asar 안에 해당 파일이 없으면
|
|
# UI 가 무스타일로 렌더링되므로 그 한 파일만 명시적으로 포함.
|
|
- installer/styles.css
|
|
- build/icon.*
|
|
- package.json
|
|
# sharp 는 플랫폼별 prebuilt 가 분리 패키지로 배포됨. Windows 빌드에서는
|
|
# win32-x64 만 포함하고 linux/* 변종은 묶지 않아 exe 크기를 줄임.
|
|
- "!node_modules/@img/sharp-linux-*"
|
|
- "!node_modules/@img/sharp-linuxmusl-*"
|
|
- "!node_modules/@img/sharp-libvips-linux-*"
|
|
- "!node_modules/@img/sharp-libvips-linuxmusl-*"
|
|
# 메인 설치기와 동일하게 빌드 전용 `.env.build` 와 locales 를 함께 배포.
|
|
extraResources:
|
|
- from: .
|
|
to: .
|
|
filter:
|
|
- .env.build
|
|
- from: locales
|
|
to: locales
|
|
filter:
|
|
- "**/*"
|
|
win:
|
|
target: portable
|
|
artifactName: ${productName}-${version}-Portable.${ext}
|
|
icon: build/icon.ico
|
|
portable:
|
|
artifactName: ${productName}-${version}-Portable.${ext}
|