10 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
Fizban
4fdf899fb4 Rem ls 2020-06-03 00:23:04 +10:00
Fizban
bc0cbb72c2 Rem slash 2020-06-03 00:22:44 +10:00
Fizban
99c9398146 addls 2020-06-03 00:19:43 +10:00
Fizban
5a6a0b3105 Add ls 2020-06-03 00:19:25 +10:00
Fizban
74860fa3f9 try mounted? 2020-06-03 00:15:22 +10:00
Fizban
f07c773adf Try set pwd 2020-06-03 00:07:18 +10:00
2 changed files with 13 additions and 9 deletions

View File

@@ -8,7 +8,7 @@ inputs:
path: path:
description: 'Directory containing source code & .spec file (optional requirements.txt).' description: 'Directory containing source code & .spec file (optional requirements.txt).'
required: True required: True
default: src/ default: src
outputs: outputs:
output: output:
description: 'The output of PyInstaller' description: 'The output of PyInstaller'

View File

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