fix(windows): add windowless agent-libw for scheduled sync
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>
This commit is contained in:
1 parent
5e7d693699
commit
e41ffa6a14
5 files changed
+32
-1
No files matched your search
@@ -40,6 +40,18 @@ builds:
|
||||
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"
|
||||
@@ -53,6 +65,8 @@ archives:
|
||||
# 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
|
||||
|
||||
Reference in new issue
Block a user