updates the manifest info in system.json from build processor
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s
Details
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s
Details
parent
3c0db3df50
commit
27cf778a48
|
|
@ -23,6 +23,8 @@ jobs:
|
|||
run: npm test
|
||||
|
||||
- name: Build project
|
||||
env:
|
||||
VERSION: ${{ github.ref }}
|
||||
run: npm run build
|
||||
|
||||
- name: Package build output
|
||||
|
|
|
|||
12
gulpfile.cjs
12
gulpfile.cjs
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
54
system.json
54
system.json
|
|
@ -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": ""
|
||||
}
|
||||
Loading…
Reference in New Issue