URLs auf hps-Org umstellen (Repo-Transfer)
- Auto-Update-URLs (manifest.json, updates.json), release.sh OWNER, CLAUDE.md von kendrick.bollens auf hps - web-editor/docker-compose.yml: Git-Build-Context auf hps-Repo-URL Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
11
CLAUDE.md
11
CLAUDE.md
@@ -4,10 +4,15 @@ Thunderbird-MailExtension „HPS Vorlagen & Signaturen" mit Gitea-Sync.
|
||||
|
||||
## Workflow (WICHTIG)
|
||||
|
||||
1. **Nach jeder Code-Änderung am Plugin immer die `.xpi` neu bauen** (siehe Build unten),
|
||||
1. **Bei jeder Änderung, die zu den Usern soll: `version` in `manifest.json` bumpen.**
|
||||
Auto-Update vergleicht Versionsnummern — gleiche Version = Clients ziehen das Update NICHT.
|
||||
Also vor dem Build erhöhen (z.B. 2.3.0 → 2.3.1 für Fixes, 2.4.0 für Features).
|
||||
2. **Nach jeder Code-Änderung am Plugin immer die `.xpi` neu bauen** (siehe Build unten),
|
||||
damit `templates-reply-hotel.xpi` aktuell ist.
|
||||
2. **Sobald der User zufrieden ist ("happy"), committen** — Code-Änderung + neu gebaute
|
||||
3. **Sobald der User zufrieden ist ("happy"), committen** — Code-Änderung + neu gebaute
|
||||
`.xpi` zusammen. Nicht ungefragt vorher committen; auf das OK des Users warten.
|
||||
4. **Soll es ausgerollt werden: Release veröffentlichen** (siehe Auto-Update unten) —
|
||||
`./release.sh`, dann `updates.json` + `manifest.json` committen & pushen.
|
||||
|
||||
## Build der .xpi
|
||||
|
||||
@@ -37,6 +42,6 @@ brauchen sie nicht — bestehende Installs behalten ihre Config in `storage.loca
|
||||
## Repo
|
||||
|
||||
- Sync-Daten-Repo (Templates/Signaturen): `hps/email-vorlagen` auf `git.hotel-park-soltau.de`.
|
||||
- Plugin-Source + Release-Host: `kendrick.bollens/hps-thunderbird-templates`.
|
||||
- Plugin-Source + Release-Host: `hps/hps-thunderbird-templates`.
|
||||
**Muss public bleiben** — der Thunderbird-Auto-Updater greift anonym (ohne Token) auf
|
||||
`updates.json` und die Release-`.xpi` zu. Privat = 401 = Auto-Updates kaputt.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"gecko": {
|
||||
"id": "it@hotel-park-soltau.de",
|
||||
"strict_min_version": "109.0",
|
||||
"update_url": "https://git.hotel-park-soltau.de/kendrick.bollens/hps-thunderbird-templates/raw/branch/main/updates.json"
|
||||
"update_url": "https://git.hotel-park-soltau.de/hps/hps-thunderbird-templates/raw/branch/main/updates.json"
|
||||
}
|
||||
},
|
||||
"permissions": [
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
# Usage: GITEA_TOKEN=xxxx ./release.sh
|
||||
set -euo pipefail
|
||||
|
||||
OWNER="kendrick.bollens"
|
||||
OWNER="hps"
|
||||
REPO="hps-thunderbird-templates"
|
||||
BASE="https://git.hotel-park-soltau.de"
|
||||
XPI="templates-reply-hotel.xpi"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"updates": [
|
||||
{
|
||||
"version": "2.3.1",
|
||||
"update_link": "https://git.hotel-park-soltau.de/kendrick.bollens/hps-thunderbird-templates/releases/download/v2.3.1/templates-reply-hotel.xpi",
|
||||
"update_link": "https://git.hotel-park-soltau.de/hps/hps-thunderbird-templates/releases/download/v2.3.1/templates-reply-hotel.xpi",
|
||||
"update_hash": "sha256:bcfb4feade849d1dabaccaa8b932ea6d57846c82f6e9796e2c39d577ffc09744",
|
||||
"applications": {
|
||||
"gecko": {
|
||||
@@ -14,7 +14,7 @@
|
||||
},
|
||||
{
|
||||
"version": "2.3.0",
|
||||
"update_link": "https://git.hotel-park-soltau.de/kendrick.bollens/hps-thunderbird-templates/releases/download/v2.3.0/templates-reply-hotel.xpi",
|
||||
"update_link": "https://git.hotel-park-soltau.de/hps/hps-thunderbird-templates/releases/download/v2.3.0/templates-reply-hotel.xpi",
|
||||
"update_hash": "sha256:94ca10bb1e35cc8183c4ed2cba640ad06b8cb25273a85d643c8920cfe11158ef",
|
||||
"applications": {
|
||||
"gecko": {
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
services:
|
||||
web-editor:
|
||||
build: .
|
||||
# Quellcode direkt aus dem Git-Repo bauen (kein Kopieren nötig).
|
||||
# Für lokale Entwicklung stattdessen `build: .` verwenden (siehe unten).
|
||||
build:
|
||||
context: "https://git.hotel-park-soltau.de/hps/hps-thunderbird-templates.git#main:web-editor"
|
||||
secrets:
|
||||
- GIT_AUTH_TOKEN
|
||||
# build: . # ← lokale Variante: baut aus diesem Ordner statt aus Git
|
||||
image: hps-vorlagen-web-editor
|
||||
container_name: hps-web-editor
|
||||
restart: unless-stopped
|
||||
@@ -18,3 +24,8 @@ services:
|
||||
BASIC_AUTH_PASS: ${BASIC_AUTH_PASS:-}
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
# BuildKit nutzt dieses Secret, um das (private) Repo beim Git-Build zu klonen.
|
||||
secrets:
|
||||
GIT_AUTH_TOKEN:
|
||||
environment: GITEA_TOKEN
|
||||
|
||||
Reference in New Issue
Block a user