Scripts: attempt to fix single build

This commit is contained in:
Pieter Vander Vennet 2025-06-17 15:03:59 +02:00
parent bfc01dbfe4
commit dac07090b4
2 changed files with 2 additions and 3 deletions

View file

@ -45,7 +45,7 @@ jobs:
run: | run: |
BRANCH=${{ github.ref_name }} BRANCH=${{ github.ref_name }}
THEME=${BRANCH:6} 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"

View file

@ -8,7 +8,6 @@ if [ $# -eq 0 ]
echo "No arguments given. Expected a themename" echo "No arguments given. Expected a themename"
fi fi
npm run prep:layeroverview
npm run reset:layeroverview npm run reset:layeroverview
npm run test npm run test
npm run generate:layouts npm run generate:layouts
@ -39,7 +38,7 @@ rm index.html
cp "$THEME.html" 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/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 export NODE_OPTIONS=--max-old-space-size=20000