-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |