<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://olddev.minetest.org/index.php?action=history&amp;feed=atom&amp;title=Releasing_Minetest</id>
	<title>Releasing Minetest - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://olddev.minetest.org/index.php?action=history&amp;feed=atom&amp;title=Releasing_Minetest"/>
	<link rel="alternate" type="text/html" href="https://olddev.minetest.org/index.php?title=Releasing_Minetest&amp;action=history"/>
	<updated>2026-04-14T20:23:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.7</generator>
	<entry>
		<id>https://olddev.minetest.org/index.php?title=Releasing_Minetest&amp;diff=144&amp;oldid=prev</id>
		<title>&gt;Sfan5 at 15:20, 18 July 2023</title>
		<link rel="alternate" type="text/html" href="https://olddev.minetest.org/index.php?title=Releasing_Minetest&amp;diff=144&amp;oldid=prev"/>
		<updated>2023-07-18T15:20:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Checklist ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
- Feature freeze&lt;br /&gt;
  - [ ] Announced&lt;br /&gt;
  - [ ] Release candidate advertised&lt;br /&gt;
  - [ ] Weblate sources regenerated and strings frozen&lt;br /&gt;
- Pre-release (day of release)&lt;br /&gt;
  - [ ] Autogenerate files&lt;br /&gt;
  - [ ] Correct special strings on Weblate (`LANG_CODE`)&lt;br /&gt;
  - [ ] Update translations from Weblate&lt;br /&gt;
  - [ ] Update changelog&lt;br /&gt;
  - [ ] Update credits&lt;br /&gt;
  - [ ] (Minor/Major) Write blog post&lt;br /&gt;
  - [ ] Ensure protocol version codes have been bumped&lt;br /&gt;
- Release&lt;br /&gt;
  - [ ] Run bump_version and verify&lt;br /&gt;
  - [ ] Push new tag&lt;br /&gt;
  - [ ] Build and upload Windows version&lt;br /&gt;
  - [ ] Build and upload Android version&lt;br /&gt;
  - [ ] (Minor/Major) Publish blog post&lt;br /&gt;
  - [ ] Create forum topic&lt;br /&gt;
  - [ ] Notify rubenwardy to announce on Twitter, etc.&lt;br /&gt;
  - [ ] Notify downstream maintainers&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Feature Freeze ==&lt;br /&gt;
