updates the manifest info in system.json from build processor
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s Details

pull/11/head
macniel 2025-09-25 16:08:35 +02:00
parent 3c0db3df50
commit 27cf778a48
6 changed files with 151 additions and 940 deletions

View File

@ -23,6 +23,8 @@ jobs:
run: npm test
- name: Build project
env:
VERSION: ${{ github.ref }}
run: npm run build
- name: Package build output

View File

@ -1,4 +1,7 @@
const { src, dest, series } = require('gulp');
const process = require('node:process');
const replace = require('gulp-replace');
const sass = require('gulp-sass')(require('sass'));
@ -13,7 +16,14 @@ function copySource() {
.pipe(dest('dist/'));
}
function updateManifestFile() {
return src('dist/system.json')
.pipe(replace('{{VERSION}}', `${process.env.VERSION}`))
.pipe(dest('dist/'))
}
exports.default = series(
copySource,
buildStyles
buildStyles,
updateManifestFile
)

1018
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -13,6 +13,7 @@
},
"devDependencies": {
"gulp": "^5.0.1",
"gulp-replace": "^1.1.4",
"gulp-sass": "^6.0.1",
"sass": "^1.93.2",
"sass-build": "^1.1.6"

View File

@ -49,6 +49,6 @@
"primaryTokenAttribute": "resources.sp",
"secondaryTokenAttribute": "resources.aus",
"url": "https://git.macniel.online/macniel/foundry-dsa41-game",
"manifest": "https://git.macniel.online/macniel/foundry-dsa41-game/system.json",
"download": ""
"manifest": "https://git.macniel.online/macniel/foundry-dsa41-game/releases/download/{{VERSION}}/system.json",
"download": "https://git.macniel.online/macniel/foundry-dsa41-game/releases/download/{{VERSION}}/release.zip"
}

View File

@ -1,54 +0,0 @@
{
"id": "DSA 4.1",
"title": "Das Schwarze Auge 4.1",
"description": "Noch ein Spielsystem für Das Schwarze Auge 4.1",
"version": "0.0.1",
"compatibility": {
"minimum": 12,
"verified": 13
},
"authors": [{
"name": "GrandpaPoppy"
},{
"name": "ParanoidSpectre"
},{
"name": "macniel"
}],
"esmodules": ["main.mjs"],
"styles": ["styles/styles.css"],
"packs": [{
"name": "talente",
"label": "Basistalente",
"type": "Item"
},{
"name": "zauber",
"label": "Basiszauber",
"type": "Item"
},{
"name": "liturgien",
"label": "Basisliturgien",
"type": "Item"
},{
"name": "sonderfertigkeiten",
"label": "Basissonderfertigkeiten",
"type": "Item"
}],
"languages": [{
"lang": "de",
"name": "Deutsch",
"path": "lang/de.json"
}],
"documentTypes": {
},
"socket": false,
"initiative": "1d6",
"grid": {
"distance": 10,
"units": "Schritt"
},
"primaryTokenAttribute": "resources.sp",
"secondaryTokenAttribute": "resources.aus",
"url": "https://git.macniel.online/macniel/foundry-dsa41-game",
"manifest": "https://git.macniel.online/macniel/foundry-dsa41-game/system.json",
"download": ""
}