blob: a8b35714e6043d000613706cf04e0a8a626f7c64 (
plain) (
blame)
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
|
@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
|