mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
actions: gam7 in packages.
This commit is contained in:
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@@ -540,19 +540,25 @@ jobs:
|
|||||||
# breaking our self-compiled version
|
# breaking our self-compiled version
|
||||||
brew uninstall --ignore-dependencies openssl
|
brew uninstall --ignore-dependencies openssl
|
||||||
export PYINSTALLER_BUILD_ONEDIR=yes
|
export PYINSTALLER_BUILD_ONEDIR=yes
|
||||||
export gampath=$($PYTHON -c "import os; print(os.path.realpath('${gampath}/gam'))")
|
export gampath=$($PYTHON -c "import os; print(os.path.realpath('${gampath}/gam7'))")
|
||||||
elif [[ "${RUNNER_OS}" == "Windows" ]]; then
|
elif [[ "${RUNNER_OS}" == "Windows" ]]; then
|
||||||
# Work around issue where PyInstaller picks up python3.dll from other Python versions
|
# Work around issue where PyInstaller picks up python3.dll from other Python versions
|
||||||
# https://github.com/pyinstaller/pyinstaller/issues/7102
|
# https://github.com/pyinstaller/pyinstaller/issues/7102
|
||||||
export PATH="$(dirname ${PYTHON}):/usr/bin"
|
export PATH="$(dirname ${PYTHON}):/usr/bin"
|
||||||
export PYINSTALLER_BUILD_ONEDIR=no
|
export PYINSTALLER_BUILD_ONEDIR=no
|
||||||
else
|
else
|
||||||
export gampath=$(realpath "${gampath}")
|
export PYINSTALLER_BUILD_ONEDIR=yes
|
||||||
|
export gampath=$(realpath "${gampath}/gam7")
|
||||||
export PYINSTALLER_BUILD_ONEDIR=no
|
export PYINSTALLER_BUILD_ONEDIR=no
|
||||||
fi
|
fi
|
||||||
export gam="${gampath}/gam"
|
export gam="${gampath}/gam"
|
||||||
echo "gampath=${gampath}" >> $GITHUB_ENV
|
echo "gampath=${gampath}" >> $GITHUB_ENV
|
||||||
"${PYTHON}" -m PyInstaller --clean --noconfirm --distpath="${distpath}" gam.spec
|
"${PYTHON}" -m PyInstaller --clean --noconfirm --distpath="${distpath}" gam.spec
|
||||||
|
if [[ "$PYINSTALLER_BUILD_ONEDIR" == "yes" ]]; then
|
||||||
|
mv -v "${distpath}/gam" "${distpath}/gam7"
|
||||||
|
else
|
||||||
|
mv -v "$distpath" "${distpath}7"
|
||||||
|
fi
|
||||||
echo "dist results:"
|
echo "dist results:"
|
||||||
ls -alRF "$distpath"
|
ls -alRF "$distpath"
|
||||||
echo "WARNINGS FROM build/gam/warn-gam.txt"
|
echo "WARNINGS FROM build/gam/warn-gam.txt"
|
||||||
|
|||||||
Reference in New Issue
Block a user