-
Notifications
You must be signed in to change notification settings - Fork 8
/
DKBuilder.cmd
33 lines (21 loc) · 1009 Bytes
/
DKBuilder.cmd
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
@echo off
setlocal enableDelayedExpansion
set "HDK=https://raw.githubusercontent.com/aquawicket/DigitalKnob/Development/DKBatch/functions/DK.cmd"
set "DKF=%USERPROFILE%\digitalknob\Development\DKBatch\functions"
if not exist "!DKF!" set "DKF=%USERPROFILE%\.dk\DKBatch\functions"
attrib +h %USERPROFILE%\.dk
set "DK=!DKF!\DK.cmd"
mkdir "!DKF!" 2>nul
set "DK=!DKF!\DK.cmd"
if not exist !DK! powershell -c "(New-Object Net.WebClient).DownloadFile('!HDK!','!DK!')" >nul 2>&1||certutil -urlcache -split -f "!HDK!" "!DK!" >nul 2>&1||curl -f "!HDK!" -o "!DK!" >nul 2>&1||echo DKINIT Failed
endlocal & set "DK=%DK%"
set "DKF=%DKF%"
call "%DK%" %~0 %*
::takeown /F %DKF% /R /D "Y"
::####################
%dk_call% dk_buildMain
:: DKHOME C:/Users/aquawicket
:: DKHTTP_HOME https://raw.githubusercontent.com/aquawicket
:: DIGITALKNOB_DIR C:/Users/aquawicket/digitalknob/
:: DKHTTP_DIGITALKNOB https://raw.githubusercontent.com/aquawicket/digitalknob/
::