Skip to content

Commit

Permalink
Add windows product info setting during package
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jan 15, 2019
1 parent 79a0635 commit d86e105
Show file tree
Hide file tree
Showing 27 changed files with 2,128 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cmd/fyne/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"strings"

"github.com/Kodeworks/golang-image-ico"
"github.com/akavel/rsrc/rsrc"
"github.com/jackmordaunt/icns"
"github.com/josephspurrier/goversioninfo"
)

func exists(path string) bool {
Expand Down Expand Up @@ -180,7 +180,15 @@ func (p *packager) packageWindows() {

// launch rsrc to generate the object file
outPath := filepath.Join(p.dir, "fyne.syso")
rsrc.Embed(outPath, runtime.GOARCH, manifest, icoPath)

vi := &goversioninfo.VersionInfo{}
vi.ProductName = p.name
vi.IconPath = icoPath
vi.ManifestPath = manifest

vi.Build()
vi.Walk()
vi.WriteSyso(outPath, runtime.GOARCH)

os.Remove(icoPath)
os.Remove(manifest)
Expand Down
22 changes: 22 additions & 0 deletions vendor/github.com/josephspurrier/goversioninfo/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions vendor/github.com/josephspurrier/goversioninfo/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

122 changes: 122 additions & 0 deletions vendor/github.com/josephspurrier/goversioninfo/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d86e105

Please sign in to comment.