[eric] app builder: fix windows-built apps failing by always creating the workspace .env (the windows build dropped the .env.example it seeds from) and writing app files as utf-8 (windows cp1252 choked on arrows and chess pieces); stays on 1.1.69 to rebuild only the windows installer

This commit is contained in:
Eric
2026-05-26 17:40:51 -07:00
parent 8c5b3bdf64
commit ca5d69301d
4 changed files with 41 additions and 11 deletions
+8 -2
View File
@@ -39,8 +39,14 @@ cleanup() {
}
trap cleanup EXIT
if [[ "${BACKEND_PORT}" == "NONE" ]]; then
echo "BACKEND_PORT=NONE — running frontend only (no backend)."
if [[ "${BACKEND_PORT}" == "NONE" || -z "${BACKEND_PORT}" || ! -f "$ROOT_DIR/backend/run.sh" ]]; then
# Frontend-only is the safe default: BACKEND_PORT=NONE (frontend-only app),
# OR unset/empty (e.g. .env missing — never start a backend that isn't
# configured), OR there is genuinely no backend/run.sh to run. Without the
# last two guards an unset BACKEND_PORT fell through to the backend branch
# and `bash backend/run.sh` died with "No such file or directory", tearing
# the whole app down before the frontend could show.
echo "Running frontend only (no backend configured)."
echo ""
bash "$ROOT_DIR/frontend/run.sh" 2>&1 | awk '{printf "\033[32m[frontend]\033[0m %s\n", $0; fflush()}' &