Install dpkg-dev and update Release
This commit is contained in:
parent
e65491a2ab
commit
b85cc3926a
2 changed files with 36 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
set -e
|
||||
apt-get update
|
||||
apt-get install -y curl
|
||||
apt-get install -y dpkg-dev
|
||||
|
||||
# Update steam - have to do all this stuff because the filename is always the same.
|
||||
# There's probably a better way to do this.
|
||||
|
@ -15,5 +16,9 @@ cd /repo
|
|||
curl -LO $(curl -s https://api.github.com/repos/ArmCord/ArmCord/releases/latest | grep "browser_download_url.*ArmCord_.*_amd64.deb" | cut -d : -f 2,3 | tr -d \") -C -
|
||||
cd /drone/src
|
||||
|
||||
# Do repo stuff
|
||||
dpkg-scanpackages --arch amd64 /repo > /repo/Packages
|
||||
cat /repo/Packages | gzip -9 > /repo/Packages.gz
|
||||
cat /repo/Packages | gzip -9 > /repo/Packages.gz
|
||||
cd /repo
|
||||
mv /drone/src/generate-Release.sh .
|
||||
./generate-Release.sh > Release
|
30
generate-Release.sh
Normal file
30
generate-Release.sh
Normal file
|
@ -0,0 +1,30 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
do_hash() {
|
||||
HASH_NAME=$1
|
||||
HASH_CMD=$2
|
||||
echo "${HASH_NAME}:"
|
||||
for f in $(find -type f); do
|
||||
f=$(echo $f | cut -c3-) # remove ./ prefix
|
||||
if [ "$f" = "Release" ]; then
|
||||
continue
|
||||
fi
|
||||
echo " $(${HASH_CMD} ${f} | cut -d" " -f1) $(wc -c $f)"
|
||||
done
|
||||
}
|
||||
|
||||
cat << EOF
|
||||
Origin: askiiart.net
|
||||
Label: askiiiart's repo
|
||||
Suite: stable
|
||||
Codename: bookworm
|
||||
Version: 1.0
|
||||
Architectures: amd64 arm64 arm7
|
||||
Components: main
|
||||
Description: An example software repository
|
||||
Date: $(date -Ru)
|
||||
EOF
|
||||
do_hash "MD5Sum" "md5sum"
|
||||
do_hash "SHA1" "sha1sum"
|
||||
do_hash "SHA256" "sha256sum"
|
Loading…
Reference in a new issue