forked from MapComplete/MapComplete
Fix typo in single build script
This commit is contained in:
parent
39a7ac93e0
commit
f0c0590d66
1 changed files with 5 additions and 4 deletions
|
@ -30,7 +30,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_"$1".ts
|
sed -i "s/\/\/ LAYOUT.ADD_CONFIG/layout.enableMoreQuests = false/" index_"$THEME".ts
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -105,18 +105,19 @@ then
|
||||||
echo "Assuming github pages, add \".nojekyll\""
|
echo "Assuming github pages, add \".nojekyll\""
|
||||||
touch $2/.nojekyll
|
touch $2/.nojekyll
|
||||||
echo $CNAME > $2/CNAME
|
echo $CNAME > $2/CNAME
|
||||||
|
rm -r "$2/assets/*"
|
||||||
echo " ! Don't forget to add `https://$CNAME/land.html` to the Redirect URIs on https://www.openstreetmap.org/oauth2/applications/"
|
echo " ! Don't forget to add `https://$CNAME/land.html` to the Redirect URIs on https://www.openstreetmap.org/oauth2/applications/"
|
||||||
cp -r "dist_$1/"* "$2"/
|
cp -r "dist_$THEME/"* "$2"/
|
||||||
|
|
||||||
if [ -d "$2"/.git ]
|
if [ -d "$2"/.git ]
|
||||||
then
|
then
|
||||||
cd $2
|
cd $2
|
||||||
git add *
|
git add *
|
||||||
git commit -m "Add new version of MapComplete with single-page build of $1"
|
git commit -m "Add new version of MapComplete with single-page build of $THEME"
|
||||||
git push
|
git push
|
||||||
cd -
|
cd -
|
||||||
fi
|
fi
|
||||||
rm "dist_$1"
|
rm "dist_$THEME"
|
||||||
else
|
else
|
||||||
echo "BUILD COMPLETED"
|
echo "BUILD COMPLETED"
|
||||||
echo "On what domain will you deploy?"
|
echo "On what domain will you deploy?"
|
||||||
|
|
Loading…
Reference in a new issue