@@ -23,14 +23,30 @@ winget install --id DEVCOM.Lua
2323 [ Clang] ( https://clang.llvm.org/ ) )
2424- [ CMake] ( https://cmake.org/ )
2525- [ Ninja] ( https://ninja-build.org/ )
26+ - [ ImageMagick] ( https://imagemagick.org/ )
27+ - [ GhostScript] ( https://www.ghostscript.com/ )
28+ - [ WiX v3] ( https://wixtoolset.org/docs/wix3/ )
2629
27- You can install these components with the following
30+ You can install the first five components with the following
2831[ winget] ( https://learn.microsoft.com/windows/package-manager/winget/ ) commands:
2932
3033``` powershell
3134winget install --id LLVM.LLVM
3235winget install --id Kitware.CMake
3336winget install --id Ninja-build.Ninja
37+ winget install --id ImageMagick.ImageMagick
38+ winget install --id ArtifexSoftware.GhostScript
39+ ```
40+
41+ WiX v3 is available at < https://github.com/wixtoolset/wix3/releases/ > . It
42+ requires .NET Framework 3.5 that can be installed with the following command:
43+
44+ ``` powershell
45+ Start-Process `
46+ -FilePath pwsh `
47+ -ArgumentList "-Command `"& {Enable-WindowsOptionalFeature -Online -FeatureName NetFx3}`"" `
48+ -Wait `
49+ -Verb RunAs
3450```
3551
3652Update your path environment with ` setx ` (supposing you installed the tools in
@@ -47,14 +63,17 @@ Check if `PATH` was set correctly:
4763Get-Command clang
4864Get-Command cmake
4965Get-Command ninja
66+ Get-Command magick
67+ Get-Command gswin64
5068```
5169
5270You may need to restart your Windows session if you can't find ` ninja ` even
5371after restarting your terminal.
5472
5573## Build
5674
57- Use the following commands to generate a ZIP package with Lua and LuaRocks:
75+ Use the following commands to generate the installation package in both ZIP and
76+ MSI formats:
5877
5978``` powershell
6079cmake -B build -G Ninja -D CMAKE_BUILD_TYPE=RelWithDebInfo
@@ -66,4 +85,4 @@ code and LuaRocks binaries.
6685
6786For convenience, you can use the ` Build-Lua.ps1 ` script to run these commands.
6887
69- If successful, the ZIP file will be available in the ` build ` directory.
88+ If successful, the ZIP and MSI files will be available in the ` build ` directory.
0 commit comments