Skip to content

Commit

Permalink
cmd/anchor: add windows app manifest & icon
Browse files Browse the repository at this point in the history
  • Loading branch information
benburkert committed Apr 14, 2024
1 parent 8610252 commit 1441171
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
Binary file added cmd/anchor/windows/als2.ico
Binary file not shown.
37 changes: 37 additions & 0 deletions cmd/anchor/windows/app.wxs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
<Product
Name='{{.ProjectName}} CLI {{.RawVersion}}'
Id='{{.Var.windows_product_guid}}'
UpgradeCode='{{.Var.windows_upgrade_code}}'
Language='1033'
Codepage='1252'
Version='{{.RawVersion}}'
Manufacturer='Anchor Security, Inc.'>

<Icon Id="icon.ico" SourceFile="als2.ico"/>
<Property Id="ARPPRODUCTICON" Value="icon.ico" />

<Package
Id='*'
Comments='Anchor CLI'
Manufacturer='Anchor Security, Inc.'
InstallerVersion='{{.Var.windows_installer_version}}'
Compressed='yes'
/>
<MediaTemplate EmbedCab="yes" />

<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='ProgramFiles{{ if eq .Arch "amd64" }}64{{ end }}Folder' Name='PFiles'>
<Directory Id='INSTALLDIR' Name='Anchor CLI' />
</Directory>
</Directory>

<Feature Id='Complete'>
<Component Id='MainExecutable' Directory='INSTALLDIR'>
<File Id='{{.Binary}}.exe' Name='{{.Binary}}.exe' Source='{{.Binary}}.exe' KeyPath='yes'/>
<!-- <Environment Id='PATH' Name='PATH' Value='[INSTALLDIR]' Permanent='no' Part='last' Action='set' System='yes'/> -->
</Component>
</Feature>
</Product>
</Wix>

0 comments on commit 1441171

Please sign in to comment.