Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
neo250376 authored Mar 6, 2024
1 parent a1c61bb commit 53f2ff5
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
35 changes: 35 additions & 0 deletions BootstrapMacOS.sh
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/
43 changes: 43 additions & 0 deletions BootstrapWindows10.bat
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

0 comments on commit 53f2ff5

Please sign in to comment.