Repository navigation
Add package:win script that builds the Windows installer from WSL - #2
Merged
Merged
Conversation
- Replace the `package` script with `package:win`, which runs scripts/package-win.mjs - Under WSL, stage the built app in the Windows temp dir and run electron-builder on the host, since Wine is needed for the NSIS uninstaller on Linux - Copy the resulting installer back into release/<version>/ - Lint config covers scripts/**/*.mjs; README documents the new command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
packagescript topackage:win, to matchpackage:linuxandpackage:mac.scripts/package-win.mjs. Under WSL it copies the built app to the Windows host's temp directory and runs electron-builder there with the host's Node. Building the NSIS installer on Linux needs Wine, which WSL doesn't have..blockmapback intorelease/<version>/. It also removes the broken stub and.7zleft by earlier Linux attempts.electron-builder --win --x64as before.scripts/**/*.mjsto the Node globals in the ESLint config, and update the README command list.Testing
npm run package:winfrom WSL twice. Both runs producedPhotoEarth Setup 0.1.0.exeand its.blockmap.npm run typecheck,npm run lint, andnpm testpass (464 tests).