@echo off setlocal enabledelayedexpansion set "SCRIPT_DIR=%~dp0" cd /d "%SCRIPT_DIR%" || exit /b 1 echo Building Module : Client pushd ..\client cargo build > nul 2>&1 popd echo Building Module : Core pushd ..\core cargo build > nul 2>&1 popd NET FILE >nul 2>&1 if %errorlevel% NEQ 0 ( echo [ WARNING ] If you want to apply folder icons, please grant administrator privileges and run this script again. pause >nul exit /b 0 ) echo Downloading icon11 ... ( from github.com/icon11-community/Folder-Ico.git ) pushd ..\.init git clone git@github.com:icon11-community/Folder-Ico.git > nul 2>&1 popd cd .. copy .\.init\desktop-git.ini .\.git\desktop.ini for /f "delims=" %%D in ('dir /ad /b /s ^| findstr /v /i "\\.cargo\\shared\\"') do ( if exist "%%~D\desktop.ini" ( attrib +h "%%~D\desktop.ini" >nul echo [ ADD ] %%~D ) attrib +s "%%~D" >nul ) del /f /q "%LocalAppData%\IconCache.db" >nul echo [ SUCCESS ] DONE :) pause >nul exit /b 0