-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yml
33 lines (28 loc) · 924 Bytes
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Adapted from https://jondot.medium.com/shipping-rust-binaries-with-goreleaser-d5aa42a46be0
project_name: komokana
before:
hooks:
- powershell.exe -Command "New-Item -Path . -Name dummy.go -ItemType file -Force"
- powershell.exe -Command "Add-Content -Path .\dummy.go -Value 'package main'"
- powershell.exe -Command "Add-Content -Path .\dummy.go -Value 'func main() {}'"
builds:
- id: komokana
main: dummy.go
goos: ["windows"]
goarch: ["amd64"]
binary: komokana
hooks:
post:
- mkdir -p dist/windows_amd64
- cp ".\target\x86_64-pc-windows-msvc\release\komokana.exe" ".\dist\komokana_windows_amd64_v1\komokana.exe"
archives:
- name_template: "{{ .ProjectName }}-{{ .Version }}-x86_64-pc-windows-msvc"
format: zip
files:
- LICENSE
- komokana.example.yaml
- CHANGELOG.md
checksum:
name_template: checksums.txt
changelog:
sort: asc