-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathpackage-mac.sh
32 lines (30 loc) · 874 Bytes
/
package-mac.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
builddir=/tmp/build_cts
repo=$builddir/repo
distbase=$builddir/dist
distdir=cryptotaxsweden
package=$distdir.zip
virtualenv $builddir/tempenv
. $builddir/tempenv/bin/activate
deactivate
rm -rf $builddir
mkdir -p $builddir
git clone . $repo
cd $repo
virtualenv -p python3.6 venv
. venv/bin/activate
pip install -r requirements.txt
pip install pyinstaller
pyinstaller --onefile report.py
mkdir -p $distbase/$distdir
cp dist/report $distbase/$distdir/
cp README.md $distbase/$distdir/
cp LICENSE $distbase/$distdir/
mkdir $distbase/$distdir/data
cp data/personal_details_template.json $distbase/$distdir/data/
cp data/stocks_template.json $distbase/$distdir/data/
mkdir $distbase/$distdir/data/rates
cp data/rates/usdsek.csv $distbase/$distdir/data/rates/
mkdir $distbase/$distdir/docs
cp docs/K4-template-*.pdf $distbase/$distdir/docs/
cd $distbase
zip -r $package $distdir