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:
23
vendor/github.com/wailsapp/wails/v2/pkg/options/mac/appearance.go
generated
vendored
Normal file
23
vendor/github.com/wailsapp/wails/v2/pkg/options/mac/appearance.go
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
package mac
|
||||
|
||||
// AppearanceType is a type of Appearance for Cocoa windows
|
||||
type AppearanceType string
|
||||
|
||||
const (
|
||||
// DefaultAppearance uses the default system value
|
||||
DefaultAppearance AppearanceType = ""
|
||||
// NSAppearanceNameAqua - The standard light system appearance.
|
||||
NSAppearanceNameAqua AppearanceType = "NSAppearanceNameAqua"
|
||||
// NSAppearanceNameDarkAqua - The standard dark system appearance.
|
||||
NSAppearanceNameDarkAqua AppearanceType = "NSAppearanceNameDarkAqua"
|
||||
// NSAppearanceNameVibrantLight - The light vibrant appearance
|
||||
NSAppearanceNameVibrantLight AppearanceType = "NSAppearanceNameVibrantLight"
|
||||
// NSAppearanceNameAccessibilityHighContrastAqua - A high-contrast version of the standard light system appearance.
|
||||
NSAppearanceNameAccessibilityHighContrastAqua AppearanceType = "NSAppearanceNameAccessibilityHighContrastAqua"
|
||||
// NSAppearanceNameAccessibilityHighContrastDarkAqua - A high-contrast version of the standard dark system appearance.
|
||||
NSAppearanceNameAccessibilityHighContrastDarkAqua AppearanceType = "NSAppearanceNameAccessibilityHighContrastDarkAqua"
|
||||
// NSAppearanceNameAccessibilityHighContrastVibrantLight - A high-contrast version of the light vibrant appearance.
|
||||
NSAppearanceNameAccessibilityHighContrastVibrantLight AppearanceType = "NSAppearanceNameAccessibilityHighContrastVibrantLight"
|
||||
// NSAppearanceNameAccessibilityHighContrastVibrantDark - A high-contrast version of the dark vibrant appearance.
|
||||
NSAppearanceNameAccessibilityHighContrastVibrantDark AppearanceType = "NSAppearanceNameAccessibilityHighContrastVibrantDark"
|
||||
)
|
||||
31
vendor/github.com/wailsapp/wails/v2/pkg/options/mac/mac.go
generated
vendored
Normal file
31
vendor/github.com/wailsapp/wails/v2/pkg/options/mac/mac.go
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
package mac
|
||||
|
||||
//type ActivationPolicy int
|
||||
//
|
||||
//const (
|
||||
// NSApplicationActivationPolicyRegular ActivationPolicy = 0
|
||||
// NSApplicationActivationPolicyAccessory ActivationPolicy = 1
|
||||
// NSApplicationActivationPolicyProhibited ActivationPolicy = 2
|
||||
//)
|
||||
|
||||
type AboutInfo struct {
|
||||
Title string
|
||||
Message string
|
||||
Icon []byte
|
||||
}
|
||||
|
||||
// Options are options specific to Mac
|
||||
type Options struct {
|
||||
TitleBar *TitleBar
|
||||
Appearance AppearanceType
|
||||
ContentProtection bool
|
||||
WebviewIsTransparent bool
|
||||
WindowIsTranslucent bool
|
||||
Preferences *Preferences
|
||||
DisableZoom bool
|
||||
// ActivationPolicy ActivationPolicy
|
||||
About *AboutInfo
|
||||
OnFileOpen func(filePath string) `json:"-"`
|
||||
OnUrlOpen func(filePath string) `json:"-"`
|
||||
// URLHandlers map[string]func(string)
|
||||
}
|
||||
21
vendor/github.com/wailsapp/wails/v2/pkg/options/mac/preferences.go
generated
vendored
Normal file
21
vendor/github.com/wailsapp/wails/v2/pkg/options/mac/preferences.go
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
package mac
|
||||
|
||||
import "github.com/leaanthony/u"
|
||||
|
||||
var (
|
||||
Enabled = u.True
|
||||
Disabled = u.False
|
||||
)
|
||||
|
||||
// Preferences allows to set webkit preferences
|
||||
type Preferences struct {
|
||||
// A Boolean value that indicates whether pressing the tab key changes the focus to links and form controls.
|
||||
// Set to false by default.
|
||||
TabFocusesLinks u.Bool
|
||||
// A Boolean value that indicates whether to allow people to select or otherwise interact with text.
|
||||
// Set to true by default.
|
||||
TextInteractionEnabled u.Bool
|
||||
// A Boolean value that indicates whether a web view can display content full screen.
|
||||
// Set to false by default
|
||||
FullscreenEnabled u.Bool
|
||||
}
|
||||
52
vendor/github.com/wailsapp/wails/v2/pkg/options/mac/titlebar.go
generated
vendored
Normal file
52
vendor/github.com/wailsapp/wails/v2/pkg/options/mac/titlebar.go
generated
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
package mac
|
||||
|
||||
// TitleBar contains options for the Mac titlebar
|
||||
type TitleBar struct {
|
||||
TitlebarAppearsTransparent bool
|
||||
HideTitle bool
|
||||
HideTitleBar bool
|
||||
FullSizeContent bool
|
||||
UseToolbar bool
|
||||
HideToolbarSeparator bool
|
||||
}
|
||||
|
||||
// TitleBarDefault results in the default Mac Titlebar
|
||||
func TitleBarDefault() *TitleBar {
|
||||
return &TitleBar{
|
||||
TitlebarAppearsTransparent: false,
|
||||
HideTitle: false,
|
||||
HideTitleBar: false,
|
||||
FullSizeContent: false,
|
||||
UseToolbar: false,
|
||||
HideToolbarSeparator: false,
|
||||
}
|
||||
}
|
||||
|
||||
// Credit: Comments from Electron site
|
||||
|
||||
// TitleBarHidden results in a hidden title bar and a full size content window,
|
||||
// yet the title bar still has the standard window controls (“traffic lights”)
|
||||
// in the top left.
|
||||
func TitleBarHidden() *TitleBar {
|
||||
return &TitleBar{
|
||||
TitlebarAppearsTransparent: true,
|
||||
HideTitle: true,
|
||||
HideTitleBar: false,
|
||||
FullSizeContent: true,
|
||||
UseToolbar: false,
|
||||
HideToolbarSeparator: false,
|
||||
}
|
||||
}
|
||||
|
||||
// TitleBarHiddenInset results in a hidden title bar with an alternative look where
|
||||
// the traffic light buttons are slightly more inset from the window edge.
|
||||
func TitleBarHiddenInset() *TitleBar {
|
||||
return &TitleBar{
|
||||
TitlebarAppearsTransparent: true,
|
||||
HideTitle: true,
|
||||
HideTitleBar: false,
|
||||
FullSizeContent: true,
|
||||
UseToolbar: true,
|
||||
HideToolbarSeparator: true,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user