Skip to content

Conversation

@gfs
Copy link
Contributor

@gfs gfs commented Mar 28, 2019

Fixes #227.

  1. Adds four new command line parameters to electronize build allowing users to specify the output path, and to provide their own package.json and to specify that they want an npm install
  • /package-json specifies a package.json file the user wishes to use, and sets /install-modules
  • /install-modules specifies that electronize build should always npm install
  • /relative-path specifies a relative path to output binaries
  • /absolute-path specifies an absolute path to output binaries.
  1. Fixes a directory change side effect of the buildReleaseNuGetPackages.cmd script.
  2. Updates the license information in Package.json to match the license included in the code (ISC -> MIT)

The path specifications change the path provided to electron-packager.

The package-json argument 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.

@robertmuehsig
Copy link
Collaborator

@GregorBiswanger Didn't you implement something with the custom package.json? Is this merged to master?
@gfs Gregor is the "mastermind" bind the integration between the node.js world and the .NET world. Is his currently on vacation, but IMHO this looks good. Thanks for your contribution!

Gabe Stocco added 2 commits March 28, 2019 15:45
skipping due to an existing node_modules folder. This is also implicitly
triggered by providing your own package.json file. This ensures that the
actual packages match the package.json.
@gfs
Copy link
Contributor Author

gfs commented Mar 30, 2019

Thanks @robertmuehsig! Happy to answer any questions here about my changes.

@gfs gfs changed the title Adds three new command line parameters to 'electronize build' Adds new command line parameters to 'electronize build' Mar 30, 2019
@GregorBiswanger GregorBiswanger merged commit ba16c4e into ElectronNET:master May 15, 2019
@izakntun
Copy link

This works with electronize start command?

@gfs
Copy link
Contributor Author

gfs commented Nov 29, 2021

I don't believe that this PR added this functionality to the start command. Just build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Package.json location

4 participants