Skip to content

Commit f55d27b

Browse files
committed
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.
1 parent d93fe2b commit f55d27b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

script/build-task.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ export const buildTask = async () => {
3535
],
3636
readme: "README.md",
3737
license: "MIT",
38-
manifest: `https://github.com/TheGiddyLimit/plutonium-addon-automation/releases/download/${packageJson.version}/module.json`,
38+
// Use "latest" as manifest URL, so that when updating the module the user always gets the latest version
39+
manifest: `https://github.com/TheGiddyLimit/plutonium-addon-automation/releases/latest/download/module.json`,
40+
// Set "download" to this specific version, so that users manually entering the link will receive the version they expect
3941
download: `https://github.com/TheGiddyLimit/plutonium-addon-automation/releases/download/${packageJson.version}/plutonium-addon-automation.zip`,
4042
minimumCoreVersion: "9",
4143
compatibleCoreVersion: "9",

0 commit comments

Comments
 (0)