Implement "prepare" mode: Let the user see and work with the calculated values (final paths, names, versions, etc) without having to build and inspect the results #1265
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.
Add "prepare" mode, calculating all major values and returning it to user, without having to "build" anything.
Use output object to build if
options.mode
is'build'
This will allow for builder apps to better handle building apps using
nw-builder
without having to know in advance what the nwjs app is going to provide.Using things like, for example,
, a lot of things can be streamlined, without having to parse the app's manifest itself, without knowing in advance how nw-builder will parse/assign values, without having to make sure that any path resolves to what the builder app thinks/hopes it does (hopefully it should just be resolving things within the CWD, but who knows), etc
ToDo: Implement OSX behavior (has its own file, I'm not sure of the reasons, nor can I test the behavior)
Fixes: #1264