Skip to content

Commit

Permalink
update according to new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vedantmgoyal9 committed Jan 24, 2025
1 parent 3e7ca47 commit d2d6760
Showing 1 changed file with 28 additions and 18 deletions.
46 changes: 28 additions & 18 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,19 @@ env:

before:
hooks:
# caarlos0 will improve this soon, so we don't need `else` workaround
- '{{ if eq .Runtime.Goos "darwin" }}tic -xe rio -o misc misc/rio.terminfo{{ else }}echo{{ end }}'
- '{{ if eq .Runtime.Goos "windows" }}dotnet tool install --global wix --version 5.0.2{{ else }}echo{{ end }}'
- if: '{{ eq .Runtime.Goos "darwin" }}'
cmd: tic -xe rio -o misc misc/rio.terminfo
output: true
- if: '{{ eq .Runtime.Goos "windows" }}'
cmd: dotnet tool install --global wix --version 5.0.2
output: true
- if: '{{ eq .Runtime.Goos "windows" }}'
cmd: wix --version
output: true
- if: '{{ eq .Runtime.Goos "windows" }}'
cmd: wix extension add WixToolset.UI.wixext/4.0.5 WixToolset.Util.wixext/4.0.5
output: true

builds:
- id: windows-x86_64
builder: rust
Expand Down Expand Up @@ -110,21 +120,21 @@ universal_binaries:
- ids: [macos]
replace: true

# msi:
# - id: win-x64
# name: "{{ .ProjectName }}-installer-x86_64"
# wxs: ./misc/windows/rio.wxs
# ids: [windows-x86_64]
# extensions:
# - WixToolset.UI.wixext/5.0.2
# - WixToolset.Util.wixext/5.0.2
# - id: win-arm64
# name: "{{ .ProjectName }}-installer-aarch64"
# wxs: ./misc/windows/rio.wxs
# ids: [windows-arm64]
# extensions:
# - WixToolset.UI.wixext/5.0.2
# - WixToolset.Util.wixext/5.0.2
msi:
- id: win-x64
name: "{{ .ProjectName }}-installer-x86_64"
wxs: ./misc/windows/rio.wxs
ids: [windows-x86_64]
extensions:
- WixToolset.UI.wixext
- WixToolset.Util.wixext
- id: win-arm64
name: "{{ .ProjectName }}-installer-aarch64"
wxs: ./misc/windows/rio.wxs
ids: [windows-arm64]
extensions:
- WixToolset.UI.wixext
- WixToolset.Util.wixext

archives:
- id: win-x64
Expand Down

0 comments on commit d2d6760

Please sign in to comment.