From f5056e7232517f63a7742b726aab5ced7f27a6cb Mon Sep 17 00:00:00 2001 From: Travis McLane Date: Fri, 7 May 2021 16:05:15 -0400 Subject: [PATCH] hack: enable builds on non-Windows --- v2/internal/ffenestri/windows/x64/x64.go | 2 ++ v2/internal/ffenestri/windows/x64/x64_stub.go | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 v2/internal/ffenestri/windows/x64/x64_stub.go diff --git a/v2/internal/ffenestri/windows/x64/x64.go b/v2/internal/ffenestri/windows/x64/x64.go index 7fe5990b..6b4c5f26 100644 --- a/v2/internal/ffenestri/windows/x64/x64.go +++ b/v2/internal/ffenestri/windows/x64/x64.go @@ -1,3 +1,5 @@ +// +build windows + package x64 import _ "embed" diff --git a/v2/internal/ffenestri/windows/x64/x64_stub.go b/v2/internal/ffenestri/windows/x64/x64_stub.go new file mode 100644 index 00000000..ec441390 --- /dev/null +++ b/v2/internal/ffenestri/windows/x64/x64_stub.go @@ -0,0 +1,9 @@ +// +build !windows + +// This is a stub to define the following even though they don't exist +// on non-Windows systems. Note: This is not the right way to handle this. +package x64 + +var WebView2 []byte + +var WebView2Loader []byte