-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy pathbuild_simple_gui.bat
More file actions
71 lines (62 loc) · 2.7 KB
/
Copy pathbuild_simple_gui.bat
File metadata and controls
71 lines (62 loc) · 2.7 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
@echo off
cd /d "%~dp0"
echo ========================================
echo Building SteaMidra GUI Executable
echo ========================================
echo.
echo Cleaning old GUI build files...
if exist "build\build_sff_gui" rmdir /s /q "build\build_sff_gui"
if exist "third_party\SteamAutoCrack\Steam-auto-crack-3.5.0.3\Steam-auto-crack-3.5.0.3\SteamAutoCrack.CLI\SteamAutoCrack.CLI.csproj" (
where dotnet >nul 2>&1
if not errorlevel 1 (
echo.
echo Building SteamAutoCrack CLI v3.5.0.3...
dotnet publish "third_party\SteamAutoCrack\Steam-auto-crack-3.5.0.3\Steam-auto-crack-3.5.0.3\SteamAutoCrack.CLI\SteamAutoCrack.CLI.csproj" -c Release -r win-x86 --self-contained true -p:PublishSingleFile=false -p:ErrorOnDuplicatePublishOutputFiles=false
if exist "third_party\SteamAutoCrack\Steam-auto-crack-3.5.0.3\Steam-auto-crack-3.5.0.3\SteamAutoCrack.CLI\bin\Release\net10.0-windows\win-x86\publish\SteamAutoCrack.CLI.exe" (
if not exist "third_party\SteamAutoCrack\cli" mkdir "third_party\SteamAutoCrack\cli"
xcopy /E /Y /I "third_party\SteamAutoCrack\Steam-auto-crack-3.5.0.3\Steam-auto-crack-3.5.0.3\SteamAutoCrack.CLI\bin\Release\net10.0-windows\win-x86\publish\*" "third_party\SteamAutoCrack\cli" >nul
echo SteamAutoCrack CLI v3.5.0.3 built successfully.
) else (
echo WARNING: SteamAutoCrack CLI build did not produce expected output.
)
echo.
)
)
echo.
echo Building GUI executable...
echo This may take 5-10 minutes...
echo.
REM Suppress pkg_resources deprecation from PyInstaller/build deps so log stays clean
set PYTHONWARNINGS=ignore::UserWarning
python -m PyInstaller build_sff_gui.spec
if errorlevel 1 (
echo.
echo ========================================
echo BUILD FAILED!
echo ========================================
echo.
echo Install requirements first (two steps):
echo 1. pip install -r requirements.txt
echo 2. pip install steam==1.4.4 --no-deps
echo.
echo Or just run: install_online_fix_requirements.bat
pause
exit /b 1
)
echo.
echo ========================================
echo BUILD SUCCESSFUL!
echo ========================================
echo.
echo Folder: dist\SteaMidra_GUI\
echo Executable: dist\SteaMidra_GUI\SteaMidra_GUI.exe
echo.
if exist "dist\SteaMidra_GUI\SteaMidra_GUI.exe" (
python -c "import os; size = sum(os.path.getsize(os.path.join(r,f)) for r,d,files in os.walk('dist/SteaMidra_GUI') for f in files); print(f'Total size: {size / (1024*1024):.1f} MB')"
)
echo.
echo You can now run: dist\SteaMidra_GUI\SteaMidra_GUI.exe
echo Zip the dist\SteaMidra_GUI\ folder for distribution.
echo Settings will be saved next to the EXE.
echo.
pause