agent-lib.exe is a console program, so Windows opens a terminal window on every scheduled run. Ship agent-libw.exe, the same program built with -H=windowsgui, in the Windows zip for use in the task action. Start the PowerShell toast without a window, since agent-libw has no console to inherit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
80 lines
1.8 KiB
YAML
80 lines
1.8 KiB
YAML
version: 2
|
|
|
|
project_name: agent-lib
|
|
|
|
# Releases gehen an die eigene Gitea-Instanz (NICHT GitHub):
|
|
# GITEA_TOKEN=<token mit repository-write> als Umgebungsvariable
|
|
# Owner/Name sind explizit gesetzt, weil das SCP-Stil-Remote
|
|
# (gitea@code.m3ta.dev:m3tam3re/agent-lib.git) fuer die automatische
|
|
# Ableitung unzuverlaessig ist.
|
|
gitea_urls:
|
|
api: https://code.m3ta.dev/api/v1
|
|
download: https://code.m3ta.dev
|
|
|
|
release:
|
|
draft: false
|
|
prerelease: auto
|
|
mode: append
|
|
gitea:
|
|
owner: m3tam3re
|
|
name: agent-lib
|
|
|
|
before:
|
|
hooks:
|
|
- go mod tidy
|
|
|
|
builds:
|
|
- id: agent-lib
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- windows
|
|
- linux
|
|
- darwin
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
ignore:
|
|
- goos: windows
|
|
goarch: arm64
|
|
ldflags:
|
|
- -s -w -X github.com/m3tam3re/agent-lib/internal/version.Version={{.Version}}
|
|
binary: agent-lib
|
|
# GUI-Subsystem-Variante fuer die Aufgabenplanung: oeffnet kein
|
|
# Konsolenfenster, dafuer auch keine Ausgabe auf stdout/stderr.
|
|
- id: agent-libw
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
ldflags:
|
|
- -s -w -H=windowsgui -X github.com/m3tam3re/agent-lib/internal/version.Version={{.Version}}
|
|
binary: agent-libw
|
|
|
|
checksum:
|
|
name_template: "checksums.txt"
|
|
|
|
archives:
|
|
- id: agent-lib
|
|
formats: [tar.gz]
|
|
format_overrides:
|
|
- goos: windows
|
|
formats: [zip]
|
|
# Explizit stabil, damit Fleet-Download-URLs vorhersehbar bleiben:
|
|
# .../releases/download/<tag>/agent-lib_<os>_<arch>.<ext>
|
|
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
|
|
# Das Windows-Zip enthaelt zusaetzlich agent-libw.exe.
|
|
allow_different_binary_count: true
|
|
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- "^docs:"
|
|
- "^test:"
|
|
- "^chore:"
|
|
- Merge pull request
|
|
- Merge branch
|