-
Notifications
You must be signed in to change notification settings - Fork 10
System Configuration: Windows
Parallax Git Administrator edited this page Aug 10, 2017
·
21 revisions
These configuration steps need only be done once per development system. Once done, follow the Package Steps.
- Install Git
- Install NodeJS
- https://nodejs.org/en/ Used v6.10.3 LTS as of this writing.
- Using the Git Bash console, create a folder for packaging
$ mkdir c:/Temp/ParallaxIDEPkg
- Using Windows Explorer, copy the release files from the latest Parallax IDE build into the packaging folder
- The Parallax IDE release files consists of:
- _locales (folder)
- assets (folder)
- fonts (folder)
- icons (folder)
- background.js
- bundle.js
- index.html
- manifest.json
- The Parallax IDE release files consists of:
- Initialize folder for node:
-
$ npm init
- Enter "parallaxide" for name
- Enter proper version for version
- Enter proper description for the project (can be found on the Chrome Web Store page)
- Enter "background.js" for the entry point
- Choose the default answer for all the rest of the attributes
- NOTE: pressing ENTER or typing "yes" and pressing ENTER on the Is this okay? (yes) prompt may seem to freeze. Just give it a moment and Ctrl-C to end it.
- This will create a package.json file that is required for node operations.
-
- Install nwjs-builder-phoenix
$ npm install nwjs-builder-phoenix --save-dev
- This will create a node_modules folder with many node libraries, including nwjs-builder-phoenix
- It may finish with a few warnings; this is okay.
- Update the package.json file to include the following distribution line in the scripts section
"dist": "build --tasks win-x64,linux-x64,mac-x64 --mirror https://dl.nwjs.io/ .",
- Make sure to keep the comma at the end of the line if there's another script already, or append a comma to the script reference previous to where you paste in the distribution line.
- Here's an example of the entire package.json file:
{ "name": "parallaxide", "version": "0.12.0", "description": "Testing", "main": "background.js", "scripts": { "dist": "build --tasks win-x64,linux-x64,mac-x64 --mirror https://dl.nwjs.io/ .", "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC", "devDependencies": { "nwjs-builder-phoenix": "^1.14.3" } }
Possible Installer Setup (unfinished)
- Install Innosetup 5.5.9 (non-Unicode)
- http://www.jrsoftware.org/isdl.php
- Check Install Inno Setup Preprocessor option
- Check Create a desktop shortcut option
- If you chose to run Inno Setup, just close the Open dialog for now
After configuration (above), follow the Package steps.