Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buiding debian package #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
client/
client/
dist/
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,13 @@ You should just need to run `./build.sh` but if that fails run the following com
cd client/
npm install

To build debian package run the following commands:

npm install electron-installer-debian electron-packager
./node_modules/.bin/electron-packager client KiwiIRC-Desktop --platform linux --arch x64 --out dist/ --overwrite
./node_modules/.bin/electron-installer-debian --src dist/KiwiIRC-Desktop-linux-x64/ --dest dist/installers/ --arch amd64 --options.icon icons/kiwiirclogo_256x256.png

`.deb` file is available in `dist/installers/` folder

# Running for development
To run the client you will need to install electron (`sudo npm -g install electron`) then enter the `client/` directory and type `electron .`
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ git submodule init
git submodule update
cd ./kiwiirc/
yarn install && yarn build
rm -rf ../client
mv ./dist ../client
cd ..
cp client-defaults/config.json client/static/config.json
Expand All @@ -15,3 +16,7 @@ cp -r icons/ client/icons
cp -r client-defaults/plugins client/plugins
cd client/
npm install
cd ../
npm install electron electron-installer-debian electron-packager
./node_modules/.bin/electron-packager client KiwiIRC-Desktop --platform linux --arch x64 --out dist/ --overwrite
./node_modules/.bin/electron-installer-debian --src dist/KiwiIRC-Desktop-linux-x64/ --dest dist/installers/ --arch amd64 --options.icon icons/kiwiirclogo_256x256.png