/ioBroker.build

Build installation packages for ioBroker.

Primary LanguageHTMLMIT LicenseMIT

ioBroker.build

Build installation packages for ioBroker.

Prerequires:

  • Node JS with NPM
  • Windows to build .exe and debian to build .deb
  • Internet connection, because the ioBroker.nodejs will be downloaded by grunt.

#Build on windows:

  1. download and extract to some directory: https://github.com/ioBroker/ioBroker.build/archive/master.zip, e.g. to d:\ioBroker.build

  2. Start the console (cmd.exe) and go to d:\ioBroker.build:

   >d:
   >cd ioBroker.build
  1. Install grunt-cli:
   >npm install grunt-cli -g
  1. Get npm packages:
   >npm install
  1. Call grunt. It will take a while:
   >grunt
  1. To finish .exe build, go to d:\ioBroker.build\build.windows-ready and call createSetup.bat
   >cd build\.windows-ready
   >createSetup.bat
  1. The result will be stored in d:\ioBroker.build\delivery as ioBrokerInstaller.VX.y.z.exe

  2. To build .deb, copy the directory d:\ioBroker.build\build.debian-pi-ready to debian and call

   #sudo sh redeb.sh

The file ioBroker-VX.y.z.deb will be created.

#Build on Debian:

  1. download and extract to some directory: https://github.com/ioBroker/ioBroker.build/archive/master.zip, e.g. /tmp/ioBroker.build
   #cd /tmp
   #wget https://github.com/ioBroker/ioBroker.build/archive/master.zip
   #unzip master.zip
  1. Install grunt-cli:
   #npm install grunt-cli -g
  1. Get npm packages:
   #npm install
  1. Call grunt. It will take a while:
   #grunt
  1. To build .deb, go the directory build/.debian-pi-ready to debian and call
   #cd build/.debian-pi-ready
   #sudo sh redeb.sh

The file ioBroker-VX.y.z.deb will be created.