From 29b06922d119de75bb9accd8d54daf4135cc5d23 Mon Sep 17 00:00:00 2001 From: vhsdream Date: Wed, 18 Feb 2026 18:52:49 -0500 Subject: [PATCH] Use Node to build --- ct/zerobyte.sh | 5 ++++- install/zerobyte-install.sh | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ct/zerobyte.sh b/ct/zerobyte.sh index 67f21ee67..70f1b0c14 100644 --- a/ct/zerobyte.sh +++ b/ct/zerobyte.sh @@ -40,11 +40,14 @@ function update_script() { CLEAN_INSTALL=1 fetch_and_deploy_gh_release "zerobyte" "nicotsx/zerobyte" "tarball" + # Workaround for high RAM during bun run build + NODE_VERSION="24" setup_nodejs + msg_info "Building Zerobyte" export NODE_OPTIONS="--max-old-space-size=3072" cd /opt/zerobyte $STD bun install - $STD bun run build + $STD node ./node_modules/vite/bin/vite.js build msg_ok "Built Zerobyte" msg_info "Restoring Configuration" diff --git a/install/zerobyte-install.sh b/install/zerobyte-install.sh index 1f3a93e99..dfc88dbf2 100644 --- a/install/zerobyte-install.sh +++ b/install/zerobyte-install.sh @@ -43,6 +43,9 @@ msg_ok "Installed Bun" fetch_and_deploy_gh_release "zerobyte" "nicotsx/zerobyte" "tarball" +# Workaround for high RAM during bun run build +NODE_VERSION="24" setup_nodejs + msg_info "Building Zerobyte" cd /opt/zerobyte export VITE_RESTIC_VERSION=$(cat ~/.restic) @@ -50,7 +53,7 @@ export VITE_RCLONE_VERSION=$(cat ~/.rclone) export VITE_SHOUTRRR_VERSION=$(cat ~/.shoutrrr) export NODE_OPTIONS="--max-old-space-size=3072" $STD bun install -$STD bun run build +$STD node ./node_modules/vite/bin/vite.js build msg_ok "Built Zerobyte" msg_info "Configuring Zerobyte"