4 Commits

Author SHA1 Message Date
Fizban
e5d7a99003 Remove final if 2020-06-03 00:39:36 +10:00
Fizban
fbbcff164c more ecs 2020-06-03 00:33:43 +10:00
Fizban
f59ea26c6d echos 2020-06-03 00:27:07 +10:00
Fizban
e345907744 add echos 2020-06-03 00:26:52 +10:00

View File

@@ -9,7 +9,8 @@ set -e
# Allow the workdir to be set using an env var.
# Useful for CI pipiles which use docker for their build steps
# and don't allow that much flexibility to mount volumes
SRCDIR=/$1
SRCDIR=$1
WORKDIR=${SRCDIR:-/src}
#
@@ -29,18 +30,21 @@ if [[ "$PYPI_URL" != "https://pypi.python.org/" ]] || \
echo "Using custom pip.ini: "
cat /wine/drive_c/users/root/pip/pip.ini
fi
echo "before cd"
ls
cd $WORKDIR
echo "after cd"
ls
if [ -f requirements.txt ]; then
pip install -r requirements.txt
fi # [ -f requirements.txt ]
echo "this is at"
echo "$@"
if [[ "$@" == "" ]]; then
# if [[ "$@" == "" ]]; then
pyinstaller --clean -y --dist ./dist/windows --workpath /tmp *.spec
chown -R --reference=. ./dist/windows
else
sh -c "$@"
fi # [[ "$@" == "" ]]
# else
# sh -c "$@"
# fi # [[ "$@" == "" ]]