Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Fixes #43, generate manifest/syso properly. Update icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsanford committed Jan 30, 2020
1 parent 49ebe62 commit 13a7ce0
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 16 deletions.
Binary file modified bitbucket.ico
Binary file not shown.
15 changes: 15 additions & 0 deletions bittray.exe.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.1.3.0" processorArchitecture="*" name="bittray" type="win32"/>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*"/>
</dependentAssembly>
</dependency>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">True</dpiAware>
</windowsSettings>
</application>
</assembly>
19 changes: 5 additions & 14 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -47,28 +47,19 @@ 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."
exit 1
}

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
Expand Down
4 changes: 2 additions & 2 deletions docs/installing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Binary file added rsrc.syso
Binary file not shown.

0 comments on commit 13a7ce0

Please sign in to comment.