Skip to content

Conversation

CommanderStorm
Copy link
Contributor

Sorry to bother you again.

Repo: https://github.com/maplibre/martin
Example release: https://github.com/maplibre/martin/releases/tag/v0.18.0

martin/martin-cp is relatively straightforward to package. It is just one crate with two binaries.

mbtiles on the otherhand is a tad bit weird given that it is included in the release-zip of martin, but this is likely still fine.

image

@taiki-e
Copy link
Owner

taiki-e commented Aug 6, 2025

With the current this PR, martin-cp is likely not be installed. For multiple binaries, I think it is necessary to use the same way as wasm-bindgen.

Comment on lines 2 to 6
"repository": "https://github.com/maplibre/martin",
"tag_prefix": "v",
"rust_crate": "mbtiles",
"asset_name": "martin-${rust_target}",
"version_range": ">= 0.11.0",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mbtiles is included in the martin release archive and since the martin release archive is released based on the martin version, so specifying the rust_crate here does not work correctly. This is because the release version number is not matched with the actual crate version of mbtiles.

I would suggest including mbtiles in martin's binary list as with martin-cp.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea, our releases are too messy for automated tooling on this one.
rust_crate: mbtiles and the github releases under a different version number (lol)

We should split mbtiles into their own releases and then I can open another PR for this.

@CommanderStorm CommanderStorm changed the title feat: allow downloading martin, martin-cp and mbtiles feat: allow downloading martin and martin-cp Aug 7, 2025
@CommanderStorm CommanderStorm marked this pull request as draft August 7, 2025 21:12
@CommanderStorm
Copy link
Contributor Author

I am having trouble to make the paths on windows behave. I will need to look into the code which paths precicely bin needs to point at.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants