Skip to content

Commit

Permalink
[telluride] build.sh adjustments for Dockerized build
Browse files Browse the repository at this point in the history
  • Loading branch information
frostwire committed Apr 11, 2021
1 parent 55369fb commit e756be8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion telluride/build.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
#!/bin/bash
PYINSTALLER_CMD="pyinstaller"

isdocker() {
if [ -f /.dockerenv ]
then
return ${TRUE}
fi
return ${FALSE}
}

# Linux's pyinstaller PATH
if [ $(uname -a | grep -c Ubuntu) == 1 ]
then
PYINSTALLER_CMD="${HOME}/.local/bin/pyinstaller"
echo "PYINSTALLER_CMD=${PYINSTALLER_CMD}"
fi

if isdocker
then
PYINSTALLER_CMD=/usr/local/bin/pyinstaller
fi

echo PYINSTALLER_CMD=${PYINSTALLER_CMD}

# Windows + MINGW
# pylint and pyinstaller might be in a place like this if you are in windows
# We make sure they are in the PATH
Expand Down

0 comments on commit e756be8

Please sign in to comment.