Skip to content

Build and Package: Windows

Parallax Git Administrator edited this page Mar 9, 2017 · 3 revisions

These steps need to be performed on a pre-configured development system every time a new installation package is desired.

Windows Building & Packaging

  • Build the BlocklyPropClient
    • Open a command window
    • Check out the needed branch from the BlocklyPropClient repository
      • This can be done either
        • in PyCharm's VCS > Git > Branches... menu, then select origin/{branch} > Checkout as new local branch from Remote Branches (or if Local Branches section exists, you can select {branch} -> origin/{branch} from Local Branches), then Exit PyCharm
        • in Git command line:
          • $ cd C:\Users{username}\PycharmProjects\BlocklyPropClient
          • $ git checkout origin {branch}
    • Run the build script (.windows.spec) from within the repository directory:
      • $ c:\Python27\Scripts\pyinstaller BlocklyPropClient.windows.spec
        • This builds and stores the application files in the ./dist subfolder which will be used by InnoSetup.
  • Package BlocklyPropClient
    • Run InnoSetup
      • File > Open the .spec file: C:\Users{username}\PycharmProjects\BlocklyPropClient\package\blocklypropclient-installer.iss
      • Select Build > Compile
    • Now the installer executable will be in the ./dist subfolder.