File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99set " PROJECT_DIR = %~dp0 "
1010set " DIST_DIR = %PROJECT_DIR% dist\EfficientAssetRipper"
11- set " BUILD_TEMP = %TEMP% \EAR_build"
11+
12+ :: BUILD_TEMP must live on the same drive as PROJECT_DIR so PyInstaller's
13+ :: makespec (which calls os.path.relpath) doesn't raise ValueError when the
14+ :: spec dir and the source main.py are on different drives. This bites on
15+ :: GitHub Actions runners where the workspace is on D:\ but %TEMP% is on C:\.
16+ set " PROJECT_DRIVE = %PROJECT_DIR:~0 ,2 % "
17+ set " TEMP_DRIVE = %TEMP:~0 ,2 % "
18+ if /I " %PROJECT_DRIVE% " == " %TEMP_DRIVE% " (
19+ set " BUILD_TEMP = %TEMP% \EAR_build"
20+ ) else (
21+ set " BUILD_TEMP = %PROJECT_DIR% build\EAR_build"
22+ )
1223
1324:: Skip interactive `pause` calls when running unattended (CI, scripts).
1425:: Set the CI env var (GitHub Actions does this automatically) or
You can’t perform that action at this time.
0 commit comments