Landwelle Gitea CI / JavaScript and deployment-script checks (push) Successful in 45s
Landwelle Gitea CI / Go tests and vet (push) Successful in 51s
Landwelle Gitea source ZIP / source-zip (push) Successful in 52s
Landwelle Gitea CI / Linux x64 production build (push) Successful in 1m2s
Preserve application source, public asset URLs, migrations and runtime version. Update Gitea workflows, build paths and developer documentation; retain existing x64 update commands.
28 lines
1.3 KiB
Bash
Executable File
28 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
|
|
# zip -d/overwrite does not remove old source files. Prevent accidental mixing
|
|
# of the removed Firebase/App modules and the archived destination.one importer.
|
|
for rel in firebase_push.go app_api.go admin_push.go firebase_push_stub.go destination_one.go; do
|
|
if [[ -e "$ROOT_DIR/$rel" || -e "$ROOT_DIR/cmd/portal/$rel" ]]; then
|
|
printf 'Build abgebrochen: veraltete Go-Datei im Quellverzeichnis: %s\n' "$rel" >&2
|
|
printf 'Diese Version benötigt ein frisches Quellverzeichnis. Alte Dateien NICHT überschreiben!\n' >&2
|
|
exit 1
|
|
fi
|
|
done
|
|
# Portal-Go-Dateien gehören ausschließlich in cmd/portal. Auch bei einer
|
|
# versehentlich über einen Altstand entpackten ZIP-Ausgabe ohne Git abbrechen.
|
|
shopt -s nullglob
|
|
root_go=("$ROOT_DIR"/*.go)
|
|
if (( ${#root_go[@]} > 0 )); then
|
|
printf 'Build abgebrochen: alte Go-Dateien im Repository-Hauptverzeichnis:\n%s\n' "${root_go[@]}" >&2
|
|
echo "Bitte eine frische Git-Arbeitskopie oder ein frisches Quellverzeichnis verwenden." >&2
|
|
exit 1
|
|
fi
|
|
if [[ ! -f "$ROOT_DIR/cmd/portal/main.go" ]]; then
|
|
echo "Build abgebrochen: cmd/portal/main.go fehlt." >&2
|
|
exit 1
|
|
fi
|
|
printf 'Quellstand geprüft: keine veralteten Firebase-, App- oder Hub-Module vorhanden.\n'
|