Building installer - golemfactory/golem-rd GitHub Wiki

LINUX

To build Linux release you need to:

  1. Build UI

    • npm install
    • npm run compile
    • npm run dist
    • cd dist
    • tar -zcvf linux-unpacked.tar.gz linux-unpacked
  2. Build golem core

    • python3 setup.py pyinstalller
  3. Put

  4. That's all. install.sh will automatically download newest release from repos


NOTE. For tests you can pass both UI and core packages to the install.sh script:

Usage: install.sh [<option> ...]

Options:
   -g, --golem           package with Golem
   -u, --ui              package with UI
   -d, --deps-only       Install only dependencies without Golem
   -h, --help            print this message

Windows

  1. Build UI

    • npm install
    • npm tun compile
    • npm run dist
  2. Copy %ELECTRON_DIR%/dist/win_unpacked dir to %GOLEM_REPO%/Installer/Installer_Win/deps

  3. Download newest release of HyperG, unpack it and copy hyperg dir to %GOLEM_REPO%/Installer/Installer_Win/deps

  4. Download dependencies mentioned on the top of the %GOLEM_REPO%/Installer/Installer_Win/install_script.iss and put all of them into %GOLEM_REPO%/Installer/Installer_Win/deps

  5. Launch InnoSetup and open %GOLEM_REPO%/Installer/Installer_Win/install_script.iss (NOTE. Make sure that repo path in the 12 line is set properly)

  6. Compile script (Ctrl+F9 or Build->Compile)

  7. Golem core will be automatically compiled and .exe file will be created in %GOLEM_REPO%/Installer/Installer_Win/ directory

⚠️ **GitHub.com Fallback** ⚠️