Skip to content

Package: All Platforms

Parallax Git Administrator edited this page Feb 2, 2023 · 21 revisions

These steps are for building and packaging using the pre-2023 original method and need to be performed on a pre-configured development system every time a new installation package is desired.

Packaging (All Platforms) [original/deprecated steps]

  • Build Parallax IDE
    • Use the steps shown in the repository's readme.md file
  • Remove "Update" message (which doesn't work properly when 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'});
      });
      
  • Package Parallax IDE for Windows and Macintosh
    • $ ./node_modules/.bin/build --chrome-app --win --x64 --mac --x64 ./app
    • This will create a app/dist subfolder containing a subfolder for the platform target(s)
  • Clean Up
    • Unfortunately, nwjs-builder-phoenix mangles the executable's 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.
      • Open Resource Hacker
      • File > Open, and select the Parallax IDE.exe
      • Select the Icon Group and press Ctrl+D
      • Select Action > Add Single Binary or Image Resource...
      • On the "Add Binary Resource" window, click the Select File... button
      • Select the /icons/icon.ico file
      • Click the Add Resource button
      • Save the updated executable
        • This results in a nicely anti-aliased icon at every resolution.
      • Delete the auto-created Parallax IDE_original.exe file
    • Note that Windows Explorer often won't update right away. Clear the icon cache to fix this.
      • Win7: $ ie4uinit.exe -ClearIconCache
      • Win10: $ ie4uinit.exe -show
  • Run InnoSetup
    • File > Open the .spec file: ...\package\parallaxide-installer.iss_
    • Select Build > Compile
    • Now the installer executable will be in the ./dist subfolder.
  • Test