&lt;br /&gt;
=== Announce a feature freeze ===&lt;br /&gt;
&lt;br /&gt;
(''Skip for patch releases'')&lt;br /&gt;
Usually, a '''feature freeze for one week is announced in #minetest-dev'''. New features aren't accepted in this time and people focus on finding and fixing bugs.&lt;br /&gt;
To find high priority issues faster, consider linking a release candidate binary to get more test results (for master: GitLab pipeline). This release candidate is usually also posted on the forums (News section).&lt;br /&gt;
&lt;br /&gt;
The feature freeze and release date is set by core developers.&lt;br /&gt;
&lt;br /&gt;
=== Autogenerate files ===&lt;br /&gt;
&lt;br /&gt;
Ensure that the &amp;lt;code&amp;gt;language&amp;lt;/code&amp;gt; setting enum values contain &amp;lt;code&amp;gt;en&amp;lt;/code&amp;gt;: there is no &amp;quot;en&amp;quot; directory, but Minetest supports it.&lt;br /&gt;
Autogenerate config file examples such as &amp;lt;code&amp;gt;minetest.conf.example&amp;lt;/code&amp;gt; (see bottom of &amp;lt;code&amp;gt;builtin/mainmenu/dlg_settings_advanced.lua&amp;lt;/code&amp;gt;), etc.&lt;br /&gt;
&lt;br /&gt;
Also update [[Translation|translation]] templates (engine, builtin and any default games). Note that before you regenerate translations, you most likely want to [[#Update_translations_from_Weblate|import existing changes]] first.&lt;br /&gt;
&lt;br /&gt;
Look into the &amp;lt;code&amp;gt;util&amp;lt;/code&amp;gt; sub-directory for tools like &amp;lt;code&amp;gt;updatepo.sh&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Update source strings on Weblate ===&lt;br /&gt;
&lt;br /&gt;
Make sure that the source strings on hosted.weblate.org are up-to-date. Please also notify translators so they can start working.&lt;br /&gt;
&lt;br /&gt;
Do '''not''' just blindly run the scripts without checking. Check if the source strings on Weblate were ''actually'' updated. A simple way to check is to look at any translation that was at 100% (on Weblate) ''before'' the update. After the update, the percentage should drop because of new strings. If it didn't drop but you know there are new strings in Minetest, this means the update failed.&lt;br /&gt;
&lt;br /&gt;
== Before releasing ==&lt;br /&gt;
&lt;br /&gt;
=== Verify special translation strings ===&lt;br /&gt;
&lt;br /&gt;
The translation files contain a special string: [https://hosted.weblate.org/translate/minetest/minetest/en/?q=LANG_CODE&amp;amp;checksum=&amp;amp;offset=1#translations LANG_CODE] (see [[Translating]]).&lt;br /&gt;
&lt;br /&gt;
Verify that all *.po files have a valid value for these strings because translators frequently misunderstand them and enter an invalid value. Fix any invalid values on Weblate by either entering the correct one or by removing the bad translation.&lt;br /&gt;
&lt;br /&gt;
=== Update translations from Weblate ===&lt;br /&gt;
&lt;br /&gt;
'''How to do this''' -&amp;gt; [[Translating#How_to_merge_translations_from_Hosted_Weblate]]&lt;br /&gt;
&lt;br /&gt;
If doing a backported release, you can use the following command to cherry-pick all translation commits from weblate:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
git log --reverse --pretty=format:&amp;quot;%h&amp;quot; $BASE..weblate/master -- po | xargs -L1 git cherry-pick&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
BASE is the commit on master to start from when looking for translation commits. This commit should be newer than the last translation commit on the backport-X branch.&lt;br /&gt;
&lt;br /&gt;
=== Update changelog ===&lt;br /&gt;
&lt;br /&gt;
Changelog can be found [[Changelog|here]].&lt;br /&gt;
&lt;br /&gt;
=== Ensure protocol version codes have been bumped ===&lt;br /&gt;
&lt;br /&gt;
If not a patch release: ensure that PROTOCOL_VERSION has been increased since the last release. ([https://github.com/minetest/minetest/issues/11603 deciding discussion])&lt;br /&gt;
&lt;br /&gt;
If formspec features have been added: ensure LATEST_FORMSPEC_VERSION has been increased since the last release.&lt;br /&gt;
&lt;br /&gt;
== The process ==&lt;br /&gt;
&lt;br /&gt;
This is mostly done by several core developers.&lt;br /&gt;
&lt;br /&gt;
=== Update version in source ===&lt;br /&gt;
&lt;br /&gt;
The process with patch releases is slightly different but the script will take care of it correctly in any case.&lt;br /&gt;
&lt;br /&gt;
* '''Define''' a new version number by running &amp;lt;code&amp;gt;util/bump_version.sh&amp;lt;/code&amp;gt;. Verify that this script correctly:&lt;br /&gt;
** changes TRUE to FALSE for the line ''set(DEVELOPMENT_BUILD TRUE)'' in CMakeLists.txt&lt;br /&gt;
** updates the version number and release date in misc/net.minetest.minetest.appdata.xml&lt;br /&gt;
** increments ''versionCode'' in build/android/build.gradle by 2&lt;br /&gt;
** and commits.&lt;br /&gt;
* '''Tag''' the version in local git (the script does this) to allow the cmake versioning script to remove the git hash from the version. Do not push the tag to GitHub yet.&lt;br /&gt;
* '''Build''', get newest minetest_game, run and check if the thing seems to be working.&lt;br /&gt;
&lt;br /&gt;
=== Build Windows version ===&lt;br /&gt;
&lt;br /&gt;
* These are built for 32-bit and 64-bit using either Visual Studio or MinGW. (sfan5 typically provides MinGW builds)&lt;br /&gt;
* If at all possible, debug builds (for both MSVC and MinGW) should be produced along with the regular release builds.&lt;br /&gt;
* As of April 2018, this GitLab pipeline can provide win32/64 packages as a '''fallback''': https://gitlab.com/minetest/minetest/pipelines&lt;br /&gt;
** Since 5.0, the 64-bit builds are compiled with GC64-enabled LuaJIT (to avoid [https://github.com/minetest/minetest/issues/2988 #2988])&lt;br /&gt;
&lt;br /&gt;
→ → → '''''Make sure that the Windows builds work before continuing to do anything''''' ← ← ←&lt;br /&gt;
&lt;br /&gt;
==== Mini checklist of things to test ====&lt;br /&gt;
&lt;br /&gt;
''Note'': Don't cheat on this by testing in Wine, it has happened that things crash/break in wine while they are fine on real Windows.&lt;br /&gt;
&lt;br /&gt;
* click some menu buttons&lt;br /&gt;
* create world with MTG, enter it, exit back to menu&lt;br /&gt;
* open multiplayer tab, attempt to join a server&lt;br /&gt;
* install a package from CDB, uninstall it again&lt;br /&gt;
* enable dynamic shadows, join ingame and look&lt;br /&gt;
&lt;br /&gt;
=== Upload packages to somewhere ===&lt;br /&gt;
&lt;br /&gt;
* All official builds are hosted at Github: https://github.com/minetest/minetest/releases&lt;br /&gt;
* Windows builds are uploaded by whoever builds them&lt;br /&gt;
* The macOS build is created by [https://github.com/minetest/minetest/actions/workflows/macos.yml Github Actions]&lt;br /&gt;
** you will only be able to grab the build '''after''' the release has been pushed&lt;br /&gt;
** download the artifact, unpack it once, you should have a &amp;lt;code&amp;gt;minetest-5.x.x-osx.zip&amp;lt;/code&amp;gt;. This is then uploaded.&lt;br /&gt;
* Android APKs are also uploaded here when they're done&lt;br /&gt;
&lt;br /&gt;
=== Update branches and tags of minetest and minetest_game on GitHub ===&lt;br /&gt;
&lt;br /&gt;
Tagging is handled by the script for the engine. For MTG you can just create an annotated tag pointing to the latest commit and push it.&lt;br /&gt;
&lt;br /&gt;
The new release should be merged to the stable-5 branch on both minetest and minetest_game.&lt;br /&gt;
'''Its important to merge, and not just rebase''', so that git describe works.&lt;br /&gt;
&lt;br /&gt;
==== The problem on the stable-5 branch ====&lt;br /&gt;
Usually, merging releases onto the stable branch just consists of adding the commits to the branch, as it contains direct ancestors of master commits, and git can do a fast forward. During release/freeze of 5.0.1 (both minetest and minetest_game), the ancestor rule has been broken.&lt;br /&gt;
&lt;br /&gt;
Therefore, you'll generate merge commits, but this shouldn't be a problem. In the case of merge conflicts, ensure that the changes on stable-5 are all discarded in favor of the tagged commit at master, by doing a merge commit like:&lt;br /&gt;
&lt;br /&gt;
    git checkout version-tag&lt;br /&gt;
    git merge -s ours origin/stable-5&lt;br /&gt;
    git push origin HEAD:stable-5&lt;br /&gt;
&lt;br /&gt;
=== Update Launchpad stable build to get Ubuntu builds for the new version ===&lt;br /&gt;
&lt;br /&gt;
celeron55, rubenwardy, and ShadowNinja have access.&lt;br /&gt;
&lt;br /&gt;
Process:&lt;br /&gt;
&lt;br /&gt;
* Go to [https://code.launchpad.net/~minetestdevs/minetest-c55/+git/upstream minetest-c55/upstream] and [https://code.launchpad.net/~minetestdevs/minetest-c55/+git/upstream_game minetest-c55/upstream_game] and click &amp;quot;start import&amp;quot;.&lt;br /&gt;
* First, find out the commit hashes of the minetest and minetest_game git repos corresponding to the release.&lt;br /&gt;
* Now visit the [https://code.launchpad.net/~minetestdevs/+recipe/minetest-stable recipe].&lt;br /&gt;
* At the bottom of the page there is a section called &amp;quot;Recipe contents&amp;quot;. In this section you need to edit the recipe. Make sure you update:&lt;br /&gt;
** The version number at the end of the first line. Doing this is a must otherwise there would be duplicate packages which would lead to a fail. The version number has a format like &amp;lt;code&amp;gt;5.1.1-ppa0&amp;lt;/code&amp;gt;. You should keep the ppa postfix so that it's easy to differentiate the package by origin, ppa or upstream Debian.&lt;br /&gt;
** The commit hash of the main minetest repo in the second line.&lt;br /&gt;
** The commit hash of the minetest_game repo in the last line.&lt;br /&gt;
* Check whether everything has been updated correctly.&lt;br /&gt;
* Click the green &amp;quot;Request builds&amp;quot; link, enable the newer distro versions, and click confirm.&lt;br /&gt;
&lt;br /&gt;
The build has two steps: first it assembles the source code and uploads it, then it builds the code.&lt;br /&gt;
If the first step completed successfully but the second one failed, you need to update the version number in the recipe (e.g. 1.2.3-ppa1) before rebuilding.&lt;br /&gt;
&lt;br /&gt;
=== Build and publish Android APK ===&lt;br /&gt;
&lt;br /&gt;
'''nerzhul''' or '''rubenwardy''' have access to Google Play. Both also hold the signature keys for the app.&lt;br /&gt;
&lt;br /&gt;
==== Signing APKs for the Play Store ====&lt;br /&gt;
&lt;br /&gt;
* Run the Android build process as usual&lt;br /&gt;
* '''Sign the package:''' &amp;lt;code&amp;gt;&amp;quot;~/Android/Sdk/build-tools/29.0.3/apksigner&amp;quot; sign --ks keystore-minetest.jks .../app-armeabi-v7a-release.apk&amp;lt;/code&amp;gt;&lt;br /&gt;
* EDIT: You can use Android Studio to generate bundles/apks if you upgrade the jks&lt;br /&gt;
&lt;br /&gt;
==== Creating Native Debug Symbols ====&lt;br /&gt;
&lt;br /&gt;
* Copy native/build/intermediates/ndkBuild/release/obj/local/ to new folder&lt;br /&gt;
* Remove all but .so files from new folder&lt;br /&gt;
* Check the .so contain debug info using the file command&lt;br /&gt;
* &amp;lt;code&amp;gt;zip -r symbols.zip .&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== After releasing ==&lt;br /&gt;
&lt;br /&gt;
=== Reenable -dev version suffix ===&lt;br /&gt;
&lt;br /&gt;
(''Skip for patch releases'')&lt;br /&gt;
Check that the util/bump_version.sh script did the following steps:&lt;br /&gt;
&lt;br /&gt;
* '''Update''' the version number in CMakeLists.txt and the titles of doc/client_lua_api.txt and doc/menu_lua_api.txt&lt;br /&gt;
* '''Change''' FALSE to TRUE for the line ''set(DEVELOPMENT_BUILD FALSE)'' in CMakeLists.txt. This will add the -dev suffix to the version name again.&lt;br /&gt;
* '''Commit.'''&lt;br /&gt;
&lt;br /&gt;
=== Write a release notice ===&lt;br /&gt;
&lt;br /&gt;
* Don't forget to edit the minetest.net page ([https://github.com/minetest/minetest.github.io Repo]).&lt;br /&gt;
** currently you will need to update machine readable metadata in _data/release.yml and downloads.html itself.&lt;br /&gt;
* Post a new topic in the [https://forum.minetest.net/viewforum.php?f=18 News section] of the forum. '''See [[Changelog]].'''&lt;br /&gt;
** It is customary to sticky the newest release topic and lock older ones.&lt;br /&gt;
* Add a new post to the [https://github.com/minetest/blog/ blog]&lt;br /&gt;
* Announce the release on the [https://twitter.com/MinetestProject Twitter account]. rubenwardy has access.&lt;br /&gt;
&lt;br /&gt;
=== Update wiki version template ===&lt;br /&gt;
&lt;br /&gt;
There is a special wiki template containing the version number at [https://wiki.minetest.net/Template:Version], used to make updating various wiki pages by hand less tedious. Update it so it includes the latest version.&lt;br /&gt;
&lt;br /&gt;
=== Notify known package maintainers ===&lt;br /&gt;
&lt;br /&gt;
* '''Arch Linux'''/Manjaro: can be flagged outdated on the [https://archlinux.org/packages/extra/x86_64/minetest/ package page]&lt;br /&gt;
* '''Alpine Linux''': can be flagged outdated on the [https://pkgs.alpinelinux.org/package/edge/community/x86_64/minetest package page]&lt;br /&gt;
* '''Debian'''/Ubuntu: has [https://tracker.debian.org/pkg/minetest own version tracking], no need to contact&lt;br /&gt;
* '''F-Droid''': has volunteer maintainers, if nobody notices consider opening an issue [https://gitlab.com/fdroid/fdroiddata/-/issues here]&lt;br /&gt;
* '''Snap''': open an issue (or contribute) [https://github.com/snapcrafters/minetest here]&lt;br /&gt;
* '''Flatpak''':  open an issue (or contribute) [https://github.com/flathub/net.minetest.Minetest here]&lt;br /&gt;
* '''Gentoo''': has [https://packages.gentoo.org/packages/games-action/minetest own version tracking], no need to contact&lt;br /&gt;
&lt;br /&gt;
You can find out how quick various distro are to adopt new versions [https://repology.org/project/minetest/history here on repology].&lt;br /&gt;
&lt;br /&gt;
=== ContentDB ===&lt;br /&gt;
&lt;br /&gt;
==== Add a new version ====&lt;br /&gt;
&lt;br /&gt;
Add the new version to the drop-down list of compatible Minetest versions that authors can select for their things.&lt;br /&gt;
&lt;br /&gt;
Note that CDB tells Minetest versions apart by their protocol version so this is obviously not applicable to patch releases.&lt;br /&gt;
&lt;br /&gt;
People who have access: rubenwardy + ???&lt;br /&gt;
&lt;br /&gt;
==== Package devtest ====&lt;br /&gt;
&lt;br /&gt;
The Minetest Game package on ContentDB makes a new release automatically when a new tag is made.&lt;br /&gt;
&lt;br /&gt;
The [https://content.minetest.net/packages/Minetest/devtest/ Development Test] package however needs to be released '''manually'''. Make a new release, upload a ZIP file with Development Test like it looks like the Minetest source tree in the stable branch, and set the minimum and maximum Minetest versions to the Minetest version it is intended for.&lt;br /&gt;
&lt;br /&gt;
[[Category:Core Engine]]&lt;br /&gt;
[[Category:Rules and Guidelines]]&lt;/div&gt;</summary>
		<author><name>&gt;Sfan5</name></author>
	</entry>
</feed>