Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e5d7a99003 | ||
|
|
fbbcff164c | ||
|
|
f59ea26c6d | ||
|
|
e345907744 |
@@ -9,7 +9,8 @@ set -e
|
|||||||
# Allow the workdir to be set using an env var.
|
# Allow the workdir to be set using an env var.
|
||||||
# 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 # [[ "$@" == "" ]]
|
||||||
|
|||||||
Reference in New Issue
Block a user