mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-07 13:13:34 +00:00
fix gampath
This commit is contained in:
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@ -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'
|
||||||
|
Reference in New Issue
Block a user