Updated How to build (markdown)

Данил 2023-05-17 13:29:35 +03:00
parent 8c3bd176ab
commit 88f167c26f
2 changed files with 15 additions and 17 deletions

15
How-to-build-app.md Normal file

@ -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
```

@ -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 <version> -s wix
```
- Done