Skip to content

Commit

Permalink
feat: added mingw repo for databases
Browse files Browse the repository at this point in the history
  • Loading branch information
BRAVO68WEB committed Jun 11, 2024
1 parent b8d4c5f commit 7c10728
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/get_dbs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ echo "Downloading blackarch"
curl https://mirrors.gethosted.online/blackarch/blackarch/blackarch/os/x86_64/blackarch.db.tar.gz --output db/blackarch.db.tar.gz >/dev/null 2>&1
echo "Downloaded blackarch"

echo "Downloading mingw64"
curl https://repo.msys2.org/mingw/x86_64/mingw64.files --output db/mingw64.files >/dev/null 2>&1
echo "Downloaded mingw64"

echo "Completed downloading databases"

echo "Creating directories"
Expand All @@ -32,6 +36,7 @@ mkdir -p db/extra
mkdir -p db/multilib
mkdir -p db/chaotic-aur
mkdir -p db/blackarch
mkdir -p db/mingw64
echo "Directories created"

echo "Extracting Databases"
Expand All @@ -57,6 +62,11 @@ echo "Extracting blackarch"
tar -xzf db/blackarch.db.tar.gz -C db/blackarch >/dev/null 2>&1
echo "Extracted blackarch"

echo "Extracting mingw64"
cp db/mingw64.files db/mingw64.zst
tar --zstd -xvf db/mingw64.zst -C db/mingw64 >/dev/null 2>&1
echo "Extracted mingw64"

echo "Completed extracting databases"

echo "Removing tar files"
Expand All @@ -66,8 +76,13 @@ rm db/multilib.db.tar.gz
rm db/chaotic-aur.zst
rm db/chaotic-aur.files
rm db/blackarch.db.tar.gz
rm db/mingw64.zst
rm db/mingw64.files
echo "Removed tar files"

# Remove unnecessary files 'files'
rm db/**/files

echo $(date +"%s") > db/endtime

# aur
Expand Down

0 comments on commit 7c10728

Please sign in to comment.