mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 07:10:40 +08:00
fix: fix go test
errors (#2169)
* fix: fix go test errors * Add flags to mac test * Run on all branches * Update PR workflow Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
This commit is contained in:
parent
606ce3de1d
commit
f70d9de366
12
.github/workflows/build-and-test.yml
vendored
12
.github/workflows/build-and-test.yml
vendored
@ -2,7 +2,7 @@ name: Build + Test
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [*]
|
branches: [release/*, master]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -28,7 +28,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: ${{ matrix.go-version }}
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests (mac)
|
||||||
|
if: matrix.os == 'macos-latest'
|
||||||
|
env:
|
||||||
|
CGO_LDFLAGS: -framework UniformTypeIdentifiers -mmacosx-version-min=10.13
|
||||||
|
working-directory: ./v2
|
||||||
|
run: go test -v ./...
|
||||||
|
|
||||||
|
- name: Run tests (!mac)
|
||||||
|
if: matrix.os != 'macos-latest'
|
||||||
working-directory: ./v2
|
working-directory: ./v2
|
||||||
run: go test -v ./...
|
run: go test -v ./...
|
||||||
|
|
||||||
|
13
.github/workflows/pr.yml
vendored
13
.github/workflows/pr.yml
vendored
@ -48,7 +48,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: ${{ matrix.go-version }}
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests (mac)
|
||||||
|
if: matrix.os == 'macos-latest'
|
||||||
|
env:
|
||||||
|
CGO_LDFLAGS: -framework UniformTypeIdentifiers -mmacosx-version-min=10.13
|
||||||
working-directory: ./v2
|
working-directory: ./v2
|
||||||
run: |
|
run: go test -v ./...
|
||||||
go test -v ./...
|
|
||||||
|
- name: Run tests (!mac)
|
||||||
|
if: matrix.os != 'macos-latest'
|
||||||
|
working-directory: ./v2
|
||||||
|
run: go test -v ./...
|
||||||
|
2
.github/workflows/push.yml
vendored
2
.github/workflows/push.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Push
|
name: Push Checks
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -2,6 +2,11 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
|
"runtime"
|
||||||
|
"strings"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/leaanthony/slicer"
|
"github.com/leaanthony/slicer"
|
||||||
"github.com/pterm/pterm"
|
"github.com/pterm/pterm"
|
||||||
"github.com/wailsapp/wails/v2/cmd/wails/flags"
|
"github.com/wailsapp/wails/v2/cmd/wails/flags"
|
||||||
@ -10,10 +15,6 @@ import (
|
|||||||
"github.com/wailsapp/wails/v2/internal/project"
|
"github.com/wailsapp/wails/v2/internal/project"
|
||||||
"github.com/wailsapp/wails/v2/pkg/clilogger"
|
"github.com/wailsapp/wails/v2/pkg/clilogger"
|
||||||
"github.com/wailsapp/wails/v2/pkg/commands/build"
|
"github.com/wailsapp/wails/v2/pkg/commands/build"
|
||||||
"os"
|
|
||||||
"runtime"
|
|
||||||
"strings"
|
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func buildApplication(f *flags.Build) error {
|
func buildApplication(f *flags.Build) error {
|
||||||
@ -167,12 +168,12 @@ func buildApplication(f *flags.Build) error {
|
|||||||
switch buildOptions.Platform {
|
switch buildOptions.Platform {
|
||||||
case "linux":
|
case "linux":
|
||||||
if runtime.GOOS != "linux" {
|
if runtime.GOOS != "linux" {
|
||||||
pterm.Warning.Println("Crosscompiling to Linux not currently supported.\n")
|
pterm.Warning.Println("Crosscompiling to Linux not currently supported.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
case "darwin":
|
case "darwin":
|
||||||
if runtime.GOOS != "darwin" {
|
if runtime.GOOS != "darwin" {
|
||||||
pterm.Warning.Println("Crosscompiling to Mac not currently supported.\n")
|
pterm.Warning.Println("Crosscompiling to Mac not currently supported.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
macTargets := targets.Filter(func(platform string) bool {
|
macTargets := targets.Filter(func(platform string) bool {
|
||||||
|
@ -1,14 +1,15 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"runtime"
|
||||||
|
"runtime/debug"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/pterm/pterm"
|
"github.com/pterm/pterm"
|
||||||
"github.com/wailsapp/wails/v2/cmd/wails/flags"
|
"github.com/wailsapp/wails/v2/cmd/wails/flags"
|
||||||
"github.com/wailsapp/wails/v2/internal/colour"
|
"github.com/wailsapp/wails/v2/internal/colour"
|
||||||
"github.com/wailsapp/wails/v2/internal/system"
|
"github.com/wailsapp/wails/v2/internal/system"
|
||||||
"github.com/wailsapp/wails/v2/internal/system/packagemanager"
|
"github.com/wailsapp/wails/v2/internal/system/packagemanager"
|
||||||
"runtime"
|
|
||||||
"runtime/debug"
|
|
||||||
"strings"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func diagnoseEnvironment(f *flags.Doctor) error {
|
func diagnoseEnvironment(f *flags.Doctor) error {
|
||||||
@ -144,7 +145,7 @@ func diagnoseEnvironment(f *flags.Doctor) error {
|
|||||||
if len(dependenciesMissing) == 0 && dependenciesAvailableRequired == 0 {
|
if len(dependenciesMissing) == 0 && dependenciesAvailableRequired == 0 {
|
||||||
pterm.Println("Your system is ready for Wails development!")
|
pterm.Println("Your system is ready for Wails development!")
|
||||||
} else {
|
} else {
|
||||||
pterm.Println("Your system has missing dependencies!\n")
|
pterm.Println("Your system has missing dependencies!")
|
||||||
}
|
}
|
||||||
|
|
||||||
if dependenciesAvailableRequired != 0 {
|
if dependenciesAvailableRequired != 0 {
|
||||||
|
@ -2,11 +2,12 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/pterm/pterm"
|
|
||||||
"github.com/wailsapp/wails/v2/cmd/wails/internal"
|
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/pterm/pterm"
|
||||||
|
"github.com/wailsapp/wails/v2/cmd/wails/internal"
|
||||||
|
|
||||||
"github.com/wailsapp/wails/v2/internal/colour"
|
"github.com/wailsapp/wails/v2/internal/colour"
|
||||||
|
|
||||||
"github.com/leaanthony/clir"
|
"github.com/leaanthony/clir"
|
||||||
@ -52,7 +53,7 @@ func printFooter() {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
printer.Println("If Wails is useful to you or your company, please consider sponsoring the project:")
|
printer.Println("If Wails is useful to you or your company, please consider sponsoring the project:")
|
||||||
pterm.Println("https://github.com/sponsors/leaanthony\n")
|
pterm.Println("https://github.com/sponsors/leaanthony")
|
||||||
}
|
}
|
||||||
|
|
||||||
func bool2Str(b bool) string {
|
func bool2Str(b bool) string {
|
||||||
|
@ -2,12 +2,13 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
|
|
||||||
"github.com/labstack/gommon/color"
|
"github.com/labstack/gommon/color"
|
||||||
"github.com/pterm/pterm"
|
"github.com/pterm/pterm"
|
||||||
"github.com/wailsapp/wails/v2/cmd/wails/flags"
|
"github.com/wailsapp/wails/v2/cmd/wails/flags"
|
||||||
"github.com/wailsapp/wails/v2/internal/colour"
|
"github.com/wailsapp/wails/v2/internal/colour"
|
||||||
"github.com/wailsapp/wails/v2/internal/shell"
|
"github.com/wailsapp/wails/v2/internal/shell"
|
||||||
"os"
|
|
||||||
|
|
||||||
"github.com/wailsapp/wails/v2/internal/github"
|
"github.com/wailsapp/wails/v2/internal/github"
|
||||||
)
|
)
|
||||||
@ -76,7 +77,7 @@ func updateToVersion(targetVersion *github.SemanticVersion, force bool, currentV
|
|||||||
var targetVersionString = "v" + targetVersion.String()
|
var targetVersionString = "v" + targetVersion.String()
|
||||||
|
|
||||||
if targetVersionString == currentVersion {
|
if targetVersionString == currentVersion {
|
||||||
pterm.Println("\nLooks like you're up to date!\n")
|
pterm.Println("\nLooks like you're up to date!")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -122,7 +123,8 @@ func updateToVersion(targetVersion *github.SemanticVersion, force bool, currentV
|
|||||||
// Compare
|
// Compare
|
||||||
if !success {
|
if !success {
|
||||||
pterm.Println("Error: The requested version is lower than the current version.")
|
pterm.Println("Error: The requested version is lower than the current version.")
|
||||||
pterm.Println("If this is what you really want to do, use `wails update -version %s`", targetVersionString)
|
pterm.Println(fmt.Sprintf("If this is what you really want to do, use `wails update -version "+"%s`", targetVersionString))
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package windows
|
package windows
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"testing"
|
||||||
|
|
||||||
"github.com/wailsapp/wails/v2/internal/frontend"
|
"github.com/wailsapp/wails/v2/internal/frontend"
|
||||||
"golang.org/x/sys/windows"
|
"golang.org/x/sys/windows"
|
||||||
"testing"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_calculateMessageDialogFlags(t *testing.T) {
|
func Test_calculateMessageDialogFlags(t *testing.T) {
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package w32
|
package w32
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"golang.org/x/sys/windows"
|
|
||||||
"syscall"
|
"syscall"
|
||||||
"unicode/utf16"
|
"unicode/utf16"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
|
"golang.org/x/sys/windows"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package combridge
|
package combridge
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package combridge
|
package combridge
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package combridge
|
package combridge
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package combridge
|
package combridge
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package combridge
|
package combridge
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
type COREWEBVIEW2_COLOR struct {
|
type COREWEBVIEW2_COLOR struct {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
type COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND uint32
|
type COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND uint32
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
type COREWEBVIEW2_KEY_EVENT_KIND uint32
|
type COREWEBVIEW2_KEY_EVENT_KIND uint32
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
type COREWEBVIEW2_MOVE_FOCUS_REASON uint32
|
type COREWEBVIEW2_MOVE_FOCUS_REASON uint32
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
type COREWEBVIEW2_PHYSICAL_KEY_STATUS struct {
|
type COREWEBVIEW2_PHYSICAL_KEY_STATUS struct {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
type COREWEBVIEW2_WEB_RESOURCE_CONTEXT uint32
|
type COREWEBVIEW2_WEB_RESOURCE_CONTEXT uint32
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"golang.org/x/sys/windows"
|
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
|
"golang.org/x/sys/windows"
|
||||||
)
|
)
|
||||||
|
|
||||||
type _ICoreWebView2AcceleratorKeyPressedEventArgsVtbl struct {
|
type _ICoreWebView2AcceleratorKeyPressedEventArgsVtbl struct {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
type _ICoreWebView2AcceleratorKeyPressedEventHandlerVtbl struct {
|
type _ICoreWebView2AcceleratorKeyPressedEventHandlerVtbl struct {
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/wailsapp/wails/v2/internal/frontend/desktop/windows/go-webview2/internal/w32"
|
|
||||||
"golang.org/x/sys/windows"
|
|
||||||
"math"
|
"math"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
|
"github.com/wailsapp/wails/v2/internal/frontend/desktop/windows/go-webview2/internal/w32"
|
||||||
|
"golang.org/x/sys/windows"
|
||||||
)
|
)
|
||||||
|
|
||||||
type _ICoreWebView2ControllerVtbl struct {
|
type _ICoreWebView2ControllerVtbl struct {
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"golang.org/x/sys/windows"
|
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
|
"golang.org/x/sys/windows"
|
||||||
)
|
)
|
||||||
|
|
||||||
type _ICoreWebView2Controller2Vtbl struct {
|
type _ICoreWebView2Controller2Vtbl struct {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
type _ICoreWebView2CreateCoreWebView2ControllerCompletedHandlerVtbl struct {
|
type _ICoreWebView2CreateCoreWebView2ControllerCompletedHandlerVtbl struct {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
type _ICoreWebView2NavigationCompletedEventArgsVtbl struct {
|
type _ICoreWebView2NavigationCompletedEventArgsVtbl struct {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
type _ICoreWebView2NavigationCompletedEventHandlerVtbl struct {
|
type _ICoreWebView2NavigationCompletedEventHandlerVtbl struct {
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"golang.org/x/sys/windows"
|
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
|
"golang.org/x/sys/windows"
|
||||||
)
|
)
|
||||||
|
|
||||||
type _ICoreWebView2SettingsVtbl struct {
|
type _ICoreWebView2SettingsVtbl struct {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"golang.org/x/sys/windows"
|
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
|
"golang.org/x/sys/windows"
|
||||||
)
|
)
|
||||||
|
|
||||||
type _ICoreWebView2WebResourceRequestedEventArgsVtbl struct {
|
type _ICoreWebView2WebResourceRequestedEventArgsVtbl struct {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
type _ICoreWebView2WebResourceRequestedEventHandlerVtbl struct {
|
type _ICoreWebView2WebResourceRequestedEventHandlerVtbl struct {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
import "unsafe"
|
import "unsafe"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
type iCoreWebView2_2Vtbl struct {
|
type iCoreWebView2_2Vtbl struct {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//go:build exp_gowebview2loader
|
//go:build windows && exp_gowebview2loader
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//go:build !exp_gowebview2loader
|
//go:build windows && !exp_gowebview2loader
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package edge
|
package edge
|
||||||
|
|
||||||
// This code has been adapted from: https://github.com/go-ole/go-ole
|
// This code has been adapted from: https://github.com/go-ole/go-ole
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//go:build exp_gowebview2loader
|
//go:build windows && exp_gowebview2loader
|
||||||
|
|
||||||
package webviewloader
|
package webviewloader
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//go:build exp_gowebview2loader
|
//go:build windows && exp_gowebview2loader
|
||||||
|
|
||||||
package webviewloader
|
package webviewloader
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package webviewloader
|
package webviewloader
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//go:build exp_gowebview2loader
|
//go:build windows && exp_gowebview2loader
|
||||||
|
|
||||||
package webviewloader
|
package webviewloader
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//go:build !exp_gowebview2loader
|
//go:build windows && !exp_gowebview2loader
|
||||||
|
|
||||||
package webviewloader
|
package webviewloader
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package webviewloader
|
package webviewloader
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package windows
|
package windows
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package win32
|
package win32
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"golang.org/x/sys/windows/registry"
|
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
|
"golang.org/x/sys/windows/registry"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DWMWINDOWATTRIBUTE int32
|
type DWMWINDOWATTRIBUTE int32
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package winc
|
package winc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
* Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2012 The W32 Authors. All Rights Reserved.
|
* Copyright (C) 2010-2012 The W32 Authors. All Rights Reserved.
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2012 The W32 Authors. All Rights Reserved.
|
* Copyright (C) 2010-2012 The W32 Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package w32
|
package w32
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2012 The W32 Authors. All Rights Reserved.
|
* Copyright (C) 2010-2012 The W32 Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package w32
|
package w32
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
package w32
|
package w32
|
||||||
|
|
||||||
import "syscall"
|
import "syscall"
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2012 The W32 Authors. All Rights Reserved.
|
* Copyright (C) 2010-2012 The W32 Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package w32
|
package w32
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2012 The W32 Authors. All Rights Reserved.
|
* Copyright (C) 2010-2012 The W32 Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package w32
|
package w32
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
* Copyright (C) 2019 The Winc Authors. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2012 The W32 Authors. All Rights Reserved.
|
* Copyright (C) 2010-2012 The W32 Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package w32
|
package w32
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
|
//go:build windows
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 Tad Vizbaras. All Rights Reserved.
|
* Copyright (C) 2019 Tad Vizbaras. All Rights Reserved.
|
||||||
* Copyright (C) 2010-2012 The W32 Authors. All Rights Reserved.
|
* Copyright (C) 2010-2012 The W32 Authors. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package w32
|
package w32
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user