mirror of
https://github.com/tumillanino/miasma-os.git
synced 2026-04-11 07:15:31 +00:00
move to new repo
This commit is contained in:
53
files/scripts/addbracescripts.sh
Normal file
53
files/scripts/addbracescripts.sh
Normal file
@@ -0,0 +1,53 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -oue pipefail
|
||||
|
||||
./install-divested.sh 20250714
|
||||
./install-divested.sh https://divested.dev/rpm/fedora/divested-release-20250714-1.noarch.rpm
|
||||
BASE_URL='https://divested.dev/rpm/fedora'
|
||||
PKG_PREFIX='divested-release'
|
||||
ARCH='noarch'
|
||||
RPM_SUFFIX='-1' # adjust if upstream uses a different release number
|
||||
RETRY_OPTS=(--retry 3 --retry-delay 5 -S -L -O)
|
||||
|
||||
if [ "${#}" -eq 0 ]; then
|
||||
echo "Usage: $0 YYYYMMDD | FULL_RPM_URL" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
INPUT="$1"
|
||||
|
||||
case "$INPUT" in
|
||||
http:// | https://)
|
||||
RPM_URL="$INPUT"
|
||||
;;
|
||||
[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
|
||||
RELEASE_VERSION="$INPUT"
|
||||
FILENAME="${PKG_PREFIX}-${RELEASE_VERSION}${RPM_SUFFIX}.${ARCH}.rpm"
|
||||
RPM_URL="${BASE_URL}/${FILENAME}"
|
||||
;;
|
||||
*)
|
||||
echo "Invalid argument. Provide a date (YYYYMMDD) or a full URL." >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
TMPDIR="$(mktemp -d)"
|
||||
trap 'rm -rf "$TMPDIR"' EXIT
|
||||
|
||||
RPM_PATH="${TMPDIR}/$(basename "$RPM_URL")"
|
||||
|
||||
echo "Downloading ${RPM_URL} ..."
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
curl "${RETRY_OPTS[@]}" -o "$RPM_PATH" "$RPM_URL"
|
||||
elif command -v wget >/dev/null 2>&1; then
|
||||
wget --tries=3 --wait=5 -O "$RPM_PATH" "$RPM_URL"
|
||||
else
|
||||
echo "Neither curl nor wget available." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Installing ${RPM_PATH} ..."
|
||||
sudo dnf install -y "$RPM_PATH"
|
||||
|
||||
echo "Installed $(basename "$RPM_PATH")"
|
||||
7
files/scripts/branding.sh
Normal file
7
files/scripts/branding.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -oue pipefail
|
||||
mv /tmp/files/assets/images/distributor-logo.svg /usr/share/icons/hicolor/scalable/places/distributor-logo.svg
|
||||
mv /tmp/files/assets/splash/default.jxl /usr/share/backgrounds/default.jxl
|
||||
mv /tmp/files/assets/splash/default-dark.jxl /usr/share/backgrounds/default-dark.jxl
|
||||
mv /tmp/files/assets/images/watermark.png /usr/share/plymouth/themes/spinner/watermark.png
|
||||
6
files/scripts/enablerealtimesetup.sh
Normal file
6
files/scripts/enablerealtimesetup.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -oue pipefail
|
||||
|
||||
systemctl enable realtime-setup.service
|
||||
systemctl enable realtime-entsk.service
|
||||
@@ -1,10 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Tell this script to exit if there are any errors.
|
||||
# You should have this in every custom script, to ensure that your completed
|
||||
# builds actually ran successfully without any errors!
|
||||
set -oue pipefail
|
||||
|
||||
# Your code goes here.
|
||||
echo 'This is an example shell script'
|
||||
echo 'Scripts here will run during build if specified in recipe.yml'
|
||||
16
files/scripts/installreaper.sh
Normal file
16
files/scripts/installreaper.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
curl -L -o /tmp/reaper.tar.xz "https://www.reaper.fm/files/7.x/reaper765_linux_x86_64.tar.xz"
|
||||
tar -xJf /tmp/reaper.tar.xz -C /tmp
|
||||
|
||||
cd /tmp/reaper_linux_x86_64
|
||||
./install-reaper.sh --install /usr/lib --integrate-desktop
|
||||
|
||||
if [ -f "/root/.local/share/applications/cockos-reaper.desktop" ]; then
|
||||
mkdir -p /usr/share/applications/
|
||||
mv /root/.local/share/applications/cockos-reaper.desktop /usr/share/applications/
|
||||
sed -i 's|/root/opt/REAPER|/usr/lib/REAPER|g' /usr/share/applications/cockos-reaper.desktop
|
||||
fi
|
||||
|
||||
rm -rf /tmp/reaper*
|
||||
12
files/scripts/installrenoise.sh
Normal file
12
files/scripts/installrenoise.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
curl -L -o /tmp/renoise.tar.gz "https://files.renoise.com/demo/Renoise_3_5_4_Demo_Linux_x86_64.tar.gz"
|
||||
tar xvf /tmp/renoise.tar.gz -C /tmp
|
||||
|
||||
cd /tmp/Renoise_3_5_4_Demo_Linux_x86_64
|
||||
./install.sh || echo "Installer finished with minor warnings (likely desktop-integration related)"
|
||||
|
||||
rm -rf /tmp/renoise.tar.gz /tmp/Renoise* || true
|
||||
|
||||
exit 0
|
||||
4
files/scripts/installsurgext.sh
Normal file
4
files/scripts/installsurgext.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
rpm_url="https://github.com/surge-synthesizer/releases-xt/releases/download/1.3.4/surge-xt-x86_64-1.3.4.rpm"
|
||||
dnf install -y --nogpgcheck "$rpm_url"
|
||||
4
files/scripts/installzshpacketmanager.sh
Normal file
4
files/scripts/installzshpacketmanager.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||
Reference in New Issue
Block a user