fix puter

This commit is contained in:
MickLesk
2026-04-06 20:03:03 +02:00
parent 9fe9c4f1a0
commit c0cb2528bd

View File

@@ -16,7 +16,8 @@ update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt install -y \ $STD apt install -y \
build-essential \ build-essential \
git git \
python3
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
NODE_VERSION="24" setup_nodejs NODE_VERSION="24" setup_nodejs
@@ -25,7 +26,9 @@ fetch_and_deploy_gh_release "puter" "HeyPuter/puter" "tarball"
msg_info "Building Application" msg_info "Building Application"
cd /opt/puter cd /opt/puter
$STD npm ci node -e "const f=require('fs'),p=JSON.parse(f.readFileSync('package.json'));p.overrides={'better-sqlite3':'>=12.0.0'};f.writeFileSync('package.json',JSON.stringify(p,null,2))"
rm -f package-lock.json
$STD npm install
cd /opt/puter/src/gui cd /opt/puter/src/gui
$STD npm run build $STD npm run build
cd /opt/puter cd /opt/puter