diff --git a/build-db.sh b/build-db.sh new file mode 100644 index 0000000..d0988d7 --- /dev/null +++ b/build-db.sh @@ -0,0 +1,53 @@ +#!/usr/bin/env bash +# +# Script name: build-db.sh +# Description: Script for rebuilding the database for dtos-core-repo. +# GitLab: https://www.gitlab.com/dwt1/dtos-core-repo +# Contributors: Derek Taylor + +# Set with the flags "-e", "-u","-o pipefail" cause the script to fail +# if certain things happen, which is a good thing. Otherwise, we can +# get hidden bugs that are hard to discover. +set -euo pipefail + +x86_pkgbuild=$(find ../dtos-pkgbuild/x86_64 -type f -name "*.pkg.tar.zst*") + +for x in ${x86_pkgbuild} +do + mv "${x}" x86_64/ + echo "Moving ${x}" +done + +echo "###########################" +echo "Building the repo database." +echo "###########################" + +## Arch: x86_64 +cd x86_64 +rm -f dtos-core-repo* + +echo "###################################" +echo "Building for architecture 'x86_64'." +echo "###################################" + +## repo-add +## -s: signs the packages +## -n: only add new packages not already in database +## -R: remove old package files when updating their entry +repo-add -s -n -R dtos-core-repo.db.tar.gz *.pkg.tar.zst + +# Removing the symlinks because GitLab can't handle them. +rm dtos-core-repo.db +rm dtos-core-repo.db.sig +rm dtos-core-repo.files +rm dtos-core-repo.files.sig + +# Renaming the tar.gz files without the extension. +mv dtos-core-repo.db.tar.gz dtos-core-repo.db +mv dtos-core-repo.db.tar.gz.sig dtos-core-repo-db.sig +mv dtos-core-repo.files.tar.gz dtos-core-repo.files +mv dtos-core-repo.files.tar.gz.sig dtos-core-repo.files.sig + +echo "#######################################" +echo "Packages in the repo have been updated!" +echo "#######################################" diff --git a/pushit.sh b/pushit.sh new file mode 100644 index 0000000..6a89d88 --- /dev/null +++ b/pushit.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +# +# Script name: pushit.sh +# Description: Script for pushing changes to dtos-core-repo to GitLab. +# GitLab: https://www.gitlab.com/dwt1/dtos-core-repo +# Contributors: Derek Taylor + +# Set with the flags "-e", "-u","-o pipefail" cause the script to fail +# if certain things happen, which is a good thing. Otherwise, we can +# get hidden bugs that are hard to discover. +set -euo pipefail + +git status +git add -u && echo "Git add updated files in this directory." +git add * && echo "Git add all files in this directory." +git commit -m "Updating database." && echo "Commit Message: Updating database." +git push && echo "Git push completed." + diff --git a/x86_64/arch-repo.db b/x86_64/arch-repo.db index 43ec6f6..c133fad 100644 Binary files a/x86_64/arch-repo.db and b/x86_64/arch-repo.db differ diff --git a/x86_64/arch-repo.files b/x86_64/arch-repo.files index 9600bbc..9656c2f 100644 Binary files a/x86_64/arch-repo.files and b/x86_64/arch-repo.files differ diff --git a/x86_64/vmware-workstation-17.5.0-2-x86_64.pkg.tar.zst b/x86_64/vmware-workstation-17.5.0-2-x86_64.pkg.tar.zst new file mode 100644 index 0000000..05f2d87 Binary files /dev/null and b/x86_64/vmware-workstation-17.5.0-2-x86_64.pkg.tar.zst differ