mirror of
https://github.com/tumillanino/miasma-os.git
synced 2026-04-11 07:15:31 +00:00
bitwig install script created
This commit is contained in:
@@ -1,53 +0,0 @@
|
|||||||
#!/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")"
|
|
||||||
@@ -1,11 +1,18 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
ROOT_UID=0
|
echo "Installing Bitwig Studio..."
|
||||||
E_NOTROOT=87
|
|
||||||
DEFAULT_FILENAME="bitwig-studio-latest.deb"
|
|
||||||
DEFAULT_URL="https://www.bitwig.com/dl/?id=419&os=installer_linux"
|
|
||||||
INSTALL_LOG="/opt/bitwig-studio/.$DEFAULT_FILENAME.log"
|
|
||||||
SAFE_FILE_REMOVE="^/\./usr/share/*|^/\./opt/bitwig-studio/*"
|
|
||||||
|
|
||||||
curl -fsSL bitwig-studio-latest.deb $DEFAULT_URL
|
dnf install -y libbsd bzip2-libs dpkg
|
||||||
|
|
||||||
|
curl -L -o /tmp/bitwig.deb "https://www.bitwig.com/dl/?id=419&os=installer_linux"
|
||||||
|
|
||||||
|
dpkg-deb -x /tmp/bitwig.deb /
|
||||||
|
|
||||||
|
ln -sf /usr/lib64/libbz2.so.1 /usr/lib64/libbz2.so.1.0
|
||||||
|
|
||||||
|
rm -f /tmp/bitwig.deb
|
||||||
|
|
||||||
|
echo "Bitwig Studio installation complete."
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|||||||
@@ -4,8 +4,11 @@ set -euo pipefail
|
|||||||
curl -L -o /tmp/decent-sampler.tar.gz "https://cdn.decentsamples.com/production/builds/ds/1.18.1/Decent_Sampler-1.18.1-Linux-Static-x86_64.tar.gz"
|
curl -L -o /tmp/decent-sampler.tar.gz "https://cdn.decentsamples.com/production/builds/ds/1.18.1/Decent_Sampler-1.18.1-Linux-Static-x86_64.tar.gz"
|
||||||
tar xvf /tmp/decent-sampler.tar.gz -C /tmp
|
tar xvf /tmp/decent-sampler.tar.gz -C /tmp
|
||||||
|
|
||||||
cd /tmp/Decent_Sampler-1.18.1-Linux-Static-x86_64
|
cd /tmp
|
||||||
./install.sh
|
|
||||||
|
mkdir -p /usr/lib64/vst/decentsampler
|
||||||
|
cd Decent_Sampler-1.18.1-Linux-Static-x86_64
|
||||||
|
mv DecentSampler.so /usr/lib64/decentsampler/
|
||||||
|
|
||||||
rm -rf /tmp/decent-sampler.tar.gz /tmp/Decent* || true
|
rm -rf /tmp/decent-sampler.tar.gz /tmp/Decent* || true
|
||||||
|
|
||||||
|
|||||||
@@ -9,4 +9,7 @@ modules:
|
|||||||
- installreaper.sh
|
- installreaper.sh
|
||||||
- installrenoise.sh
|
- installrenoise.sh
|
||||||
- installsurgext.sh
|
- installsurgext.sh
|
||||||
|
- installbitwig.sh
|
||||||
|
- installdecentsampler.sh
|
||||||
- branding.sh
|
- branding.sh
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user