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