commit a39fa74ab3a5c7f9cd3a56cbf4b37ed35a2dde54 Author: Star Date: Fri Oct 25 14:22:54 2024 +0800 1 diff --git a/apigo.yml b/apigo.yml new file mode 100644 index 0000000..aeca2fd --- /dev/null +++ b/apigo.yml @@ -0,0 +1,30 @@ +name: +version: v0.0.1 +main: main.js +target: + darwin: amd64 arm64 + linux: amd64 arm64 + windows: amd64 +module: + apigo.cc/gojs/console: latest + apigo.cc/gojs/util: latest + apigo.cc/gojs/log: latest + apigo.cc/gojs/file: latest + apigo.cc/gojs/http: latest + apigo.cc/gojs/db: latest + apigo.cc/gojs/client: latest +modulealias: +extraimport: +cachefile: +sskey: +cgoenable: false +buildfrom: apigocc/gobuild +buildenv: + linux: + darwin: + windows: + - CGO_CPPFLAGS="-I%cd%include" +buildldflags: + linux: + darwin: + windows: diff --git a/include/EventToken.h b/include/EventToken.h new file mode 100644 index 0000000..3099e66 --- /dev/null +++ b/include/EventToken.h @@ -0,0 +1,25 @@ +#ifndef WEBVIEW_COMPAT_EVENTTOKEN_H +#define WEBVIEW_COMPAT_EVENTTOKEN_H +#ifdef _WIN32 + +// This compatibility header provides types used by MS WebView2. This header can +// be used as an alternative to the "EventToken.h" header normally provided by +// the Windows SDK. Depending on the MinGW distribution, this header may not be +// present, or it may be present with the name "eventtoken.h". The letter casing +// matters when cross-compiling on a system with case-sensitive file names. + +#ifndef __eventtoken_h__ + +#ifdef __cplusplus +#include +#else +#include +#endif + +typedef struct EventRegistrationToken { + int64_t value; +} EventRegistrationToken; +#endif // __eventtoken_h__ + +#endif // _WIN32 +#endif // WEBVIEW_COMPAT_EVENTTOKEN_H diff --git a/main.js b/main.js new file mode 100644 index 0000000..7801f44 --- /dev/null +++ b/main.js @@ -0,0 +1,10 @@ +import client from 'client' + +function main() { + client.open({ + title: 'Hello', + url: 'www/index.html', + width: 1024, + height: 720, + }) +} diff --git a/www/index.html b/www/index.html new file mode 100644 index 0000000..624b238 --- /dev/null +++ b/www/index.html @@ -0,0 +1,17 @@ + + + + + + + Hello World + + + + +

+ Hello World +

+ + + \ No newline at end of file