-
Notifications
You must be signed in to change notification settings - Fork 1
/
make.sh
executable file
·37 lines (35 loc) · 1.6 KB
/
make.sh
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
#!/bin/sh
cd "`dirname "$0"`"
find . -name '.DS_Store' -type f -delete
if [ ! -d "linux" ]
then
mkdir linux
cd linux
echo Downloading DeskGap...
curl -L https://github.com/patr0nus/DeskGap/releases/download/v0.1.0/deskgap-v0.1.0-linux-x64.zip --output deskgap.zip
unzip deskgap.zip
rm deskgap.zip
mv "./DeskGap" "./gPhotos Sync"
rm -f ./gPhotos\ Sync/resources/app/*
mv "./gPhotos Sync/DeskGap" "./gPhotos Sync/gPhotos Sync"
chmod +x "./gPhotos Sync/gPhotos Sync"
cd ..
fi
echo Building gPhotos Sync App...
cp -f package.json "./linux/gPhotos Sync/resources/app/package.json"
cp -f material.min.css "./linux/gPhotos Sync/resources/app/material.min.css"
cp -f material.min.js "./linux/gPhotos Sync/resources/app/material.min.js"
cp -f material.min.css.map "./linux/gPhotos Sync/resources/app/material.min.css.map"
cp -f material.min.js.map "./linux/gPhotos Sync/resources/app/material.min.js.map"
cp -f dialog-polyfill.js "./linux/gPhotos Sync/resources/app/dialog-polyfill.js"
cp -f dialog-polyfill.css "./linux/gPhotos Sync/resources/app/dialog-polyfill.css"
cp -f icons.woff "./linux/gPhotos Sync/resources/app/icons.woff"
cp -f sql.js "./linux/gPhotos Sync/resources/app/sql.js"
cp -f gphotos-sync.js "./linux/gPhotos Sync/resources/app/gphotos-sync.js"
cp -f gphotos-sync-ui.js "./linux/gPhotos Sync/resources/app/gphotos-sync-ui.js"
cp -f gphotos-sync.css "./linux/gPhotos Sync/resources/app/gphotos-sync.css"
cp -f gphotos-sync.html "./linux/gPhotos Sync/resources/app/gphotos-sync.html"
cp -f gphotos.html "./linux/gPhotos Sync/resources/app/gphotos.html"
cd linux
zip -r "../../gPhoto Sync.zip" *
echo Done.