-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbitcrystal_bootstrap_update.bat
More file actions
executable file
·47 lines (47 loc) · 1.96 KB
/
bitcrystal_bootstrap_update.bat
File metadata and controls
executable file
·47 lines (47 loc) · 1.96 KB
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
46
47
@echo off
echo start updating bootstrap.dat
echo just a momment please...
echo.
echo.
echo.
set mypath=%~dp0
set bitcrystalpath=%appdata%\BitCrystal_V20
rem pause
rem echo %bitcrystalpath%
rem echo %mypath%
rem pause
IF NOT EXIST "%bitcrystalpath%" (
mkdir "%bitcrystalpath%"
)
del /f /q /s "%mypath%7z.exe" 1> nul 2> nul
del /f /q /s "%mypath%7z.dll" 1> nul 2> nul
del /f /q /s "%mypath%bootstrap.dat.old" 1> nul 2> nul
del /f /q /s "%mypath%bootstrap.dat" 1> nul 2> nul
del /f /q /s "%mypath%bootstrap.tar" 1> nul 2> nul
del /f /q /s "%mypath%bootstrap.tar.gz" 1> nul 2> nul
del /f /q /s "%mypath%fast_update.zip" 1> nul 2> nul
del /f /q /s "%bitcrystalpath%\bootstrap.dat.old" 1> nul 2> nul
del /f /q /s "%bitcrystalpath%\bootstrap.dat" 1> nul 2> nul
del /f /q /s "%bitcrystalpath%\bootstrap.tar" 1> nul 2> nul
del /f /q /s "%bitcrystalpath%\bootstrap.tar.gz" 1> nul 2> nul
del /f /q /s "%bitcrystalpath%\fast_update.zip" 1> nul 2> nul
rmdir /q /s "%bitcrystalpath%\database" 1> nul 2> nul
rmdir /q /s "%bitcrystalpath%\blocks" 1> nul 2> nul
rmdir /q /s "%bitcrystalpath%\chainstate" 1> nul 2> nul
wget http://bitcrystaldownload.demon-craft.de/bitcrystal_conf_update/7z.exe
wget http://bitcrystaldownload.demon-craft.de/bitcrystal_conf_update/7z.dll
wget http://bitcrystaldownload.demon-craft.de/bitcrystal_conf_update/fast_update.zip
wget http://bitcrystaldownload.demon-craft.de/bitcrystal_conf_update/bootstrap.tar.gz
7z -y x "%mypath%bootstrap.tar.gz"
7z -y x "%mypath%bootstrap.tar"
7z -y x "%mypath%fast_update.zip" -o"%bitcrystalpath%"
copy /b "%mypath%bootstrap.dat" "%bitcrystalpath%\bootstrap.dat"
del /f /q /s "%mypath%7z.exe" 1> nul 2> nul
del /f /q /s "%mypath%7z.dll" 1> nul 2> nul
del /f /q /s "%mypath%bootstrap.dat.old" 1> nul 2> nul
del /f /q /s "%mypath%bootstrap.dat" 1> nul 2> nul
del /f /q /s "%mypath%bootstrap.tar" 1> nul 2> nul
del /f /q /s "%mypath%bootstrap.tar.gz" 1> nul 2> nul
del /f /q /s "%mypath%fast_update.zip" 1> nul 2> nul
start "" "%~dp0bitcrystal-qt.exe"
exit 0