Switch remote deploy to vendored source builds
Move remote deployment to a vendored source bundle built on the target host via Docker so redeploys no longer require local cross-compilation or host Go installation. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
73
vendor/git.sr.ht/~jackmordaunt/go-toast/v2/internal/winrt/data/xml/dom/xmldocument.go
vendored
Normal file
73
vendor/git.sr.ht/~jackmordaunt/go-toast/v2/internal/winrt/data/xml/dom/xmldocument.go
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
// Code generated by winrt-go-gen. DO NOT EDIT.
|
||||
|
||||
//go:build windows
|
||||
|
||||
//nolint:all
|
||||
package dom
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"github.com/go-ole/go-ole"
|
||||
)
|
||||
|
||||
const SignatureXmlDocument string = "rc(Windows.Data.Xml.Dom.XmlDocument;{f7f3a506-1e87-42d6-bcfb-b8c809fa5494})"
|
||||
|
||||
type XmlDocument struct {
|
||||
ole.IUnknown
|
||||
}
|
||||
|
||||
func NewXmlDocument() (*XmlDocument, error) {
|
||||
inspectable, err := ole.RoActivateInstance("Windows.Data.Xml.Dom.XmlDocument")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return (*XmlDocument)(unsafe.Pointer(inspectable)), nil
|
||||
}
|
||||
|
||||
func (impl *XmlDocument) LoadXml(xml string) error {
|
||||
itf := impl.MustQueryInterface(ole.NewGUID(GUIDiXmlDocumentIO))
|
||||
defer itf.Release()
|
||||
v := (*iXmlDocumentIO)(unsafe.Pointer(itf))
|
||||
return v.LoadXml(xml)
|
||||
}
|
||||
|
||||
const (
|
||||
GUIDiXmlDocumentIO string = "6cd0e74e-ee65-4489-9ebf-ca43e87ba637"
|
||||
SignatureiXmlDocumentIO string = "{6cd0e74e-ee65-4489-9ebf-ca43e87ba637}"
|
||||
)
|
||||
|
||||
type iXmlDocumentIO struct {
|
||||
ole.IInspectable
|
||||
}
|
||||
|
||||
type iXmlDocumentIOVtbl struct {
|
||||
ole.IInspectableVtbl
|
||||
|
||||
LoadXml uintptr
|
||||
LoadXmlWithSettings uintptr
|
||||
SaveToFileAsync uintptr
|
||||
}
|
||||
|
||||
func (v *iXmlDocumentIO) VTable() *iXmlDocumentIOVtbl {
|
||||
return (*iXmlDocumentIOVtbl)(unsafe.Pointer(v.RawVTable))
|
||||
}
|
||||
|
||||
func (v *iXmlDocumentIO) LoadXml(xml string) error {
|
||||
xmlHStr, err := ole.NewHString(xml)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
hr, _, _ := syscall.SyscallN(
|
||||
v.VTable().LoadXml,
|
||||
uintptr(unsafe.Pointer(v)), // this
|
||||
uintptr(xmlHStr), // in string
|
||||
)
|
||||
|
||||
if hr != 0 {
|
||||
return ole.NewError(hr)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
88
vendor/git.sr.ht/~jackmordaunt/go-toast/v2/internal/winrt/ui/notifications/toastnotification.go
vendored
Normal file
88
vendor/git.sr.ht/~jackmordaunt/go-toast/v2/internal/winrt/ui/notifications/toastnotification.go
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
// Code generated by winrt-go-gen. DO NOT EDIT.
|
||||
|
||||
//go:build windows
|
||||
|
||||
//nolint:all
|
||||
package notifications
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"git.sr.ht/~jackmordaunt/go-toast/v2/internal/winrt/data/xml/dom"
|
||||
"github.com/go-ole/go-ole"
|
||||
)
|
||||
|
||||
const SignatureToastNotification string = "rc(Windows.UI.Notifications.ToastNotification;{997e2675-059e-4e60-8b06-1760917c8b80})"
|
||||
|
||||
func CreateToastNotification(content *dom.XmlDocument) (*ToastNotification, error) {
|
||||
inspectable, err := ole.RoGetActivationFactory("Windows.UI.Notifications.ToastNotification", ole.NewGUID(GUIDiToastNotificationFactory))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
v := (*iToastNotificationFactory)(unsafe.Pointer(inspectable))
|
||||
|
||||
var out *ToastNotification
|
||||
hr, _, _ := syscall.SyscallN(
|
||||
v.VTable().CreateToastNotification,
|
||||
0, // this is a static func, so there's no this
|
||||
uintptr(unsafe.Pointer(content)), // in dom.XmlDocument
|
||||
uintptr(unsafe.Pointer(&out)), // out ToastNotification
|
||||
)
|
||||
|
||||
if hr != 0 {
|
||||
return nil, ole.NewError(hr)
|
||||
}
|
||||
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type ToastNotification struct {
|
||||
ole.IUnknown
|
||||
}
|
||||
|
||||
const (
|
||||
GUIDiToastNotification string = "997e2675-059e-4e60-8b06-1760917c8b80"
|
||||
SignatureiToastNotification string = "{997e2675-059e-4e60-8b06-1760917c8b80}"
|
||||
)
|
||||
|
||||
type iToastNotification struct {
|
||||
ole.IInspectable
|
||||
}
|
||||
|
||||
type iToastNotificationVtbl struct {
|
||||
ole.IInspectableVtbl
|
||||
|
||||
GetContent uintptr
|
||||
SetExpirationTime uintptr
|
||||
GetExpirationTime uintptr
|
||||
AddDismissed uintptr
|
||||
RemoveDismissed uintptr
|
||||
AddActivated uintptr
|
||||
RemoveActivated uintptr
|
||||
AddFailed uintptr
|
||||
RemoveFailed uintptr
|
||||
}
|
||||
|
||||
func (v *iToastNotification) VTable() *iToastNotificationVtbl {
|
||||
return (*iToastNotificationVtbl)(unsafe.Pointer(v.RawVTable))
|
||||
}
|
||||
|
||||
const (
|
||||
GUIDiToastNotificationFactory string = "04124b20-82c6-4229-b109-fd9ed4662b53"
|
||||
SignatureiToastNotificationFactory string = "{04124b20-82c6-4229-b109-fd9ed4662b53}"
|
||||
)
|
||||
|
||||
type iToastNotificationFactory struct {
|
||||
ole.IInspectable
|
||||
}
|
||||
|
||||
type iToastNotificationFactoryVtbl struct {
|
||||
ole.IInspectableVtbl
|
||||
|
||||
CreateToastNotification uintptr
|
||||
}
|
||||
|
||||
func (v *iToastNotificationFactory) VTable() *iToastNotificationFactoryVtbl {
|
||||
return (*iToastNotificationFactoryVtbl)(unsafe.Pointer(v.RawVTable))
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
// Code generated by winrt-go-gen. DO NOT EDIT.
|
||||
|
||||
//go:build windows
|
||||
|
||||
//nolint:all
|
||||
package notifications
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"github.com/go-ole/go-ole"
|
||||
)
|
||||
|
||||
const (
|
||||
GUIDiToastNotificationManagerStatics5 string = "d6f5f569-d40d-407c-8989-88cab42cfd14"
|
||||
SignatureiToastNotificationManagerStatics5 string = "{d6f5f569-d40d-407c-8989-88cab42cfd14}"
|
||||
)
|
||||
|
||||
type iToastNotificationManagerStatics5 struct {
|
||||
ole.IInspectable
|
||||
}
|
||||
|
||||
type iToastNotificationManagerStatics5Vtbl struct {
|
||||
ole.IInspectableVtbl
|
||||
|
||||
GetDefault uintptr
|
||||
}
|
||||
|
||||
func (v *iToastNotificationManagerStatics5) VTable() *iToastNotificationManagerStatics5Vtbl {
|
||||
return (*iToastNotificationManagerStatics5Vtbl)(unsafe.Pointer(v.RawVTable))
|
||||
}
|
||||
|
||||
func GetDefault() (*ToastNotificationManagerForUser, error) {
|
||||
inspectable, err := ole.RoGetActivationFactory("Windows.UI.Notifications.ToastNotificationManager", ole.NewGUID(GUIDiToastNotificationManagerStatics5))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
v := (*iToastNotificationManagerStatics5)(unsafe.Pointer(inspectable))
|
||||
|
||||
var out *ToastNotificationManagerForUser
|
||||
hr, _, _ := syscall.SyscallN(
|
||||
v.VTable().GetDefault,
|
||||
0, // this is a static func, so there's no this
|
||||
uintptr(unsafe.Pointer(&out)), // out ToastNotificationManagerForUser
|
||||
)
|
||||
|
||||
if hr != 0 {
|
||||
return nil, ole.NewError(hr)
|
||||
}
|
||||
|
||||
return out, nil
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
// Code generated by winrt-go-gen. DO NOT EDIT.
|
||||
|
||||
//go:build windows
|
||||
|
||||
//nolint:all
|
||||
package notifications
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"github.com/go-ole/go-ole"
|
||||
)
|
||||
|
||||
const SignatureToastNotificationManagerForUser string = "rc(Windows.UI.Notifications.ToastNotificationManagerForUser;{79ab57f6-43fe-487b-8a7f-99567200ae94})"
|
||||
|
||||
type ToastNotificationManagerForUser struct {
|
||||
ole.IUnknown
|
||||
}
|
||||
|
||||
func (impl *ToastNotificationManagerForUser) CreateToastNotifierWithId(applicationId string) (*ToastNotifier, error) {
|
||||
itf := impl.MustQueryInterface(ole.NewGUID(GUIDiToastNotificationManagerForUser))
|
||||
defer itf.Release()
|
||||
v := (*iToastNotificationManagerForUser)(unsafe.Pointer(itf))
|
||||
return v.CreateToastNotifierWithId(applicationId)
|
||||
}
|
||||
|
||||
const (
|
||||
GUIDiToastNotificationManagerForUser string = "79ab57f6-43fe-487b-8a7f-99567200ae94"
|
||||
SignatureiToastNotificationManagerForUser string = "{79ab57f6-43fe-487b-8a7f-99567200ae94}"
|
||||
)
|
||||
|
||||
type iToastNotificationManagerForUser struct {
|
||||
ole.IInspectable
|
||||
}
|
||||
|
||||
type iToastNotificationManagerForUserVtbl struct {
|
||||
ole.IInspectableVtbl
|
||||
|
||||
CreateToastNotifier uintptr
|
||||
CreateToastNotifierWithId uintptr
|
||||
GetHistory uintptr
|
||||
GetUser uintptr
|
||||
}
|
||||
|
||||
func (v *iToastNotificationManagerForUser) VTable() *iToastNotificationManagerForUserVtbl {
|
||||
return (*iToastNotificationManagerForUserVtbl)(unsafe.Pointer(v.RawVTable))
|
||||
}
|
||||
|
||||
func (v *iToastNotificationManagerForUser) CreateToastNotifierWithId(applicationId string) (*ToastNotifier, error) {
|
||||
var out *ToastNotifier
|
||||
applicationIdHStr, err := ole.NewHString(applicationId)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
hr, _, _ := syscall.SyscallN(
|
||||
v.VTable().CreateToastNotifierWithId,
|
||||
uintptr(unsafe.Pointer(v)), // this
|
||||
uintptr(applicationIdHStr), // in string
|
||||
uintptr(unsafe.Pointer(&out)), // out ToastNotifier
|
||||
)
|
||||
|
||||
if hr != 0 {
|
||||
return nil, ole.NewError(hr)
|
||||
}
|
||||
|
||||
return out, nil
|
||||
}
|
||||
64
vendor/git.sr.ht/~jackmordaunt/go-toast/v2/internal/winrt/ui/notifications/toastnotifier.go
vendored
Normal file
64
vendor/git.sr.ht/~jackmordaunt/go-toast/v2/internal/winrt/ui/notifications/toastnotifier.go
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
// Code generated by winrt-go-gen. DO NOT EDIT.
|
||||
|
||||
//go:build windows
|
||||
|
||||
//nolint:all
|
||||
package notifications
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"github.com/go-ole/go-ole"
|
||||
)
|
||||
|
||||
const SignatureToastNotifier string = "rc(Windows.UI.Notifications.ToastNotifier;{75927b93-03f3-41ec-91d3-6e5bac1b38e7})"
|
||||
|
||||
type ToastNotifier struct {
|
||||
ole.IUnknown
|
||||
}
|
||||
|
||||
func (impl *ToastNotifier) Show(notification *ToastNotification) error {
|
||||
itf := impl.MustQueryInterface(ole.NewGUID(GUIDiToastNotifier))
|
||||
defer itf.Release()
|
||||
v := (*iToastNotifier)(unsafe.Pointer(itf))
|
||||
return v.Show(notification)
|
||||
}
|
||||
|
||||
const (
|
||||
GUIDiToastNotifier string = "75927b93-03f3-41ec-91d3-6e5bac1b38e7"
|
||||
SignatureiToastNotifier string = "{75927b93-03f3-41ec-91d3-6e5bac1b38e7}"
|
||||
)
|
||||
|
||||
type iToastNotifier struct {
|
||||
ole.IInspectable
|
||||
}
|
||||
|
||||
type iToastNotifierVtbl struct {
|
||||
ole.IInspectableVtbl
|
||||
|
||||
Show uintptr
|
||||
Hide uintptr
|
||||
GetSetting uintptr
|
||||
AddToSchedule uintptr
|
||||
RemoveFromSchedule uintptr
|
||||
GetScheduledToastNotifications uintptr
|
||||
}
|
||||
|
||||
func (v *iToastNotifier) VTable() *iToastNotifierVtbl {
|
||||
return (*iToastNotifierVtbl)(unsafe.Pointer(v.RawVTable))
|
||||
}
|
||||
|
||||
func (v *iToastNotifier) Show(notification *ToastNotification) error {
|
||||
hr, _, _ := syscall.SyscallN(
|
||||
v.VTable().Show,
|
||||
uintptr(unsafe.Pointer(v)), // this
|
||||
uintptr(unsafe.Pointer(notification)), // in ToastNotification
|
||||
)
|
||||
|
||||
if hr != 0 {
|
||||
return ole.NewError(hr)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user