-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.bat
More file actions
31 lines (25 loc) · 721 Bytes
/
install.bat
File metadata and controls
31 lines (25 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@echo off
setlocal
:: Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo Python is not installed or not in PATH
exit /b 1
)
if not exist "build" mkdir build
:: check if FFSVersionManager.exe is running, if running, exit
taskkill /f /im FFSVersionManager.exe >nul 2>&1
:: Package with Nuitka
python -m nuitka ^
--msvc=latest ^
--standalone ^
--onefile ^
--windows-icon-from-ico=src/res/appicon.ico ^
--enable-plugin=pyside6 ^
--include-data-dir=src/res=res ^
--follow-imports ^
--output-dir=build ^
--windows-console-mode=attach ^
--output-filename=FFSVersionManager.exe ^
main.py
echo Build complete! Output is in the build directory.