From 88f167c26f92edfec76c411f41478c830594302d Mon Sep 17 00:00:00 2001 From: Redume Date: Wed, 17 May 2023 13:29:35 +0300 Subject: [PATCH] Updated How to build (markdown) --- How-to-build-app.md | 15 +++++++++++++++ How-to-build.md | 17 ----------------- 2 files changed, 15 insertions(+), 17 deletions(-) create mode 100644 How-to-build-app.md delete mode 100644 How-to-build.md diff --git a/How-to-build-app.md b/How-to-build-app.md new file mode 100644 index 0000000..7b27cb6 --- /dev/null +++ b/How-to-build-app.md @@ -0,0 +1,15 @@ +1. Install [GoLang](https://golang.org/dl/). Recommended version: 1.20.2. +2. Install [go-msi](https://github.com/mh-cbon/go-msi#chocolatey) & [WiX](https://github.com/wixtoolset/wix3/releases/tag/wix3112rtm). + +#### ℹ️ **Note** +> I recommend installing the go-msi through Chocolatey. + +3. To bypass restrictions, allow long paths. You can view it [here](https://answers.microsoft.com/en-us/windows/forum/all/how-to-extend-file-path-characters-maximum-limit/691ea463-2e15-452b-8426-8d372003504f). +4. You need to create an .exe file +```bash +go build -ldflags "-s -H windowsgui" +``` +5. Finally, you can create an .msi file +```bash +go-msi make -msi EveryNASA.msi --version -s wix -l NOTICE +``` diff --git a/How-to-build.md b/How-to-build.md deleted file mode 100644 index e19ed5d..0000000 --- a/How-to-build.md +++ /dev/null @@ -1,17 +0,0 @@ - -- Install [GoLang](https://golang.org/dl/). Recommended version: 1.19.1 - - -- First make a build. If you want to create a build without a console window, then remove `-ldflags "-H windowsgui"` from the command - -```shell -go build -ldflags "-s -H windowsgui" -``` - -- Create a build of the installation package - -```shell -go-msi make -msi EveryNasa.msi --version -s wix -``` - -- Done \ No newline at end of file