forked from Fmstrat/pushover-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakeApps.sh
More file actions
executable file
·46 lines (39 loc) · 1.16 KB
/
makeApps.sh
File metadata and controls
executable file
·46 lines (39 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env bash
if [ "$1" == "build" ]; then
cd /tmp
git clone https://github.com/jiahaog/nativefier.git
cd nativefier
docker build -t nativefier .
exit
fi
# Setup
sudo rm -rf compile binaries
mkdir -p compile
mkdir -p binaries
cp resources/* compile
chmod a+rw compile -R
chmod a+rw binaries -R
cd compile
# Linux
docker run -v "${PWD}":/target nativefier --name Pushover --tray -p linux https://client.pushover.net /target/
sudo chown $(id -u):$(id -g) . -R
mv Pushover-linux-x64 pushover
tar cvfz pushover-linux.tgz pushover
mv pushover-linux.tgz ../binaries
# Windows
docker run -v "${PWD}":/target nativefier --name Pushover --tray -i /target/icon.png -p windows https://client.pushover.net /target/
sudo chown $(id -u):$(id -g) . -R
mv Pushover-win32-x64 Pushover
zip -r Pushover-win.zip Pushover
mv Pushover-win.zip ../binaries
# OSX
docker run -v "${PWD}":/target nativefier --name Pushover --tray -p osx https://client.pushover.net /target/
sudo chown $(id -u):$(id -g) . -R
cd Pushover-darwin-x64
zip -r Pushover-osx.app.zip Pushover.app
mv Pushover-osx.app.zip ../../binaries
cd ..
# Cleanup
cd ..
sudo rm -rf compile
sudo chown $(id -u):$(id -g) binaries -R