From 95fcda9500da60a3cbdc58c6ceafc40259ea08cb Mon Sep 17 00:00:00 2001 From: Ender Date: Fri, 29 Mar 2024 17:04:42 +0100 Subject: [PATCH 1/6] changed manifest for easier update --- source/system.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/system.json b/source/system.json index c4d5528..b6d4154 100644 --- a/source/system.json +++ b/source/system.json @@ -28,7 +28,7 @@ "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", + "manifest": "https://git.byroks.de/MidgardVTT-Entwicklung/foundry-vtt-system-midgard5/raw/branch/main/source/system.json", "download": "https://git.byroks.de/MidgardVTT-Entwicklung/foundry-vtt-system-midgard5/releases/download/v2.6.0/midgard5-v2.6.0.zip", "initiative": "@c.calc.attributes.gw.value", "license": "LICENSE.txt" -- 2.40.1 From d62c8c8dbc9ea2c8fd9047940ca5582c60205a3d Mon Sep 17 00:00:00 2001 From: Ender Date: Fri, 29 Mar 2024 17:32:04 +0100 Subject: [PATCH 2/6] Changed manifest to use the "latest" tag and zip without version suffix --- source/system.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/system.json b/source/system.json index b6d4154..f73aab0 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/raw/branch/main/source/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", + "download": "https://git.byroks.de/MidgardVTT-Entwicklung/foundry-vtt-system-midgard5/releases/download/latest/midgard5.zip", "initiative": "@c.calc.attributes.gw.value", "license": "LICENSE.txt" } \ No newline at end of file -- 2.40.1 From cd241737965b1c356be701fe45a890f6eb442e47 Mon Sep 17 00:00:00 2001 From: Ender Date: Fri, 29 Mar 2024 18:07:10 +0100 Subject: [PATCH 3/6] changed gulpfile.ts to make "npm run package [new version number]" feasible --- gulpfile.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gulpfile.ts b/gulpfile.ts index 73b2ee5..d0a3258 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -375,7 +375,7 @@ async function packageBuild() { if (!fs.existsSync(distPath)) fs.mkdirSync(distPath); // Initialize the zip file - const zipName = `${manifest.file.name}-v${manifest.file.version}.zip`; + const zipName = `${manifest.file.name}.zip`; const zipFile = fs.createWriteStream(zipName); const zip = archiver("zip", { zlib: { level: 9 } }); zipFile.on("close", () => { @@ -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}`; + manifest.file.download = `${result}/latest/${manifest.file.name}.zip`; 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 })); -- 2.40.1 From 1b503d86349d8dce97572a82aab9ae0a68f6ac3d Mon Sep 17 00:00:00 2001 From: Ender Date: Sat, 30 Mar 2024 11:57:43 +0100 Subject: [PATCH 4/6] moudule update in foundry vtt from private repository --- source/system.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/system.json b/source/system.json index f73aab0..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/latest/system.json", - "download": "https://git.byroks.de/MidgardVTT-Entwicklung/foundry-vtt-system-midgard5/releases/download/latest/midgard5.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 -- 2.40.1 From 016197082512bd5723572b5cbfab34c5a88e672a Mon Sep 17 00:00:00 2001 From: Ender Date: Mon, 1 Apr 2024 10:57:47 +0200 Subject: [PATCH 5/6] reenable versioning in manifest zip URL --- gulpfile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.ts b/gulpfile.ts index d0a3258..b1be476 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -375,7 +375,7 @@ async function packageBuild() { if (!fs.existsSync(distPath)) fs.mkdirSync(distPath); // Initialize the zip file - const zipName = `${manifest.file.name}.zip`; + const zipName = `${manifest.file.name}-v${manifest.file.version}.zip`; const zipFile = fs.createWriteStream(zipName); const zip = archiver("zip", { zlib: { level: 9 } }); zipFile.on("close", () => { -- 2.40.1 From a5578e060a208a307f02406511ba49175901f4cd Mon Sep 17 00:00:00 2001 From: Ender Date: Mon, 1 Apr 2024 11:14:42 +0200 Subject: [PATCH 6/6] added token in gulpfile --- gulpfile.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.ts b/gulpfile.ts index b1be476..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}/latest/${manifest.name}`; - manifest.file.download = `${result}/latest/${manifest.file.name}.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, -- 2.40.1