From a3494023068d77ae6b3c4eb3adb10b42672e1e13 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnier Date: Tue, 21 Apr 2026 19:49:18 +0200 Subject: [PATCH] Build release script --- .gitea/workflows/release.yaml | 2 +- system.json | 59 +++++++++++++++++++++++++++++++++++ template.json.DEAD | 41 ++++++++++++++++++++++++ 3 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 template.json.DEAD diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index c4273a2..9c07325 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -53,7 +53,7 @@ jobs: run: apt update -y && apt install -y zip - name: Create release zip - run: zip -r ./mgt2.zip system.json template.json README.md LICENSE mgt2.bundle.js assets/ lang/ styles/ templates/ + run: zip -r ./mgt2.zip system.json README.md LICENSE mgt2.bundle.js assets/ lang/ styles/ templates/ - name: setup go uses: https://github.com/actions/setup-go@v4 diff --git a/system.json b/system.json index 0746ffb..127542b 100644 --- a/system.json +++ b/system.json @@ -35,6 +35,65 @@ "path": "lang/fr.json" } ], + "documentTypes": { + "Actor": { + "character": { + "htmlFields": [ + "personal.speciesText.descriptionLong", + "biography", + "finance.notes", + "notes" + ] + }, + "vehicule": { + "htmlFields": [ + "description", + "notes" + ] + }, + "creature": { + "htmlFields": [ + "biography", + "notes" + ] + } + }, + "Item": { + "armor": { + "htmlFields": [ "description" ] + }, + "career": { + "htmlFields": [ "description" ] + }, + "computer": { + "htmlFields": [ "description" ] + }, + "contact": { + "htmlFields": [ "description", "notes" ] + }, + "container": { + "htmlFields": [ "description", "lockedDescription" ] + }, + "disease": { + "htmlFields": [ "description" ] + }, + "equipment": { + "htmlFields": [ "description" ] + }, + "item": { + "htmlFields": [ "description" ] + }, + "species": { + "htmlFields": [ "description", "descriptionLong" ] + }, + "talent": { + "htmlFields": [ "description" ] + }, + "weapon": { + "htmlFields": [ "description" ] + } + } + }, "compatibility": { "minimum": "11", "verified": "12.324" diff --git a/template.json.DEAD b/template.json.DEAD new file mode 100644 index 0000000..c726495 --- /dev/null +++ b/template.json.DEAD @@ -0,0 +1,41 @@ +{ + "Actor": { + "types": [ + "character", + "vehicule", + "creature" + ], + "htmlFields": ["notes", "biography"], + "character": {}, + "vehicule": {}, + "creature": {} + }, + "Item": { + "types": [ + "contact", + "career", + "disease", + "item", + "equipment", + "talent", + "armor", + "weapon", + "computer", + "container", + "species" + ], + "htmlFields": ["description", "notes"], + "item": {}, + "equipment": {}, + "container": {}, + "weapon": {}, + "armor": {}, + "computer": {}, + "disease": {}, + "career": {}, + "contact": {}, + "talent": {}, + "race": {}, + "species": {} + } +} \ No newline at end of file