-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev_create_release.sh
executable file
·42 lines (33 loc) · 1.12 KB
/
dev_create_release.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
37
38
39
40
41
42
#!/bin/sh
cp LICENSE LICENSE_openpgp local
rm -rf local/static
cp -r app local/static
cd local
rm -rf templates
mkdir templates
mv static/index.html static/icon-*.html static/help.html templates
rm -rf __pycache__
rm -f Frogtab_backup.json
cd templates
sed -i'.backup' 's/data-server-base=\"https:\/\/frogtab\.com\/\"/data-server-base=\"{{ server_base }}\"/' index.html icon-*.html help.html
sed -i'.backup' 's/data-save=\"browser\"/data-save=\"service\"/' index.html icon-*.html help.html
sed -i'.backup' 's/\(<a tabindex="0" href="https:\/\/github\.com\/dwilding\/frogtab"\)/<a tabindex="0" href="https:\/\/github.com\/dwilding\/frogtab\/releases\/tag\/v1.08" target="_blank">v1.08 release notes<\/a> • \1/' help.html
rm *.backup
cd ..
zip -r frogtab_local_v108.zip .
mv frogtab_local_v108.zip ..
cd ..
rm -rf snapcraft
cp -r local snapcraft
rm -f snapcraft/README.md
cp -r snap/* snapcraft
cd snapcraft
mkdir flask
mv static templates app.py send.py frogtab_helpers.py requirements.txt flask
cd flask/templates
sed -i'.backup' 's/python send\.py/frogtab send/g' help.html
rm *.backup
cd ../..
snapcraft pack
mv frogtab_*.snap ..
cd ..