Use Node to build
Some checks failed
Update GitHub Versions (New) / update-github-versions (push) Has been cancelled
Crawl Versions from newreleases.io / crawl-versions (push) Has been cancelled
Crawl Versions from github / crawl-versions (push) Has been cancelled
Update Versions from GitHub / update-versions (push) Has been cancelled
Stale PR Management / stale-prs (push) Has been cancelled
Cleanup Branches (Merged or Closed) / cleanup (push) Has been cancelled

This commit is contained in:
vhsdream 2026-02-18 18:52:49 -05:00
parent 0db71a4907
commit 29b06922d1
2 changed files with 8 additions and 2 deletions

View File

@ -40,11 +40,14 @@ function update_script() {
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "zerobyte" "nicotsx/zerobyte" "tarball" 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" msg_info "Building Zerobyte"
export NODE_OPTIONS="--max-old-space-size=3072" export NODE_OPTIONS="--max-old-space-size=3072"
cd /opt/zerobyte cd /opt/zerobyte
$STD bun install $STD bun install
$STD bun run build $STD node ./node_modules/vite/bin/vite.js build
msg_ok "Built Zerobyte" msg_ok "Built Zerobyte"
msg_info "Restoring Configuration" msg_info "Restoring Configuration"

View File

@ -43,6 +43,9 @@ msg_ok "Installed Bun"
fetch_and_deploy_gh_release "zerobyte" "nicotsx/zerobyte" "tarball" 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" msg_info "Building Zerobyte"
cd /opt/zerobyte cd /opt/zerobyte
export VITE_RESTIC_VERSION=$(cat ~/.restic) export VITE_RESTIC_VERSION=$(cat ~/.restic)
@ -50,7 +53,7 @@ export VITE_RCLONE_VERSION=$(cat ~/.rclone)
export VITE_SHOUTRRR_VERSION=$(cat ~/.shoutrrr) export VITE_SHOUTRRR_VERSION=$(cat ~/.shoutrrr)
export NODE_OPTIONS="--max-old-space-size=3072" export NODE_OPTIONS="--max-old-space-size=3072"
$STD bun install $STD bun install
$STD bun run build $STD node ./node_modules/vite/bin/vite.js build
msg_ok "Built Zerobyte" msg_ok "Built Zerobyte"
msg_info "Configuring Zerobyte" msg_info "Configuring Zerobyte"