diff --git a/build_win.cmd b/build_win.cmd index e8507a2..175c488 100644 --- a/build_win.cmd +++ b/build_win.cmd @@ -3,12 +3,12 @@ chcp 65001 >nul setlocal set "PY=.venv\Scripts\python.exe" -set "DIST=build\onefile" +set "DIST=build\a1packer" if not exist "%DIST%" mkdir "%DIST%" "%PY%" -m nuitka ^ - --mode=onefile ^ + --mode=standalone ^ --msvc=latest ^ --enable-plugin=pyside6 ^ --include-qt-plugins=platforms,imageformats,styles,iconengines ^ @@ -23,15 +23,17 @@ if errorlevel 1 exit /b %ERRORLEVEL% echo. echo GUI build done. -robocopy "swap_gcode" "%DIST%\swap_gcode" /E +set "OUTPUT=%DIST%\a1packer.dist" +robocopy "swap_gcode" "%OUTPUT%\swap_gcode" /E if %ERRORLEVEL% GEQ 8 exit /b %ERRORLEVEL% -copy /Y "gcode_patches.ini" "%DIST%\gcode_patches.ini" >nul +copy /Y "gcode_patches.ini" "%OUTPUT%\gcode_patches.ini" >nul if errorlevel 1 exit /b %ERRORLEVEL% -copy /Y "x.png" "%DIST%\x.png" >nul +copy /Y "x.png" "%OUTPUT%\x.png" >nul if errorlevel 1 exit /b %ERRORLEVEL% echo. -echo Build done: %DIST% +echo Build done: %OUTPUT% +echo The entire "%OUTPUT%" folder is the portable distribution. exit /b 0 diff --git a/x.png b/x.png index 55170cb..6d94fec 100644 Binary files a/x.png and b/x.png differ