diff --git a/gen_cache.bat b/gen_cache.bat new file mode 100644 index 0000000000..07dba90c42 --- /dev/null +++ b/gen_cache.bat @@ -0,0 +1,45 @@ +@echo off +setlocal + +:: Usage: gen_cache.bat [Release|Debug|RelWithDebInfo] +:: Generates per-vendor .cache files into resources/profiles/ +:: using generate_system_cache.exe from the local build tree. + +set BUILD_CONFIG=%~1 +if "%BUILD_CONFIG%"=="" set BUILD_CONFIG=Release + +set REPO=%~dp0 +set BUILD_DIR=%REPO%build +set EXE=%BUILD_DIR%\src\dev-utils\%BUILD_CONFIG%\generate_system_cache.exe +set PROFILES=%REPO%resources\profiles + +if not exist "%EXE%" ( + echo ERROR: %EXE% not found. + echo Build the project first with ORCA_TOOLS=ON, config %BUILD_CONFIG%. + exit /b 1 +) + +if not exist "%PROFILES%" ( + echo ERROR: profiles dir not found: %PROFILES% + exit /b 1 +) + +:: DLLs live in the main Release output, not next to the tool exe +set PATH=%BUILD_DIR%\src\%BUILD_CONFIG%;%PATH% + +echo Generating system presets cache... +echo Tool : %EXE% +echo Profiles: %PROFILES% +echo. + +"%EXE%" --path "%PROFILES%" --log_level 2 +if %ERRORLEVEL% neq 0 ( + echo. + echo ERROR: generate_system_cache failed ^(exit %ERRORLEVEL%^). + exit /b %ERRORLEVEL% +) + +echo. +echo Done. Cache files written to: %PROFILES% +dir /b "%PROFILES%\*.cache" 2>nul +endlocal diff --git a/remove_cache.bat b/remove_cache.bat new file mode 100644 index 0000000000..485a2181b9 --- /dev/null +++ b/remove_cache.bat @@ -0,0 +1,51 @@ +@echo off +setlocal + +:: Removes all OrcaSlicer cache files so the next launch rebuilds from scratch. +:: +:: Clears: +:: resources/profiles/*.cache bundled per-vendor binary caches +:: %APPDATA%\OrcaSlicer\system\*.cache user per-vendor binary caches +:: %APPDATA%\OrcaSlicer\guide_profile_cache.json guide JSON cache + +set REPO=%~dp0 +set PROFILES=%REPO%resources\profiles +set USER_SYSTEM=%APPDATA%\OrcaSlicer\system +set GUIDE_CACHE=%APPDATA%\OrcaSlicer\guide_profile_cache.json + +echo Removing OrcaSlicer cache files... +echo. + +:: Bundled caches +set FOUND=0 +for %%F in ("%PROFILES%\*.cache") do ( + del "%%F" + echo Deleted: %%~nxF ^(bundled^) + set FOUND=1 +) +if "%FOUND%"=="0" echo No bundled .cache files found in resources\profiles\ + +echo. + +:: User per-vendor caches +set FOUND=0 +for %%F in ("%USER_SYSTEM%\*.cache") do ( + del "%%F" + echo Deleted: %%~nxF ^(user^) + set FOUND=1 +) +if "%FOUND%"=="0" echo No user .cache files found in %USER_SYSTEM%\ + +echo. + +:: Guide JSON cache +if exist "%GUIDE_CACHE%" ( + del "%GUIDE_CACHE%" + echo Deleted: guide_profile_cache.json +) else ( + echo No guide_profile_cache.json found +) + +echo. +echo Done. Next launch will rebuild all caches from JSON. +endlocal diff --git a/resources/profiles/Afinia.cache b/resources/profiles/Afinia.cache new file mode 100644 index 0000000000..970a5381b5 Binary files /dev/null and b/resources/profiles/Afinia.cache differ diff --git a/resources/profiles/Anker.cache b/resources/profiles/Anker.cache new file mode 100644 index 0000000000..c7443084d0 Binary files /dev/null and b/resources/profiles/Anker.cache differ diff --git a/resources/profiles/Anycubic.cache b/resources/profiles/Anycubic.cache new file mode 100644 index 0000000000..f4cbeb7065 Binary files /dev/null and b/resources/profiles/Anycubic.cache differ diff --git a/resources/profiles/Artillery.cache b/resources/profiles/Artillery.cache new file mode 100644 index 0000000000..1da71b6fd1 Binary files /dev/null and b/resources/profiles/Artillery.cache differ diff --git a/resources/profiles/BBL.cache b/resources/profiles/BBL.cache new file mode 100644 index 0000000000..ca954ad7f6 Binary files /dev/null and b/resources/profiles/BBL.cache differ diff --git a/resources/profiles/BIQU.cache b/resources/profiles/BIQU.cache new file mode 100644 index 0000000000..55bd8056a2 Binary files /dev/null and b/resources/profiles/BIQU.cache differ diff --git a/resources/profiles/Blocks.cache b/resources/profiles/Blocks.cache new file mode 100644 index 0000000000..d508d7765b Binary files /dev/null and b/resources/profiles/Blocks.cache differ diff --git a/resources/profiles/CONSTRUCT3D.cache b/resources/profiles/CONSTRUCT3D.cache new file mode 100644 index 0000000000..1b32ccad94 Binary files /dev/null and b/resources/profiles/CONSTRUCT3D.cache differ diff --git a/resources/profiles/Chuanying.cache b/resources/profiles/Chuanying.cache new file mode 100644 index 0000000000..f74793fd82 Binary files /dev/null and b/resources/profiles/Chuanying.cache differ diff --git a/resources/profiles/Co Print.cache b/resources/profiles/Co Print.cache new file mode 100644 index 0000000000..e23584f3ac Binary files /dev/null and b/resources/profiles/Co Print.cache differ diff --git a/resources/profiles/CoLiDo.cache b/resources/profiles/CoLiDo.cache new file mode 100644 index 0000000000..2e1f8260b7 Binary files /dev/null and b/resources/profiles/CoLiDo.cache differ diff --git a/resources/profiles/Comgrow.cache b/resources/profiles/Comgrow.cache new file mode 100644 index 0000000000..e934793d0c Binary files /dev/null and b/resources/profiles/Comgrow.cache differ diff --git a/resources/profiles/Creality.cache b/resources/profiles/Creality.cache new file mode 100644 index 0000000000..cc65d0a19f Binary files /dev/null and b/resources/profiles/Creality.cache differ diff --git a/resources/profiles/Cubicon.cache b/resources/profiles/Cubicon.cache new file mode 100644 index 0000000000..42b58e4fc8 Binary files /dev/null and b/resources/profiles/Cubicon.cache differ diff --git a/resources/profiles/Custom.cache b/resources/profiles/Custom.cache new file mode 100644 index 0000000000..aa0169671a Binary files /dev/null and b/resources/profiles/Custom.cache differ diff --git a/resources/profiles/DeltaMaker.cache b/resources/profiles/DeltaMaker.cache new file mode 100644 index 0000000000..7cf148148b Binary files /dev/null and b/resources/profiles/DeltaMaker.cache differ diff --git a/resources/profiles/Dremel.cache b/resources/profiles/Dremel.cache new file mode 100644 index 0000000000..2bda244618 Binary files /dev/null and b/resources/profiles/Dremel.cache differ diff --git a/resources/profiles/Elegoo.cache b/resources/profiles/Elegoo.cache new file mode 100644 index 0000000000..378a343aea Binary files /dev/null and b/resources/profiles/Elegoo.cache differ diff --git a/resources/profiles/Eryone.cache b/resources/profiles/Eryone.cache new file mode 100644 index 0000000000..d08e1726cb Binary files /dev/null and b/resources/profiles/Eryone.cache differ diff --git a/resources/profiles/FLSun.cache b/resources/profiles/FLSun.cache new file mode 100644 index 0000000000..3a593fff18 Binary files /dev/null and b/resources/profiles/FLSun.cache differ diff --git a/resources/profiles/Flashforge.cache b/resources/profiles/Flashforge.cache new file mode 100644 index 0000000000..8a457535fc Binary files /dev/null and b/resources/profiles/Flashforge.cache differ diff --git a/resources/profiles/FlyingBear.cache b/resources/profiles/FlyingBear.cache new file mode 100644 index 0000000000..7b18d65051 Binary files /dev/null and b/resources/profiles/FlyingBear.cache differ diff --git a/resources/profiles/Folgertech.cache b/resources/profiles/Folgertech.cache new file mode 100644 index 0000000000..f662611ac5 Binary files /dev/null and b/resources/profiles/Folgertech.cache differ diff --git a/resources/profiles/Geeetech.cache b/resources/profiles/Geeetech.cache new file mode 100644 index 0000000000..d7090a92a0 Binary files /dev/null and b/resources/profiles/Geeetech.cache differ diff --git a/resources/profiles/Ginger Additive.cache b/resources/profiles/Ginger Additive.cache new file mode 100644 index 0000000000..2fbdfc8e76 Binary files /dev/null and b/resources/profiles/Ginger Additive.cache differ diff --git a/resources/profiles/InfiMech.cache b/resources/profiles/InfiMech.cache new file mode 100644 index 0000000000..0a12653ef6 Binary files /dev/null and b/resources/profiles/InfiMech.cache differ diff --git a/resources/profiles/Kingroon.cache b/resources/profiles/Kingroon.cache new file mode 100644 index 0000000000..b6755351aa Binary files /dev/null and b/resources/profiles/Kingroon.cache differ diff --git a/resources/profiles/LH.cache b/resources/profiles/LH.cache new file mode 100644 index 0000000000..5f3089b8aa Binary files /dev/null and b/resources/profiles/LH.cache differ diff --git a/resources/profiles/LONGER.cache b/resources/profiles/LONGER.cache new file mode 100644 index 0000000000..d2483f75c3 Binary files /dev/null and b/resources/profiles/LONGER.cache differ diff --git a/resources/profiles/Lulzbot.cache b/resources/profiles/Lulzbot.cache new file mode 100644 index 0000000000..8221290985 Binary files /dev/null and b/resources/profiles/Lulzbot.cache differ diff --git a/resources/profiles/M3D.cache b/resources/profiles/M3D.cache new file mode 100644 index 0000000000..4de3278fd4 Binary files /dev/null and b/resources/profiles/M3D.cache differ diff --git a/resources/profiles/MagicMaker.cache b/resources/profiles/MagicMaker.cache new file mode 100644 index 0000000000..7874593b17 Binary files /dev/null and b/resources/profiles/MagicMaker.cache differ diff --git a/resources/profiles/Mellow.cache b/resources/profiles/Mellow.cache new file mode 100644 index 0000000000..1ce7a83c74 Binary files /dev/null and b/resources/profiles/Mellow.cache differ diff --git a/resources/profiles/OpenEYE.cache b/resources/profiles/OpenEYE.cache new file mode 100644 index 0000000000..84bccb7821 Binary files /dev/null and b/resources/profiles/OpenEYE.cache differ diff --git a/resources/profiles/OrcaArena.cache b/resources/profiles/OrcaArena.cache new file mode 100644 index 0000000000..30e2303b2e Binary files /dev/null and b/resources/profiles/OrcaArena.cache differ diff --git a/resources/profiles/OrcaFilamentLibrary.cache b/resources/profiles/OrcaFilamentLibrary.cache new file mode 100644 index 0000000000..fe0a1d90aa Binary files /dev/null and b/resources/profiles/OrcaFilamentLibrary.cache differ diff --git a/resources/profiles/Peopoly.cache b/resources/profiles/Peopoly.cache new file mode 100644 index 0000000000..bd93826724 Binary files /dev/null and b/resources/profiles/Peopoly.cache differ diff --git a/resources/profiles/Phrozen.cache b/resources/profiles/Phrozen.cache new file mode 100644 index 0000000000..7fccadcef9 Binary files /dev/null and b/resources/profiles/Phrozen.cache differ diff --git a/resources/profiles/Positron3D.cache b/resources/profiles/Positron3D.cache new file mode 100644 index 0000000000..539f8a688e Binary files /dev/null and b/resources/profiles/Positron3D.cache differ diff --git a/resources/profiles/Prusa.cache b/resources/profiles/Prusa.cache new file mode 100644 index 0000000000..2a046b90fa Binary files /dev/null and b/resources/profiles/Prusa.cache differ diff --git a/resources/profiles/Qidi.cache b/resources/profiles/Qidi.cache new file mode 100644 index 0000000000..6a9065fc32 Binary files /dev/null and b/resources/profiles/Qidi.cache differ diff --git a/resources/profiles/RH3D.cache b/resources/profiles/RH3D.cache new file mode 100644 index 0000000000..f46cb7ff3a Binary files /dev/null and b/resources/profiles/RH3D.cache differ diff --git a/resources/profiles/Raise3D.cache b/resources/profiles/Raise3D.cache new file mode 100644 index 0000000000..8435096ae5 Binary files /dev/null and b/resources/profiles/Raise3D.cache differ diff --git a/resources/profiles/Ratrig.cache b/resources/profiles/Ratrig.cache new file mode 100644 index 0000000000..9a63a24b8d Binary files /dev/null and b/resources/profiles/Ratrig.cache differ diff --git a/resources/profiles/RolohaunDesign.cache b/resources/profiles/RolohaunDesign.cache new file mode 100644 index 0000000000..76b1485b7d Binary files /dev/null and b/resources/profiles/RolohaunDesign.cache differ diff --git a/resources/profiles/SecKit.cache b/resources/profiles/SecKit.cache new file mode 100644 index 0000000000..9c7c11a816 Binary files /dev/null and b/resources/profiles/SecKit.cache differ diff --git a/resources/profiles/SeeMeCNC.cache b/resources/profiles/SeeMeCNC.cache new file mode 100644 index 0000000000..4c09ae0f87 Binary files /dev/null and b/resources/profiles/SeeMeCNC.cache differ diff --git a/resources/profiles/Snapmaker.cache b/resources/profiles/Snapmaker.cache new file mode 100644 index 0000000000..827d5158d5 Binary files /dev/null and b/resources/profiles/Snapmaker.cache differ diff --git a/resources/profiles/Sovol.cache b/resources/profiles/Sovol.cache new file mode 100644 index 0000000000..348e77c9ad Binary files /dev/null and b/resources/profiles/Sovol.cache differ diff --git a/resources/profiles/Tiertime.cache b/resources/profiles/Tiertime.cache new file mode 100644 index 0000000000..b9f29efde3 Binary files /dev/null and b/resources/profiles/Tiertime.cache differ diff --git a/resources/profiles/Tronxy.cache b/resources/profiles/Tronxy.cache new file mode 100644 index 0000000000..e941ca05e5 Binary files /dev/null and b/resources/profiles/Tronxy.cache differ diff --git a/resources/profiles/TwoTrees.cache b/resources/profiles/TwoTrees.cache new file mode 100644 index 0000000000..3596a5039f Binary files /dev/null and b/resources/profiles/TwoTrees.cache differ diff --git a/resources/profiles/UltiMaker.cache b/resources/profiles/UltiMaker.cache new file mode 100644 index 0000000000..5981e3cdc5 Binary files /dev/null and b/resources/profiles/UltiMaker.cache differ diff --git a/resources/profiles/Vivedino.cache b/resources/profiles/Vivedino.cache new file mode 100644 index 0000000000..eb51fbcb0c Binary files /dev/null and b/resources/profiles/Vivedino.cache differ diff --git a/resources/profiles/Volumic.cache b/resources/profiles/Volumic.cache new file mode 100644 index 0000000000..40b6041fd8 Binary files /dev/null and b/resources/profiles/Volumic.cache differ diff --git a/resources/profiles/Voron.cache b/resources/profiles/Voron.cache new file mode 100644 index 0000000000..a11bc9e7e1 Binary files /dev/null and b/resources/profiles/Voron.cache differ diff --git a/resources/profiles/Voxelab.cache b/resources/profiles/Voxelab.cache new file mode 100644 index 0000000000..03bf8edc13 Binary files /dev/null and b/resources/profiles/Voxelab.cache differ diff --git a/resources/profiles/Vzbot.cache b/resources/profiles/Vzbot.cache new file mode 100644 index 0000000000..48aacf9d44 Binary files /dev/null and b/resources/profiles/Vzbot.cache differ diff --git a/resources/profiles/WEMAKE3D.cache b/resources/profiles/WEMAKE3D.cache new file mode 100644 index 0000000000..f2cad36069 Binary files /dev/null and b/resources/profiles/WEMAKE3D.cache differ diff --git a/resources/profiles/Wanhao France.cache b/resources/profiles/Wanhao France.cache new file mode 100644 index 0000000000..b56caec546 Binary files /dev/null and b/resources/profiles/Wanhao France.cache differ diff --git a/resources/profiles/Wanhao.cache b/resources/profiles/Wanhao.cache new file mode 100644 index 0000000000..f144aa2c15 Binary files /dev/null and b/resources/profiles/Wanhao.cache differ diff --git a/resources/profiles/WonderMaker.cache b/resources/profiles/WonderMaker.cache new file mode 100644 index 0000000000..4b9ab9d829 Binary files /dev/null and b/resources/profiles/WonderMaker.cache differ diff --git a/resources/profiles/Z-Bolt.cache b/resources/profiles/Z-Bolt.cache new file mode 100644 index 0000000000..721ec7a388 Binary files /dev/null and b/resources/profiles/Z-Bolt.cache differ diff --git a/resources/profiles/blacklist.cache b/resources/profiles/blacklist.cache new file mode 100644 index 0000000000..12208ed493 Binary files /dev/null and b/resources/profiles/blacklist.cache differ diff --git a/resources/profiles/iQ.cache b/resources/profiles/iQ.cache new file mode 100644 index 0000000000..5aedf6f4b9 Binary files /dev/null and b/resources/profiles/iQ.cache differ diff --git a/resources/profiles/re3D.cache b/resources/profiles/re3D.cache new file mode 100644 index 0000000000..d3db9617a8 Binary files /dev/null and b/resources/profiles/re3D.cache differ