From 1c8aae0839fac498cb1651f225b5f1cc644abad7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adri=C3=A1n=20Arroyo=20Calle?= Date: Sun, 22 May 2022 14:18:51 +0200 Subject: [PATCH] MSI installer --- README.md | 7 +++++++ scryer-prolog.wxs | 31 +++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 scryer-prolog.wxs diff --git a/README.md b/README.md index a3151439..f9df1779 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,13 @@ On Windows, Scryer Prolog is easier to build inside a [MSYS2](https://www.msys2. environment as some crates may require native C compilation. However, the resulting binary does not need MSYS2 to run. When executing Scryer in a shell, it is recommended to use a more advanced shell than mintty (the default MSYS2 shell). The [Windows Terminal](https://github.com/microsoft/terminal) works correctly. +To build a Windows Installer, you'll need first Scryer Prolog compiled in release mode, then, with WiX Toolset installed, execute: +``` +candle.exe scryer-prolog.wxs +light.exe scryer-prolog.wixobj +``` +It will generate a very basic MSI file which installs the main executable and a shortcut in the Start Menu. It can be installed with a double-click. To uninstall, go to the Control Panel and uninstall as usual. + Scryer Prolog must be built with **Rust 1.57 and up**. ### Docker Install diff --git a/scryer-prolog.wxs b/scryer-prolog.wxs new file mode 100644 index 00000000..53b21242 --- /dev/null +++ b/scryer-prolog.wxs @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.54.0