mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
[PR #228] [MERGED] Adds new command line parameters to 'electronize build' #1108
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ElectronNET/Electron.NET/pull/228
Author: @gfs
Created: 3/28/2019
Status: ✅ Merged
Merged: 5/16/2019
Merged by: @GregorBiswanger
Base:
master← Head:master📝 Commits (6)
c0ee3b8Fixes directory change when running script.f7cc2a9Adds three new command line options for build. Specifying the output path, and allowing specification of a package.json file to use.078ac99Revert version change.6642f9dCorrect license information in package.json to match license file included with source.7dc3072Adds additional new parameter to force a node install, instead of8b5bb63Merge branch 'master' into master📊 Changes
1 file changed (+31 additions, -1 deletions)
View changed files
📝
ElectronNET.CLI/Commands/BuildCommand.cs(+31 -1)📄 Description
Fixes #227.
electronize buildallowing users to specify the output path, and to provide their own package.json and to specify that they want annpm install/package-jsonspecifies a package.json file the user wishes to use, and sets/install-modules/install-modulesspecifies thatelectronize buildshould alwaysnpm install/relative-pathspecifies a relative path to output binaries/absolute-pathspecifies an absolute path to output binaries.buildReleaseNuGetPackages.cmdscript.Package.jsonto match the license included in the code (ISC -> MIT)The path specifications change the path provided to
electron-packager.The
package-jsonargument overwrites the bundled package.json after laying out the pre-packed files.I've tested all four commands manually.
I have noticed you have to be very careful to match your custom package.json with the auto deployed package.json. So documentation for these commands should note that. My procedure was to layout the files normally and then edit the package.json setting it aside to provide as an argument.
Update:
After additional work added one more command line parameter.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.