| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- version: 2
- before:
- hooks:
- - go mod tidy
- builds:
- - id: linux
- binary: open_oscar_server
- goos:
- - linux
- goarch:
- - amd64
- - arm
- goarm:
- - "7"
- main: ./cmd/server
- env:
- - CGO_ENABLED=0
- - id: macos
- binary: open_oscar_server
- goos:
- - darwin
- goarch:
- - amd64
- - arm64
- main: ./cmd/server
- env:
- - CGO_ENABLED=0
- - id: windows
- binary: open_oscar_server
- goos:
- - windows
- goarch:
- - amd64
- main: ./cmd/server
- env:
- - CGO_ENABLED=0
- hooks:
- post:
- - cmd: bash ./scripts/sign_windows.sh "{{ .Path }}"
- output: true
- archives:
- - id: linux
- ids:
- - linux
- formats:
- - tar.gz
- wrap_in_directory: true
- files:
- - LICENSE
- - src: config/settings.env
- strip_parent: true
- - src: config/ras.service
- strip_parent: true
- name_template: >-
- {{ .Binary }}.{{ .Version }}.{{ .Os }}.
- {{- if eq .Arch "amd64" }}x86_64{{ else }}arm64_arm7_raspberry_pi{{ end }}
- - id: macos
- ids:
- - macos
- formats:
- - zip
- wrap_in_directory: true
- files:
- - LICENSE
- - src: config/settings.env
- strip_parent: true
- name_template: >-
- {{ .Binary }}.{{ .Version }}.macos.
- {{- if eq .Arch "amd64" }}intel_x86_64{{ else }}apple_silicon{{ end }}
- - id: windows
- ids:
- - windows
- formats:
- - zip
- wrap_in_directory: true
- files:
- - LICENSE
- - src: config/settings.env
- strip_parent: true
- name_template: >-
- {{ .Binary }}.{{ .Version }}.{{ .Os }}.
- {{- if eq .Arch "amd64" }}x86_64
- {{- else }}{{ .Arch }}{{ end }}
- release:
- draft: true
|