fix gampath

This commit is contained in:
Jay Lee
2022-11-30 21:04:36 +00:00
parent 1b1ae44f5d
commit d2733a53a2

View File

@ -435,7 +435,8 @@ jobs:
- name: Build GAM with PyInstaller - name: Build GAM with PyInstaller
if: matrix.goal != 'test' if: matrix.goal != 'test'
run: | run: |
export gampath="./dist/gam" export distpath="./dist"
export gampath="${distpath}/gam"
mkdir -p -v "${gampath}" mkdir -p -v "${gampath}"
if [[ "${RUNNER_OS}" == "macOS" ]]; then if [[ "${RUNNER_OS}" == "macOS" ]]; then
export gampath=$($PYTHON -c "import os; print(os.path.realpath('$gampath'))") export gampath=$($PYTHON -c "import os; print(os.path.realpath('$gampath'))")
@ -450,7 +451,7 @@ jobs:
echo "gampath=${gampath}" >> $GITHUB_ENV echo "gampath=${gampath}" >> $GITHUB_ENV
echo "gam=${gam}" >> $GITHUB_ENV echo "gam=${gam}" >> $GITHUB_ENV
echo -e "GAM: ${gam}\nGAMPATH: ${gampath}" echo -e "GAM: ${gam}\nGAMPATH: ${gampath}"
"${PYTHON}" -m PyInstaller --clean --distpath="${gampath}" gam.spec "${PYTHON}" -m PyInstaller --clean --distpath="${distpath}" gam.spec
- name: Copy extra package files - name: Copy extra package files
if: matrix.goal == 'build' if: matrix.goal == 'build'