diff --git a/bitbucket.ico b/bitbucket.ico index bdb55a2..dffb1d4 100644 Binary files a/bitbucket.ico and b/bitbucket.ico differ diff --git a/bittray.exe.manifest b/bittray.exe.manifest new file mode 100644 index 0000000..e34a388 --- /dev/null +++ b/bittray.exe.manifest @@ -0,0 +1,15 @@ + + + + + + + + + + + PerMonitorV2, PerMonitor + True + + + \ No newline at end of file diff --git a/build.ps1 b/build.ps1 index 161061d..dcfd5de 100644 --- a/build.ps1 +++ b/build.ps1 @@ -47,8 +47,11 @@ if (!$?) exit 1 } +Write-Host "Applying rsrc metadata..." +rsrc -manifest .\bittray.exe.manifest -ico .\bitbucket.ico -arch amd64 + Write-Host "go build..." -go build -ldflags -H=windowsgui bittray.go +go build -ldflags="-H=windowsgui" if (!$?) { Write-Host -BackgroundColor red -ForegroundColor white "'go build' failed; see above." @@ -56,19 +59,7 @@ if (!$?) } Write-Host "Validating artifact..." -if (Test-Path "bittray.exe" -PathType Leaf) -{ - Write-Host "Applying rsrc metadata..." - trap - { - "Error adding resource metadata: $_" - } - - rcedit-x64.exe --set-icon .\bitbucket.ico "bittray.exe" - rcedit-x64.exe "bittray.exe" --set-version-string "ProductName" "Bittray" - rcedit-x64.exe "bittray.exe" --set-version-string "ProductVersion" "$version" -} -else +if (!(Test-Path "bittray.exe" -PathType Leaf)) { Write-Host -BackgroundColor red -ForegroundColor white "'go build' claims to have succeeded, but there is no artifact?" exit 1 diff --git a/docs/installing.md b/docs/installing.md index 15a1a64..073f721 100644 --- a/docs/installing.md +++ b/docs/installing.md @@ -7,13 +7,13 @@ order: 1 # Downloads -[![v1.1.3 Reference Build](https://img.shields.io/static/v1.svg?label=v1.1.3&message=Reference%20Build&color=green?style=flat&logo=appveyor)](https://ci.appveyor.com/project/michaelsanford/bittray/builds/30421681) +[![v1.1.3 Reference Build](https://img.shields.io/static/v1.svg?label=v1.1.3&message=Reference%20Build&color=green?style=flat&logo=appveyor)](https://ci.appveyor.com/project/michaelsanford/bittray/builds/30449140) ![GitHub Release Date](https://img.shields.io/github/release-date/michaelsanford/bittray.svg) ![GitHub All Releases](https://img.shields.io/github/downloads/michaelsanford/bittray/total.svg) |Version|Milestone|Link|Checksum (SHA1)| |---|---|---|---| -|[1.1.3](https://github.com/michaelsanford/bittray/tree/1.1.3)|[Bone Mill](https://github.com/michaelsanford/bittray/milestone/4?closed=1)|[:floppy_disk: Zip](https://github.com/michaelsanford/bittray/releases/download/1.1.3/bittray-1.1.3.zip)|`c9dd0660abff03fd5d5df7f96c3f5685ea23af51`| +|[1.1.3](https://github.com/michaelsanford/bittray/tree/1.1.3)|[Bone Mill](https://github.com/michaelsanford/bittray/milestone/6)|[:floppy_disk: Zip](https://github.com/michaelsanford/bittray/releases/download/1.1.3/bittray-1.1.3.zip)|`b73a5f7dcba4e1672a0950f9b3a39af6716d1895`| # Changelog diff --git a/rsrc.syso b/rsrc.syso new file mode 100644 index 0000000..022c88b Binary files /dev/null and b/rsrc.syso differ