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:
-
download and extract to some directory: https://github.com/ioBroker/ioBroker.build/archive/master.zip, e.g. to d:\ioBroker.build
-
Start the console (cmd.exe) and go to d:\ioBroker.build:
>d: >cd ioBroker.build
- Install grunt-cli:
>npm install grunt-cli -g
- Get npm packages:
>npm install
- Call grunt. It will take a while:
>grunt
- To finish .exe build, go to d:\ioBroker.build\build.windows-ready and call createSetup.bat
>cd build\.windows-ready >createSetup.bat
-
The result will be stored in d:\ioBroker.build\delivery as ioBrokerInstaller.VX.y.z.exe
-
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:
- 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
- Install grunt-cli:
#npm install grunt-cli -g
- Get npm packages:
#npm install
- Call grunt. It will take a while:
#grunt
- 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.