From f55d27bdff500281c5a3a9ee9bd76b2f031030ad Mon Sep 17 00:00:00 2001 From: TheGiddyLimit Date: Sun, 28 Aug 2022 13:12:57 +0100 Subject: [PATCH 1/2] fix(build): avoid using version'd manifest URLs Locking the "manifest" URL to a specific version prevents the user from ever updating the module via the "Update" button in Foundry, which is not ideal. --- script/build-task.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/build-task.js b/script/build-task.js index f822422..ba871c0 100644 --- a/script/build-task.js +++ b/script/build-task.js @@ -35,7 +35,9 @@ export const buildTask = async () => { ], readme: "README.md", license: "MIT", - manifest: `https://github.com/TheGiddyLimit/plutonium-addon-automation/releases/download/${packageJson.version}/module.json`, + // Use "latest" as manifest URL, so that when updating the module the user always gets the latest version + manifest: `https://github.com/TheGiddyLimit/plutonium-addon-automation/releases/latest/download/module.json`, + // Set "download" to this specific version, so that users manually entering the link will receive the version they expect download: `https://github.com/TheGiddyLimit/plutonium-addon-automation/releases/download/${packageJson.version}/plutonium-addon-automation.zip`, minimumCoreVersion: "9", compatibleCoreVersion: "9", From 631bb3d5f730e58d1f5dfa253abdd3096fac080c Mon Sep 17 00:00:00 2001 From: TheGiddyLimit Date: Sun, 28 Aug 2022 13:13:01 +0100 Subject: [PATCH 2/2] 0.1.7 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 30cbc73..8dcd69f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "plutonium-addon-automation", - "version": "0.1.6", + "version": "0.1.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "plutonium-addon-automation", - "version": "0.1.6", + "version": "0.1.7", "license": "MIT", "devDependencies": { "@league-of-foundry-developers/foundry-vtt-types": "^9.269.0", diff --git a/package.json b/package.json index 9ecce13..9f724f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plutonium-addon-automation", - "version": "0.1.6", + "version": "0.1.7", "author": "Giddy", "type": "module", "license": "MIT",