repo-automation/debian-bookworm-x64.sh

39 lines
1.9 KiB
Bash
Raw Normal View History

2023-09-10 18:16:36 -05:00
#!/bin/bash
2023-09-10 20:41:11 -05:00
set -e
2023-09-10 19:19:55 -05:00
apt-get update
2023-09-10 20:43:01 -05:00
apt-get install -y curl
2023-09-10 21:35:34 -05:00
apt-get install -y dpkg-dev
2023-09-10 19:19:55 -05:00
2023-09-10 18:16:36 -05:00
# Update steam - have to do all this stuff because the filename is always the same.
# There's probably a better way to do this.
# Update: This is pretty much just a deb file to install a repo, so it can't be part of my repo
2023-09-11 22:31:06 -05:00
#curl -LO https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb
#if ! cmp --silent "./steam.deb" "/repo/steam.deb"; then
# curl -L https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb -o /repo/steam.deb
#fi
2023-09-10 18:16:36 -05:00
# ArmCord
2023-09-16 12:06:56 -05:00
cd /repo/dists/bookworm/stable/binary-amd64/
curl -LO $(curl -s https://api.github.com/repos/Legcord/Legcord/releases/latest | grep "browser_download_url.*Legcord-.*-linux-amd64.deb" | cut -d : -f 2,3 | tr -d \") -C -
2023-09-10 19:19:55 -05:00
# Discord
2023-09-16 10:36:46 -05:00
# Has to be manually updated for each version
discord_version="0.0.46"
curl -LO https://dl.discordapp.net/apps/linux/$discord_version/discord-$discord_version.deb -C -
2023-09-16 10:36:46 -05:00
# th-ch/youtube-music
curl -LO $(curl -s https://api.github.com/repos/th-ch/youtube-music/releases/latest | grep "browser_download_url.*youtube-music_.*_amd64.deb" | cut -d : -f 2,3 | tr -d \") -C -
2023-09-11 22:31:06 -05:00
# Vencord Desktop/Vesktop
2024-01-29 08:33:52 -06:00
curl -LO $(curl -s https://api.github.com/repos/Vencord/Vesktop/releases/latest | grep "browser_download_url.*vesktop_.*_amd64.deb" | cut -d : -f 2,3 | tr -d \") -C -
# schildichat-desktop
2024-03-18 19:00:28 -05:00
curl $(curl -s https://api.github.com/repos/SchildiChat/schildichat-desktop/releases/latest | grep "browser_download_url.*schildichat-desktop_.*_amd64.deb" | cut -d : -f 2,3 | tr -d \") -LO -C -
2024-01-29 08:31:40 -06:00
2023-09-10 21:35:34 -05:00
# Do repo stuff
cd /repo
2023-09-13 08:33:24 -05:00
dpkg-scanpackages --arch amd64 dists/bookworm/stable/binary-amd64/ > dists/bookworm/stable/binary-amd64/Packages
cat dists/bookworm/stable/binary-amd64/Packages | gzip -9 > dists/bookworm/stable/binary-amd64/Packages.gz
2023-09-16 12:15:05 -05:00
mv /drone/src/generate-Release.sh ./dists/bookworm/stable/binary-amd64/generate-Release.sh
2024-08-25 08:19:12 -05:00
./dists/bookworm/stable/binary-amd64/generate-Release.sh > Release