mirror of
https://github.com/timsutton/brigadier.git
synced 2024-09-19 11:18:44 -04:00
21 lines
546 B
Bash
Executable file
21 lines
546 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eux -o pipefail
|
|
|
|
PYTHON_VERSION=2.7.18
|
|
|
|
script_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd )"
|
|
python="/c/hostedtoolcache/windows/Python/${PYTHON_VERSION}/x64/python"
|
|
|
|
export PYTHONPATH="${python}"
|
|
$python -V
|
|
$python -m pip install -r "${script_dir}/requirements.txt"
|
|
$python -m pip freeze
|
|
|
|
# pip-installed exes will be installed here, so we'll put those at the front
|
|
# of the PATH
|
|
PATH="/c/hostedtoolcache/windows/Python/${PYTHON_VERSION}/x64/Scripts:$PATH"
|
|
|
|
pyinstaller \
|
|
--onefile \
|
|
brigadier
|