To compile native images (such as EXE, MSI, DPKG, etc.), you need:
- WiX Toolset (Download & Documentation) on Windows
http://pathToLauncherFolder/launcher/ - fabric-loader-0.14.21-1.16.5.json // Or any other JSON version of Minecraft - ignore.cfg - delete.cfg - files/ // Contains any kind of Minecraft files (Optional sometimes you just want an empty game) - mods/ - config/ - etc...
These files WILL NOT be deleted beacuse by default the launcher delete every files except some predefined files
bin/launcher_config.json
bin/game/config/
bin/game/saves/
bin/game/content-packs/
bin/game/shaderpacks/
bin/game/config-client.json
bin/game/config-server.json
libraries/com/google/guava/guava/15.0/guava-15.0.jar
You can simply open the terminal in the launcher folder and run:
./gradlew build