-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sh
More file actions
28 lines (24 loc) · 691 Bytes
/
Copy pathbuild.sh
File metadata and controls
28 lines (24 loc) · 691 Bytes
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
#!/usr/bin/env bash
if [[ ! -d xtemp/.venv ]]; then
py -m venv xtemp/.venv
source xtemp/.venv/Scripts/activate
# Use an older version that does not scare Windows Defender.
pip install pyinstaller==5.13.2
fi
source xtemp/.venv/Scripts/activate
opts="--noconsole --onefile"
# opts="$opts --log-level=TRACE"
if [ "$(which cygpath)" == "" ]; then
here="$(pwd)"
sep=":"
else
here=$(cygpath -w $(pwd))
sep=";"
fi
pyinstaller $opts \
--specpath="xtemp" \
--workpath="xtemp/build" \
--distpath="xtemp/dist" \
--add-data="../template/codereview001_tmpl.odt${sep}template" \
--add-data="../template/codereview002_tmpl.odt${sep}template" \
gitreviewdoc.py