The previous setup packaged the development `.env` into the installer resources, mixing local server settings (PORT/HOST/SESSION_SECRET) with the build-time site domain. Introduce a dedicated `.env.build`: - electron-builder configs now copy `.env.build` (gitignored) into `resources/`, no longer touching the dev `.env`. - `loadEnv()` prefers `resources/.env.build` first, falling back to `resources/.env` (for operators who hand-edit the packaged file), then `<root>/.env.build`, then `<root>/.env`. - `.env.build.example` documents the build-only keys (SITE_BASE_URL, MANIFEST_URL, MUSIC_CONCURRENCY); server-side keys stay in `.env`. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
32 lines
873 B
YAML
32 lines
873 B
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/**
|
|
- build/icon.*
|
|
- package.json
|
|
# 메인 설치기와 동일하게 빌드 전용 `.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}
|