Added version file inside assets in build-process which will be available to view without logging in

This commit is contained in:
Erik Tiekstra
2021-11-03 08:03:33 +01:00
parent c5bc308364
commit 8d1f61730c

View File

@@ -39,6 +39,7 @@ if [ $config = "api" ]; then
else else
sed "s/version:.*',/version: '${version}',/" apps/mina-sidor-fa/src/environments/environment.$config.ts > temp.txt && mv temp.txt apps/mina-sidor-fa/src/environments/environment.$config.ts sed "s/version:.*',/version: '${version}',/" apps/mina-sidor-fa/src/environments/environment.$config.ts > temp.txt && mv temp.txt apps/mina-sidor-fa/src/environments/environment.$config.ts
fi fi
echo $version > apps/mina-sidor-fa/src/assets/version
echo -e "${GREEN}Version set to ${version}${NOCOLOR}" echo -e "${GREEN}Version set to ${version}${NOCOLOR}"
# ---------------------------------- # ----------------------------------