mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-31 04:54:43 +00:00
Profilarr: standardize architecture case statements in scripts & v2 Support
This commit is contained in:
+2
-2
@@ -70,8 +70,8 @@ EOF
|
|||||||
export VITE_CHANNEL=stable
|
export VITE_CHANNEL=stable
|
||||||
$STD deno run -A npm:vite build
|
$STD deno run -A npm:vite build
|
||||||
case "$ARCH" in
|
case "$ARCH" in
|
||||||
aarch64) DENO_TARGET="aarch64-unknown-linux-gnu" ;;
|
aarch64) DENO_TARGET="aarch64-unknown-linux-gnu" ;;
|
||||||
*) DENO_TARGET="x86_64-unknown-linux-gnu" ;;
|
*) DENO_TARGET="x86_64-unknown-linux-gnu" ;;
|
||||||
esac
|
esac
|
||||||
$STD deno compile \
|
$STD deno compile \
|
||||||
--no-check \
|
--no-check \
|
||||||
|
|||||||
@@ -14,12 +14,9 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt install -y \
|
||||||
curl \
|
|
||||||
unzip \
|
unzip \
|
||||||
git \
|
git \
|
||||||
tar \
|
|
||||||
ca-certificates \
|
|
||||||
libsqlite3-0
|
libsqlite3-0
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
@@ -27,8 +24,8 @@ msg_info "Installing Deno"
|
|||||||
DENO_VERSION=$(curl -fsSL "https://api.github.com/repos/denoland/deno/releases/latest" | grep '"tag_name"' | sed 's/.*"v\([^"]*\)".*/\1/')
|
DENO_VERSION=$(curl -fsSL "https://api.github.com/repos/denoland/deno/releases/latest" | grep '"tag_name"' | sed 's/.*"v\([^"]*\)".*/\1/')
|
||||||
ARCH=$(uname -m)
|
ARCH=$(uname -m)
|
||||||
case "$ARCH" in
|
case "$ARCH" in
|
||||||
aarch64) DENO_FILE="deno-aarch64-unknown-linux-gnu.zip" ;;
|
aarch64) DENO_FILE="deno-aarch64-unknown-linux-gnu.zip" ;;
|
||||||
*) DENO_FILE="deno-x86_64-unknown-linux-gnu.zip" ;;
|
*) DENO_FILE="deno-x86_64-unknown-linux-gnu.zip" ;;
|
||||||
esac
|
esac
|
||||||
curl -fsSL "https://github.com/denoland/deno/releases/download/v${DENO_VERSION}/${DENO_FILE}" -o /tmp/deno.zip
|
curl -fsSL "https://github.com/denoland/deno/releases/download/v${DENO_VERSION}/${DENO_FILE}" -o /tmp/deno.zip
|
||||||
$STD unzip -qo /tmp/deno.zip -d /usr/local/bin/
|
$STD unzip -qo /tmp/deno.zip -d /usr/local/bin/
|
||||||
@@ -64,8 +61,8 @@ export APP_BASE_PATH=/opt/profilarr/dist/build
|
|||||||
export VITE_CHANNEL=stable
|
export VITE_CHANNEL=stable
|
||||||
$STD deno run -A npm:vite build
|
$STD deno run -A npm:vite build
|
||||||
case "$ARCH" in
|
case "$ARCH" in
|
||||||
aarch64) DENO_TARGET="aarch64-unknown-linux-gnu" ;;
|
aarch64) DENO_TARGET="aarch64-unknown-linux-gnu" ;;
|
||||||
*) DENO_TARGET="x86_64-unknown-linux-gnu" ;;
|
*) DENO_TARGET="x86_64-unknown-linux-gnu" ;;
|
||||||
esac
|
esac
|
||||||
$STD deno compile \
|
$STD deno compile \
|
||||||
--no-check \
|
--no-check \
|
||||||
|
|||||||
Reference in New Issue
Block a user