Skip to content

Commit 8d66d81

Browse files
committed
proj: add call commands to Windows scripts to avoid exiting on calling shim layer python
1 parent 92e4196 commit 8d66d81

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

build.bat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
@echo off
2-
python -V -V
2+
call python -V -V
33
call venv\Scripts\activate.bat
4-
python -m pip install --upgrade pip
5-
python -m pip install pyinstaller
6-
pyinstaller MagiaTimeline.spec --noconfirm
4+
call python -m pip install --upgrade pip
5+
call python -m pip install pyinstaller
6+
call pyinstaller MagiaTimeline.spec --noconfirm
77
xcopy dist\MagiaTimeline\_internal\move_to_root\* dist\MagiaTimeline /E /H /K /Y
88
rmdir /S /Q dist\MagiaTimeline\_internal\move_to_root
99
pause

install.bat

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
@echo off
2-
python -V -V
3-
python -c "import platform; print(platform.architecture()[0])" | findstr "64" > nul
2+
call python -V -V
3+
call python -c "import platform; print(platform.architecture()[0])" | findstr "64" > nul
44
if %errorlevel% neq 0 (
55
echo You are using a 32-bit version of Python. MagiaTimeline does not support it. Please install a 64-bit version.
66
pause
77
goto end
88
)
99
echo Creating virtual environment and installing dependencies...
10-
python -m venv venv
10+
call python -m venv venv
1111
call venv\Scripts\activate.bat
12-
python -m pip install --upgrade pip -i https://pypi.mirrors.ustc.edu.cn/simple/
13-
python -m pip install -r requirements.txt -i https://pypi.mirrors.ustc.edu.cn/simple/
12+
call python -m pip install --upgrade pip -i https://pypi.mirrors.ustc.edu.cn/simple/
13+
call python -m pip install -r requirements.txt -i https://pypi.mirrors.ustc.edu.cn/simple/
1414
if %errorlevel% neq 0 (
1515
echo Installation failed. Please check the error message above.
1616
pause

0 commit comments

Comments
 (0)