From ebf3b7c0d0b020f217897257605afefac59dc137 Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Tue, 12 Nov 2019 15:49:17 -0700 Subject: [PATCH] Add goversioninfo config. --- All/Sign Using OV Cert.md | 4 ++++ All/versioninfo.json | 43 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 All/versioninfo.json diff --git a/All/Sign Using OV Cert.md b/All/Sign Using OV Cert.md index c28f212..718358c 100644 --- a/All/Sign Using OV Cert.md +++ b/All/Sign Using OV Cert.md @@ -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 ``` diff --git a/All/versioninfo.json b/All/versioninfo.json new file mode 100644 index 0000000..cacdb61 --- /dev/null +++ b/All/versioninfo.json @@ -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": "" +}