-
Notifications
You must be signed in to change notification settings - Fork 10
Package: All Platforms
Parallax Git Administrator edited this page Aug 23, 2017
·
21 revisions
These steps need to be performed on a pre-configured development system every time a new installation package is desired.
-
Build Parallax IDE
- Use the steps shown in the repository's readme.md file
-
Remove "Update" message (which doesn't work properly wrapped in NW.js)
- Remove the ...runtime.onInstalled... function from the background.js file
chrome.runtime.onInstalled.addListener(function(evt){ chrome.storage.local.set({newVersion: 'newVersion'}); });
- Remove the ...runtime.onInstalled... function from the background.js file
-
Package Parallax IDE for Window, Macintosh, and Linux
$ ./node_modules/.bin/build --chrome-app --win --x64 ./src- This will create a dist folder containing a subfolder for the platform target(s)
-
Clean Up
- Unfortunately, nwjs-builder-phoenix mangles the icon resources. Use the application ResourceHacker to remove the icon resources from the windows target Parallax IDE.exe executable and replace them with the icon.ico resource. This results in a nicely anti-aliased icon at every resolution.
- Note that Windows Explorer often won't update right away; changing the filename may fix this - restarts don't seem to fix it, but the problem only exists on the system that built it.
- Unfortunately, nwjs-builder-phoenix mangles the icon resources. Use the application ResourceHacker to remove the icon resources from the windows target Parallax IDE.exe executable and replace them with the icon.ico resource. This results in a nicely anti-aliased icon at every resolution.
-
Test
- Perform normal testing on the app
- If you receive a message indicating "Your profile can not be used because it is from a newer version of NW.js.", the following is useful:
-
https://github.com/nwjs/nw.js/issues/5761
- Note: Also look for and delete the "MSG_appName" folder in %LOCALAPPDATA% as the Parallax IDE manifest uses that text.
- http://docs.nwjs.io/en/latest/References/Command%20Line%20Options/#-user-data-dir
-
https://github.com/nwjs/nw.js/issues/5761
- If you receive a message indicating "Your profile can not be used because it is from a newer version of NW.js.", the following is useful:
- Perform normal testing on the app
-
Run InnoSetup * File > Open the .spec file: ...\package\parallaxide-installer.iss_ * Select Build > Compile
- Now the installer executable will be in the ./dist subfolder.