-
-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update desktop build to pull from this repo #922
Conversation
Previously the desktop build lived in a separate repo and had to download a released version of the maputnik editor source code. Now that both live in the same repo, the desktop version can simply run the maputnik build command and use those generated files. This commit also removes the ci-desktop workflow, which is not needed. The regular ci workflow already built the desktop version (this commit also fixes that build). Fixes maplibre#919
Thanks!! Have you tested the attached binaries to see that they work as expected? In regard to tagging, I don't have strong objections, but now it's extremely nice that everything is pushed right to production without extra steps - proper CI/CD style. How did you plan to decide which tag to put? In maplibre-gl-js I added a version change check to the npm version and every commit that changes the version and pushed to main will create a tag and a new release. Generally speaking, I'm good with what you decide as long as it doesn't create maintenance overhead (especially the changelog part which is still not automatic for maplibre-gl-js and it probably can be). Also, it would be great to add a docker image too that is published to ghcr. |
Thank you! I've corrected two of those warnings. The others are related to codecov/codecov-action@v3, which looks potentially tricky to update. I have tested the darwin and linux binaries. Unfortunately I don't have a Windows machine to test that version. Re: tags/releases, you raise good questions that I'm not sure I'm qualified to answer 🥲. I like what you have done in maplibre-gl-js. It makes sense to me to follow that pattern. Do you want me to try implementing that for this repo? |
Sure, it would be great to have an auto generated changelog as opposed to maplibre-gl. |
If you're ok with us doing a manual desktop publish every once in a while, that seems good to me. |
One last idea I'll throw out there. We could switch to dated version numbers. Any push to main would updated the version number to the current date. And any push to main would push a release. That way it's all automated and the latest desktop version will always match the version hosted at maplibre.org. I'm happy with whatever, though! |
The date is a nice idea but then you'd need to either commit to main after every commit, not have the version in the package.json or have a non semver version. |
Got it. I should have these working tomorrow. |
Copied from maplibre/maplibre-gl-js
OK @HarelM these workflows are in. I'm not sure how to test besides by trying to make a release. Let me know how you want to proceed! And thanks for all your help. |
Let's try it out. |
See here: |
Here's the run results, Also isn't not clear why we are building both web and desktop and only using the desktop output...? |
Fixed that in #926. The web output ends up as an artifact as well, called |
We can publish to npm if someone is interested later on, I don't see a real benefit to it as is. |
OK yep makes sense, I'll remove |
Previously the desktop build lived in a separate repo and had to download a released version of the maputnik editor source code. Now that both live in the same repo, the desktop version can simply run the maputnik build command and use those generated files.
This commit also removes the ci-desktop workflow, which is not needed. The regular ci workflow already built the desktop version (this commit also fixes that build).
Fixes #919
If this works for you all, it would be lovely to create a new tag or release on GitHub for two reasons: