From dac07090b465ff0224fa40bbb83d40b6fec9d320 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 17 Jun 2025 15:03:59 +0200 Subject: [PATCH] Scripts: attempt to fix single build --- .forgejo/workflows/deploy_single_theme.yml | 2 +- scripts/single_build.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/deploy_single_theme.yml b/.forgejo/workflows/deploy_single_theme.yml index 91956a8563..8b0671397b 100644 --- a/.forgejo/workflows/deploy_single_theme.yml +++ b/.forgejo/workflows/deploy_single_theme.yml @@ -45,7 +45,7 @@ jobs: run: | BRANCH=${{ github.ref_name }} THEME=${BRANCH:6} - ssh hetzner "cd /root/staging && unzip $THEME.zip && rm -rf /root/single_theme_builds/$THEME && mv /root/staging/$THEME/ /root/single_theme_builds/ && rm $THEME.zip" + ssh hetzner "cd /root/staging && unzip $THEME.zip && rm -rf /root/single_theme_builds/$THEME && mv /root/staging/dist_$THEME/ /root/single_theme_builds/$THEME && rm $THEME.zip" diff --git a/scripts/single_build.sh b/scripts/single_build.sh index cca3a449cc..6282fb2ddb 100755 --- a/scripts/single_build.sh +++ b/scripts/single_build.sh @@ -8,7 +8,6 @@ if [ $# -eq 0 ] echo "No arguments given. Expected a themename" fi -npm run prep:layeroverview npm run reset:layeroverview npm run test npm run generate:layouts @@ -39,7 +38,7 @@ rm index.html cp "$THEME.html" index.html sed -i "s/input,/input: {index:\".\/index.html\", land: \".\/land.html\"},/" vite_single.config.js -sed -i "s/\/\/ LAYOUT.ADD_CONFIG/layout.enableMoreQuests = false/" index_"$THEME".ts +sed -i "s/\/\/ LAYOUT.ADD_CONFIG/theme.enableMoreQuests = false/" index_"$THEME".ts export NODE_OPTIONS=--max-old-space-size=20000