-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
18 lines (18 loc) · 890 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
if ! electron-packager --version
then
echo "electron-packager not installed"
echo "install using: sudo npm install electron-packager -g"
exit
fi
npm update electron
cp package.json ./src/
electron-packager ./src --platform=linux --arch=x64,ia32 --overwrite --asar --ignore="tor-(linux|win32)" --extra-resource="./src/tor-linux" --out ./dist
electron-packager "./src" --platform=win32 --arch=all --overwrite --asar --ignore="tor-(linux|win32)" --extra-resource="./src/tor-win32" --icon="./tweelectron.ico" --out ./dist --win32metadata.CompanyName="Plastikmensch"
rm ./src/package.json
echo "Copying neccessary files..."
cp ./tweelectron.png ./dist/Tweelectron-linux-ia32
cp ./tweelectron.png ./dist/Tweelectron-linux-x64
cp ./tweelectron.desktop ./dist/Tweelectron-linux-ia32
cp ./tweelectron.desktop ./dist/Tweelectron-linux-x64
echo "Finished build at $(date +%H:%M:%S)"