diff --git a/BootstrapMacOS.sh b/BootstrapMacOS.sh new file mode 100644 index 0000000..2545e3f --- /dev/null +++ b/BootstrapMacOS.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +# Open folder location for AIPG data + +open ~/Library/Application\ \Support/Aipg/ + +# Remove existing block data folders + +rm -rf ~/Library/Application\ \Support/Aipg/blocks +sleep 0.5 +rm -rf ~/Library/Application\ \Support/Aipg/chainstate +sleep 0.5 +rm -rf ~/Library/Application\ \Support/Aipg/assets +sleep 0.5 +rm -rf ~/Library/Application\ \Support/Aipg/messages + +# Download latest bootstrap file + +curl -LJO https://github.com/AIPowerGrid/AIPG-Bootstrap/archive/refs/tags/20-02-2024.tar.gz + +# Unpack Bootstrap file + +tar -xvf AIPG-Bootstrap-20-02-2024.tar.gz + +# Enter Bootstrap folder + +cd AIPG-Bootstrap-20-02-2024 + +# Zip Bootstrap zip files into one single archive + +zip -s 0 bootstrap.zip --out unsplit.zip + +# Unzip single archive into AIPG data folder + +unzip unsplit.zip -d ~/Library/Application\ \Support/Aipg/ \ No newline at end of file diff --git a/BootstrapWindows10.bat b/BootstrapWindows10.bat new file mode 100644 index 0000000..8b1beb9 --- /dev/null +++ b/BootstrapWindows10.bat @@ -0,0 +1,43 @@ +@echo off + +echo "Removing AIPG Data Directories..." + +rmdir /s /q %APPDATA%\Aipg\blocks + +timeout /t 1 /nobreak > NUL + +rmdir /s /q %APPDATA%\Aipg\chainstate + +timeout /t 1 /nobreak > NUL + +rmdir /s /q %APPDATA%\Aipg\messages + +timeout /t 1 /nobreak > NUL + +rmdir /s /q %APPDATA%\Aipg\assets + +timeout /t 1 /nobreak > NUL + +echo "Downloading Bootstrap..." + +curl -LJO https://github.com/AIPowerGrid/AIPG-Bootstrap/archive/refs/tags/20-02-2024.zip + +tar -xf AIPG-Bootstrap-20-02-2024.zip + +timeout /t 1 /nobreak > NUL + +echo "Copying Bootstrap files..." + +cd AIPG-Bootstrap-20-02-2024 + +copy bootstrap.* %APPDATA%\Aipg + +cd %APPDATA%\Aipg + +tar -xf bootstrap.zip + +timeout /t 1 /nobreak > NUL + +echo "Bootstrapping complete. Start the AIPG wallet and wait for it to sync." + +pause \ No newline at end of file