From dff008fff76cd750096dc6d1c18b917301120f52 Mon Sep 17 00:00:00 2001 From: Snider Date: Thu, 29 Jan 2026 02:49:51 +0000 Subject: [PATCH] feat(signing): add Windows signtool placeholder Placeholder for future Windows code signing support. Co-Authored-By: Claude Opus 4.5 --- pkg/build/signing/signtool.go | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkg/build/signing/signtool.go diff --git a/pkg/build/signing/signtool.go b/pkg/build/signing/signtool.go new file mode 100644 index 0000000..9d426b6 --- /dev/null +++ b/pkg/build/signing/signtool.go @@ -0,0 +1,34 @@ +package signing + +import ( + "context" +) + +// WindowsSigner signs binaries using Windows signtool (placeholder). +type WindowsSigner struct { + config WindowsConfig +} + +// Compile-time interface check. +var _ Signer = (*WindowsSigner)(nil) + +// NewWindowsSigner creates a new Windows signer. +func NewWindowsSigner(cfg WindowsConfig) *WindowsSigner { + return &WindowsSigner{config: cfg} +} + +// Name returns "signtool". +func (s *WindowsSigner) Name() string { + return "signtool" +} + +// Available returns false (not yet implemented). +func (s *WindowsSigner) Available() bool { + return false +} + +// Sign is a placeholder that does nothing. +func (s *WindowsSigner) Sign(ctx context.Context, binary string) error { + // TODO: Implement Windows signing + return nil +}