dashy: add prebuild

This commit is contained in:
Tobias
2026-04-13 21:18:17 +02:00
parent 0c60c7c6b0
commit e0c76d6ef8

View File

@@ -13,13 +13,12 @@ setting_up_container
network_check network_check
update_os update_os
NODE_VERSION="24" setup_nodejs NODE_VERSION="18" NODE_MODULE="yarn" setup_nodejs
fetch_and_deploy_gh_release "dashy" "Lissy93/dashy" "tarball" fetch_and_deploy_gh_release "dashy" "Lissy93/dashy" "prebuild" "latest" "/opt/dashy" "dashy-*.tar.gz"
msg_info "Installing Dashy" msg_info "Installing Dashy"
cd /opt/dashy cd /opt/dashy
$STD npm install $STD yarn install --production --ignore-engines --network-timeout 300000
$STD npm run build
msg_ok "Installed Dashy" msg_ok "Installed Dashy"
msg_info "Creating Service" msg_info "Creating Service"
@@ -30,7 +29,7 @@ Description=dashy
[Service] [Service]
Type=simple Type=simple
WorkingDirectory=/opt/dashy WorkingDirectory=/opt/dashy
ExecStart=/usr/bin/npm start ExecStart=/usr/bin/node server.js
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF