mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-25 03:42:05 +00:00
Remove not used files
This commit is contained in:
@@ -1,45 +0,0 @@
|
||||
@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
|
||||
@@ -1,51 +0,0 @@
|
||||
@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
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user