Move generate.
This commit is contained in:
parent
c4b2443283
commit
e94bb9dbfe
|
@ -25,10 +25,8 @@ Download `server.go` by running the following in a command prompt:
|
||||||
powershell -Command Invoke-WebRequest -OutFile server.go https://git.rootprojects.org/josh/code-signing-final/raw/branch/master/All/server.go
|
powershell -Command Invoke-WebRequest -OutFile server.go https://git.rootprojects.org/josh/code-signing-final/raw/branch/master/All/server.go
|
||||||
|
|
||||||
# Download a pre-made config file for goversioninfo:
|
# Download a pre-made config file for goversioninfo:
|
||||||
powershell -Command Invoke-WebRequest -OutFile versioninfo.json https://git.rootprojects.org/josh/code-signing-final/raw/branch/master/All/versioninfo.json
|
|
||||||
|
|
||||||
# Then generate the configuration by running the following in a command prompt:
|
powershell -Command Invoke-WebRequest -OutFile versioninfo.json https://git.rootprojects.org/josh/code-signing-final/raw/branch/master/All/versioninfo.json
|
||||||
go generate
|
|
||||||
```
|
```
|
||||||
|
|
||||||
This will create a configuration file named `versioninfo.json` in the current directory. There are three things you will want to edit: 1. The version of the application, 2. The "publisher" or company name and 3. The product name.
|
This will create a configuration file named `versioninfo.json` in the current directory. There are three things you will want to edit: 1. The version of the application, 2. The "publisher" or company name and 3. The product name.
|
||||||
|
@ -43,6 +41,8 @@ Next, you can set the "publisher name" by filling in the `CompanyName` value wit
|
||||||
Lastly, you can give your application a name, like "Go Web Server" under the `ProductName` value.
|
Lastly, you can give your application a name, like "Go Web Server" under the `ProductName` value.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
# Generate the info goversioninfo needs by running the following in a command prompt:
|
||||||
|
go generate
|
||||||
# Next, build your server app.
|
# Next, build your server app.
|
||||||
go build -o server.exe -ldflags "-s -w -H=windowsgui"
|
go build -o server.exe -ldflags "-s -w -H=windowsgui"
|
||||||
```
|
```
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
"CompanyName": "Root Group LLC.",
|
"CompanyName": "Root Group LLC.",
|
||||||
"FileDescription": "A Go Web Server",
|
"FileDescription": "A Go Web Server",
|
||||||
"FileVersion": "1.0",
|
"FileVersion": "1.0",
|
||||||
"InternalName": "serve",
|
"InternalName": "go-server",
|
||||||
"LegalCopyright": "(C) Root Group LLC.",
|
"LegalCopyright": "(C) Root Group LLC.",
|
||||||
"LegalTrademarks": "",
|
"LegalTrademarks": "",
|
||||||
"OriginalFilename": "",
|
"OriginalFilename": "",
|
||||||
|
|
Loading…
Reference in New Issue