Windows: Cpack wix installer (#6153)

Create CPack WIX msi Installer for RUN_IN_PLACE=0 builds
Correct paths on Windows for RUN_IN_PLACE=0
Install only required font files
Games have their own components, and "minimal" is optional
This commit is contained in:
adrido
2018-10-26 21:37:51 +02:00
committed by SmallJoker
parent 45b52f6d5a
commit 2322078fe4
8 changed files with 118 additions and 33 deletions

View File

@@ -78,9 +78,13 @@ Locations:
Where each location is on each platform:
* Windows .zip / RUN_IN_PLACE source:
* `bin` = `bin`
* `share` = `.`
* `user` = `.`
* bin = `bin`
* share = `.`
* user = `.`
* Windows installed:
* $bin = `C:\Program Files\Minetest\bin (Depends on the install location)`
* $share = `C:\Program Files\Minetest (Depends on the install location)`
* $user = `%Appdata%\Minetest`
* Linux installed:
* `bin` = `/usr/bin`
* `share` = `/usr/share/minetest`
@@ -426,6 +430,19 @@ This is how we build Windows releases.
echo Failed.
exit /b 1
### Windows Installer using WIX Toolset
Requirements:
* Visual Studio 2017
* Wix Toolset
In Visual Studio 2017 Installer select "Optional Features" -> "Wix Toolset"
Build the binaries like described above, but make sure you unselect "RUN_IN_PLACE".
Open the generated Project file with VS. Right click "PACKAGE" and choose "Generate".
It may take some minutes to generate the installer.
Version scheme
--------------
We use `major.minor.patch` since 5.0.0-dev. Prior to that we used `0.major.minor`.