Add build script

This commit is contained in:
Jon Staab
2024-10-22 17:07:49 -07:00
parent 64dd608cc2
commit c585eb4361
4 changed files with 19 additions and 8 deletions
Executable
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
if [ -f .env ]; then
source .env
fi
if [ -f .env.local ]; then
source .env.local
fi
if [[ $VITE_PLATFORM_LOGO =~ ^https://* ]]; then
curl $VITE_PLATFORM_LOGO > static/logo.png
export VITE_PLATFORM_LOGO=static/logo.png
fi
npx pwa-assets-generator
npx vite build