From c5e5ba199bb180503a44d83c2bbc2dabe0d4b8ed Mon Sep 17 00:00:00 2001 From: oskaloq Date: Mon, 1 Apr 2024 19:30:19 +0200 Subject: [PATCH] changed manifest for easier update (#97) Co-authored-by: Ender Reviewed-on: https://git.byroks.de/MidgardVTT-Entwicklung/foundry-vtt-system-midgard5/pulls/97 Reviewed-by: Byroks --- gulpfile.ts | 6 +++--- source/system.json | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gulpfile.ts b/gulpfile.ts index 73b2ee5..682b2c9 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -473,8 +473,8 @@ const updateManifest = (cb: any) => { const result = `${repoURL}/releases/download`; manifest.file.url = repoURL; - manifest.file.manifest = `${result}/v${manifest.file.version}/${manifest.name}`; - manifest.file.download = `${result}/v${manifest.file.version}/${manifest.file.name}-v${manifest.file.version}.zip`; + manifest.file.manifest = `${result}/latest/${manifest.name}?token=2455375115b92bc8d87c93df7159eec232456f2d`; + manifest.file.download = `${result}/v${manifest.file.version}/${manifest.file.name}-v${manifest.file.version}.zip?token=2455375115b92bc8d87c93df7159eec232456f2d`; const prettyProjectJson = stringify(manifest.file, { maxLength: 35, @@ -504,7 +504,7 @@ const gitTaskBuild = (cb: gulp.TaskFunctionCallback) => { if (!manifest) return cb(Error("could not load manifest.")); return gulp - .src(`${manifest.file.name}-v${manifest.file.version}.zip`) + .src(`${manifest.file.name}.zip`) .pipe(git.checkout(`v${manifest.file.version}`, { args: "-b" })) .pipe(git.add({ args: "--no-all -f" })) .pipe(git.commit(`v${manifest.file.version}`, { args: "-a", disableAppendPaths: true })); diff --git a/source/system.json b/source/system.json index c4d5528..d0d4bd7 100644 --- a/source/system.json +++ b/source/system.json @@ -28,8 +28,8 @@ "primaryTokenAttribute": "lp", "secondaryTokenAttribute": "ap", "url": "https://git.byroks.de/MidgardVTT-Entwicklung/foundry-vtt-system-midgard5", - "manifest": "https://git.byroks.de/MidgardVTT-Entwicklung/foundry-vtt-system-midgard5/releases/download/v2.6.0/system.json", - "download": "https://git.byroks.de/MidgardVTT-Entwicklung/foundry-vtt-system-midgard5/releases/download/v2.6.0/midgard5-v2.6.0.zip", + "manifest": "https://git.byroks.de/MidgardVTT-Entwicklung/foundry-vtt-system-midgard5/releases/download/latest/system.json?token=2455375115b92bc8d87c93df7159eec232456f2d", + "download": "https://git.byroks.de/MidgardVTT-Entwicklung/foundry-vtt-system-midgard5/releases/download/latest/midgard5.zip?token=2455375115b92bc8d87c93df7159eec232456f2d", "initiative": "@c.calc.attributes.gw.value", "license": "LICENSE.txt" } \ No newline at end of file