Expand multiple build capabilities

This commit is contained in:
2023-07-29 15:16:15 -04:00
parent 5723150307
commit e074d5b812
25 changed files with 116 additions and 91 deletions

View File

@@ -1,46 +0,0 @@
#!/usr/bin/env bash
set -oue pipefail
VERSION="v1.23.4"
BASE_URL="https://github.com/syncthing/syncthing/releases/download"
FILENAME="syncthing-linux-amd64-${VERSION}.tar.gz"
EXTRACTED_DIR="syncthing-linux-amd64-${VERSION}"
# Download the file
wget --quiet "${BASE_URL}/${VERSION}/${FILENAME}"
# Extract the file
tar xf "${FILENAME}"
# Move the binary to /usr/local/bin
mv "${EXTRACTED_DIR}/syncthing" /usr/bin
# Move .desktop files
mv "${EXTRACTED_DIR}/etc/linux-desktop/"*.desktop /usr/share/applications/
# Move the systemd service file
cp "${EXTRACTED_DIR}/etc/linux-systemd/user/syncthing.service" /etc/systemd/system/
# Enable the systemd service
systemctl enable syncthing
# Verify the installation
if command -v syncthing &> /dev/null
then
echo "Syncthing command is found in PATH."
else
echo "Syncthing command not found in PATH."
exit 1
fi
# Verify that syncthing --version works
if syncthing --version &> /dev/null
then
echo "Syncthing --version executes successfully."
else
echo "Syncthing --version did not execute successfully."
exit 1
fi
# Cleanup
rm -rf "${EXTRACTED_DIR}"

View File

@@ -1,12 +0,0 @@
#!/usr/bin/env bash
set -oue pipefail
cat <<EOF | tee /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-\$basearch
enabled=1
gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF

View File

@@ -1,6 +0,0 @@
#!/usr/bin/env bash
set -oue pipefail
rpm --import https://packages.microsoft.com/keys/microsoft.asc
sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'