Skip to content

Commit

Permalink
chore: moved package urls to top of file
Browse files Browse the repository at this point in the history
  • Loading branch information
cecilia-sanare committed Mar 15, 2024
1 parent eccdeb9 commit d89846e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/usr/bin/env bash
set -e

# TODO: Make this smarter so we don't have to update it every release
VERSION="0.5.1"
DEB_PACKAGE="https://github.com/rain-cafe/protontweaks/releases/download/v$VERSION/protontweaks.deb"
RPM_PACKAGE="https://github.com/rain-cafe/protontweaks/releases/download/v$VERSION/protontweaks.rpm"

managers=()

has_manager() {
Expand Down Expand Up @@ -78,14 +83,14 @@ case $manager in
;;
"apt-get")
echo "Downloading debian package..."
curl -fsSL https://github.com/rain-cafe/protontweaks/releases/download/v0.5.1/protontweaks.deb -o /tmp/protontweaks.deb
curl -fsSL $DEB_PACKAGE -o /tmp/protontweaks.deb
echo_overwrite "Downloading debian package... Complete!\n"
sudo_inform "To install the protontweaks debian package with apt-get." apt-get install /tmp/protontweaks.deb
rm -f /tmp/protontweaks.deb
;;
"rpm")
echo "Downloading rpm package..."
curl -fsSL https://github.com/rain-cafe/protontweaks/releases/download/v0.5.1/protontweaks.rpm -o /tmp/protontweaks.rpm
curl -fsSL $RPM_PACKAGE -o /tmp/protontweaks.rpm
echo_overwrite "Downloading rpm package... Complete!\n"
sudo_inform "To install the protontweaks rpm package with rpm." rpm -i /tmp/protontweaks.rpm
rm -f /tmp/protontweaks.rpm
Expand Down

0 comments on commit d89846e

Please sign in to comment.