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