Add goversioninfo config.

This commit is contained in:
Josh Mudge 2019-11-12 15:49:17 -07:00
parent b00acad694
commit ebf3b7c0d0
2 changed files with 47 additions and 0 deletions

View File

@ -9,6 +9,7 @@ We're creating our web server file, building it and signing the application.
## Creating the Server File
First of all, you'll want to install Golang: https://golang.org/dl/ and Git for Windows: https://git-scm.com/download/win
Then you'll want to install [goversioninfo](https://github.com/josephspurrier/goversioninfo) by running the following in a command prompt:
```
@ -23,6 +24,9 @@ Download `server.go` by running the following in a command prompt:
# Download the server file.
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:
powershell -Command Invoke-WebRequest -OutFile server.go 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:
go generate
```

43
All/versioninfo.json Normal file
View File

@ -0,0 +1,43 @@
{
"FixedFileInfo": {
"FileVersion": {
"Major": 1,
"Minor": 0,
"Patch": 0,
"Build": 0
},
"ProductVersion": {
"Major": 1,
"Minor": 0,
"Patch": 0,
"Build": 0
},
"FileFlagsMask": "3f",
"FileFlags ": "00",
"FileOS": "040004",
"FileType": "01",
"FileSubType": "00"
},
"StringFileInfo": {
"Comments": "A Go Web Server",
"CompanyName": "Root Group LLC.",
"FileDescription": "A Go Web Server",
"FileVersion": "1.0",
"InternalName": "serve",
"LegalCopyright": "(C) Root Group LLC.",
"LegalTrademarks": "",
"OriginalFilename": "",
"PrivateBuild": "",
"ProductName": "A Go Web Server",
"ProductVersion": "v1.0.0.0",
"SpecialBuild": ""
},
"VarFileInfo": {
"Translation": {
"LangID": "0409",
"CharsetID": "04B0"
}
},
"IconPath": "",
"ManifestPath": ""
}