#package version debugging

1 messages · Page 1 of 1 (latest)

void mantle
#

@glass minnow what's the package in question?

glass minnow
#

Thanks

#
{
    "name": "clipboard-image",
    "title": "Clipboard Image",
    "author": "JeansenVaars#2857",
    "description": "Paste images from Clipboard into Tiles",
    "version": "0.1.1",
    "minimumCoreVersion": "9.233",
    "compatibleCoreVersion": "9.235",
    "scripts": [ "clipboard-image.js" ],
    "url": "https://github.com/saif-ellafi/foundryvtt-clipboard-image.git",
    "manifest": "https://github.com/saif-ellafi/foundryvtt-clipboard-image/releases/latest/download/module.json",
    "download": "https://github.com/saif-ellafi/foundryvtt-clipboard-image/releases/download/0.1.1/foundryvtt-clipboard-image_0.1.1.zip"
}
#

I have 4 other modules released that have a minimum versrion of 9.233. Users in 0.8.x cannot install it anymore (from scratch).

#

It does work in preventing updates

void mantle
#

On my 0.8.9 instance, I see this version when I go to install that package.

glass minnow
#

hmmm

#

That is what I desire yes 😄

void mantle
daring yew
glass minnow
void mantle
#

Ah yep, that'd do it

daring yew
#

Set the Manifest URL to point to a manifest with a 0.8.x version and you should be good

glass minnow
#

I guess I can hardcode and reupload a manifest URL for that previous build no?

void mantle
#

The manifest url you provide to the admin listing should be specific to that version.

It's not got to do with your manifest

glass minnow
#

ahh got it, so with just updating the Admin page I should be able to survive

void mantle
#

Since you're using releases on GH, you have to link to this manifest:

daring yew
#

The manifest link inside the manifest can be to latest, but the one in the admin page should point to a file that's gonna have the right download link in there, so that it can download right

glass minnow
#

checking it out asap...

void mantle
#

https://github.com/saif-ellafi/foundryvtt-clipboard-image/releases/download/0.0.8/module.json

Is your manifest for installing the 0.0.8 version of your module

#

That manifest will tell foundry to download this zip:
https://github.com/saif-ellafi/foundryvtt-clipboard-image/releases/download/0.0.8/foundryvtt-clipboard-image_0.0.8.zip

glass minnow
#

yes, and its download points to the 0.0.8 zip

#

indeed!

void mantle
#

bingo

#

the manifest JSON inside that zip should have a manifest that points to the 'latest' manifest JSON so that updates work, but the admin page needs individual links to individual versions

glass minnow
#

Good to know that Foundry picks up the information from its own system database

#

so I don't have to edit the releases

#

gotcha

daring yew
#

In this case, it's the manifest URLs in the package listing that need to be lined up right

void mantle
glass minnow
#

ok I just made a change in the admin, pointing to https://github.com/saif-ellafi/foundryvtt-clipboard-image/releases/download/0.0.8/module.json

void mantle
glass minnow
#

I did panic

#

but thanks it works like a charm!

daring yew
#

I see it now, looks like it's working

#

(If people don't see it, have 'em Ctrl+F5)

glass minnow
#

Thank you both!

#

updating asap my stuff

#

Glad not to regret to pre-release my builds

#

I was looking other people holding release back and I assumed this was the reason

daring yew
#

Yeah, Foundry's able to handle that sort of version properly, it just requires a bit more thought about how you're managing packages