Compare commits
9 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
f1c0781b2f | |
|
|
bd05203dfa | |
|
|
59cfa8e8fd | |
|
|
17bbfd61db | |
|
|
f23d070a89 | |
|
|
a8f7a09d69 | |
|
|
41ba5c81d0 | |
|
|
b7c4aa320b | |
|
|
27cf778a48 |
|
|
@ -8,6 +8,11 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: node-01
|
runs-on: node-01
|
||||||
steps:
|
steps:
|
||||||
|
- name: Print Tag
|
||||||
|
run: |
|
||||||
|
echo ${{github.ref_name}}
|
||||||
|
echo ${GITHUB_REF##*/}
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
|
@ -23,6 +28,8 @@ jobs:
|
||||||
run: npm test
|
run: npm test
|
||||||
|
|
||||||
- name: Build project
|
- name: Build project
|
||||||
|
env:
|
||||||
|
VERSION: ${{github.ref_name}}
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Package build output
|
- name: Package build output
|
||||||
|
|
@ -30,6 +37,7 @@ jobs:
|
||||||
cd ./dist
|
cd ./dist
|
||||||
zip -r release.zip . # Adjust the path to your build output directory
|
zip -r release.zip . # Adjust the path to your build output directory
|
||||||
mv release.zip /tmp/release.zip
|
mv release.zip /tmp/release.zip
|
||||||
|
|
||||||
- name: Package Upload
|
- name: Package Upload
|
||||||
uses: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
14
gulpfile.cjs
14
gulpfile.cjs
|
|
@ -1,5 +1,6 @@
|
||||||
const { src, dest, series } = require('gulp');
|
const { src, dest, series } = require('gulp');
|
||||||
|
const process = require('node:process');
|
||||||
|
const replace = require('gulp-replace');
|
||||||
const sass = require('gulp-sass')(require('sass'));
|
const sass = require('gulp-sass')(require('sass'));
|
||||||
|
|
||||||
function buildStyles() {
|
function buildStyles() {
|
||||||
|
|
@ -13,7 +14,14 @@ function copySource() {
|
||||||
.pipe(dest('dist/'));
|
.pipe(dest('dist/'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function updateManifestFile() {
|
||||||
|
return src('dist/system.json')
|
||||||
|
.pipe(replace('{{VERSION}}', process.env.VERSION))
|
||||||
|
.pipe(dest('dist/'))
|
||||||
|
}
|
||||||
|
|
||||||
exports.default = series(
|
exports.default = series(
|
||||||
copySource,
|
copySource,
|
||||||
buildStyles
|
buildStyles,
|
||||||
)
|
updateManifestFile
|
||||||
|
)
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -13,6 +13,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"gulp": "^5.0.1",
|
"gulp": "^5.0.1",
|
||||||
|
"gulp-replace": "^1.1.4",
|
||||||
"gulp-sass": "^6.0.1",
|
"gulp-sass": "^6.0.1",
|
||||||
"sass": "^1.93.2",
|
"sass": "^1.93.2",
|
||||||
"sass-build": "^1.1.6"
|
"sass-build": "^1.1.6"
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
Hooks.once("init", () => {
|
||||||
|
console.log("DSA 4.1 is ready for development!")
|
||||||
|
})
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"id": "DSA 4.1",
|
"id": "DSA_4-1",
|
||||||
"title": "Das Schwarze Auge 4.1",
|
"title": "Das Schwarze Auge 4.1",
|
||||||
"description": "Noch ein Spielsystem für Das Schwarze Auge 4.1",
|
"description": "Noch ein Spielsystem für Das Schwarze Auge 4.1",
|
||||||
"version": "0.0.1",
|
"version": "{{VERSION}}",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
"minimum": 12,
|
"minimum": 12,
|
||||||
"verified": 13
|
"verified": 13
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
"name": "macniel"
|
"name": "macniel"
|
||||||
}],
|
}],
|
||||||
"esmodules": ["main.mjs"],
|
"esmodules": ["main.mjs"],
|
||||||
"styles": ["styles/styles.css"],
|
"styles": ["style/styles.css"],
|
||||||
"packs": [{
|
"packs": [{
|
||||||
"name": "talente",
|
"name": "talente",
|
||||||
"label": "Basistalente",
|
"label": "Basistalente",
|
||||||
|
|
@ -39,7 +39,11 @@
|
||||||
"path": "lang/de.json"
|
"path": "lang/de.json"
|
||||||
}],
|
}],
|
||||||
"documentTypes": {
|
"documentTypes": {
|
||||||
|
"Actor": {
|
||||||
|
"character": {}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"socket": false,
|
"socket": false,
|
||||||
"initiative": "1d6",
|
"initiative": "1d6",
|
||||||
"grid": {
|
"grid": {
|
||||||
|
|
@ -49,6 +53,6 @@
|
||||||
"primaryTokenAttribute": "resources.sp",
|
"primaryTokenAttribute": "resources.sp",
|
||||||
"secondaryTokenAttribute": "resources.aus",
|
"secondaryTokenAttribute": "resources.aus",
|
||||||
"url": "https://git.macniel.online/macniel/foundry-dsa41-game",
|
"url": "https://git.macniel.online/macniel/foundry-dsa41-game",
|
||||||
"manifest": "https://git.macniel.online/macniel/foundry-dsa41-game/system.json",
|
"manifest": "https://git.macniel.online/macniel/foundry-dsa41-game/releases/download/{{VERSION}}/system.json",
|
||||||
"download": ""
|
"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