@@ -263,7 +263,7 @@ Windows allows you to use multiple file filters in dialog boxes. Each FileFilter
#### Linux
-Linux allows you to use multiple file filters in dialog boxes. Each FileFilter will show up as a separate entry in the dialog:
+Linuxでは、ダイアログボックスで複数のファイルフィルタを使用できます。 それぞれのFileFiltersは、ダイアログ上で個別のエントリーとして表示されます:
```mdx-code-block
@@ -280,9 +280,9 @@ Linux allows you to use multiple file filters in dialog boxes. Each FileFilter w
#### Mac
-Mac dialogs only have the concept of a single set of patterns to filter files. If multiple FileFilters are provided, Wails will use all the Patterns defined.
+Macのダイアログでは、ファイルをフィルタするためのパターンセットは1つしか持たせることができません。 もし複数のFileFiltersを定義した場合、Wailsはそれらすべてのパターンを使用します。
-Example:
+例:
```go
selection, err := runtime.OpenFileDialog(b.ctx, runtime.OpenDialogOptions{
@@ -299,4 +299,4 @@ Example:
})
```
-This will result in the Open File dialog using `*.png,*.jpg,*.mov,*.mp4` as a filter.
+このとき、ファイル選択ダイアログを開くと、`*.png,*.jpg,*.mov,*.mp4`がフィルタとして使用されます。
diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/reference/runtime/events.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/reference/runtime/events.mdx
index 30803b2ab..924456a19 100644
--- a/website/i18n/ja/docusaurus-plugin-content-docs/current/reference/runtime/events.mdx
+++ b/website/i18n/ja/docusaurus-plugin-content-docs/current/reference/runtime/events.mdx
@@ -2,9 +2,9 @@
sidebar_position: 2
---
-# Events
+# イベント
-The Wails runtime provides a unified events system, where events can be emitted or received by either Go or JavaScript. 必要に応じて、イベント発行時にデータを渡すことも可能です。 イベントリスナーは、そのデータをローカルデータ型で受け取ります。
+Wailsでは、GoまたはJavaScriptによって発行および受信できる、一元化されたイベントシステムが用意されています。 必要に応じて、イベント発行時にデータを渡すことも可能です。 イベントリスナーは、そのデータをローカルデータ型で受け取ります。
### EventsOn
diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/reference/runtime/intro.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/reference/runtime/intro.mdx
index a429bc1e0..652120d66 100644
--- a/website/i18n/ja/docusaurus-plugin-content-docs/current/reference/runtime/intro.mdx
+++ b/website/i18n/ja/docusaurus-plugin-content-docs/current/reference/runtime/intro.mdx
@@ -2,13 +2,13 @@
sidebar_position: 1
---
-# Introduction
+# イントロダクション
-ランタイムは、アプリケーションにユーティリティメソッドを提供するライブラリです。 There is both a Go and JavaScript runtime and the aim is to try and keep them at parity where possible.
+ランタイムは、アプリケーションにユーティリティメソッドを提供するライブラリです。 GoとJavaScriptの両方にランタイムがあり、どちらにもほぼ同じメソッドが提供されています。
ユーティリティメソッドには次のようなものがあります:
-- [Window](window.mdx)
+- [ウィンドウ](window.mdx)
- [メニュー](menu.mdx)
- [ダイアログ](dialog.mdx)
- [イベント](events.mdx)
@@ -23,7 +23,7 @@ Goのランタイムは、`github.com/wailsapp/wails/v2/pkg/runtime`をインポ
:::
-The JavaScript library is available to the frontend via the `window.runtime` map. There is a runtime package generated when using `dev` mode that provides TypeScript declarations for the runtime. これらは、フロントエンドディレクトリの`wailsjs`ディレクトリに配置しておく必要があります。
+JavaScriptのランタイムは、`window.runtime`マップを介してフロントエンド上で利用できます。 `dev`モードでは、TypeScript型定義を提供するランタイムパッケージが生成されます。 これらは、フロントエンドディレクトリの`wailsjs`ディレクトリに配置しておく必要があります。
### 非表示
diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/reference/runtime/log.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/reference/runtime/log.mdx
index 838659794..924f6257a 100644
--- a/website/i18n/ja/docusaurus-plugin-content-docs/current/reference/runtime/log.mdx
+++ b/website/i18n/ja/docusaurus-plugin-content-docs/current/reference/runtime/log.mdx
@@ -2,16 +2,16 @@
sidebar_position: 3
---
-# Log
+# ログ
-The Wails runtime provides a logging mechanism that may be called from Go or JavaScript. 一般的なロガーと同じように、ログにはいくつかのログレベルがあります:
+Wailsでは、GoまたはJavaScriptから呼び出すことのできるロギングメカニズムを用意しています。 一般的なロガーと同じように、ログにはいくつかのログレベルがあります:
-- トレース
-- デバッグ
-- 情報
-- 警告
+- Trace
+- Debug
+- Info
+- Warning
- Error
-- 致命的
+- Fatal
ロガーは、設定されている出力ログレベル以上のログメッセージを出力します。 例えば、出力ログレベルを`Debug`に設定した場合、`Trace`以外のすべてのレベルのメッセージが出力されます。
@@ -101,15 +101,15 @@ Go: `LogFatalf(ctx context.Context, format string, args ...interface{})`
### LogSetLogLevel
-出力ログレベルを設定します。 In JavaScript, the number relates to the following log levels:
+出力ログレベルを設定します。 JavaScriptでは、数値が次のログレベルに対応しています:
-| 値 | ログレベル |
-| - | ----- |
-| 1 | トレース |
-| 2 | デバッグ |
-| 3 | 情報 |
-| 4 | 警告 |
-| 5 | Error |
+| 値 | ログレベル |
+| - | ------- |
+| 1 | Trace |
+| 2 | Debug |
+| 3 | Info |
+| 4 | Warning |
+| 5 | Error |
Go: `LogSetLogLevel(ctx context.Context, level logger.LogLevel)`
JS: `LogSetLogLevel(level: number)`
diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-v2.0.0-rc.1.json b/website/i18n/ja/docusaurus-plugin-content-docs/version-v2.0.0-rc.1.json
index 808516c41..1114bafc9 100644
--- a/website/i18n/ja/docusaurus-plugin-content-docs/version-v2.0.0-rc.1.json
+++ b/website/i18n/ja/docusaurus-plugin-content-docs/version-v2.0.0-rc.1.json
@@ -4,11 +4,11 @@
"description": "The label for version v2.0.0-rc.1"
},
"sidebar.docs.category.Getting Started": {
- "message": "Getting Started",
+ "message": "はじめよう",
"description": "The label for category Getting Started in sidebar docs"
},
"sidebar.docs.category.Reference": {
- "message": "Reference",
+ "message": "リファレンス",
"description": "The label for category Reference in sidebar docs"
},
"sidebar.docs.category.Runtime": {
@@ -16,23 +16,23 @@
"description": "The label for category Runtime in sidebar docs"
},
"sidebar.docs.category.Community": {
- "message": "Community",
+ "message": "コミュニティ",
"description": "The label for category Community in sidebar docs"
},
"sidebar.docs.category.Showcase": {
- "message": "Showcase",
+ "message": "事例紹介",
"description": "The label for category Showcase in sidebar docs"
},
"sidebar.docs.category.Guides": {
- "message": "Guides",
+ "message": "ガイド",
"description": "The label for category Guides in sidebar docs"
},
"sidebar.docs.category.Tutorials": {
- "message": "Tutorials",
+ "message": "チュートリアル",
"description": "The label for category Tutorials in sidebar docs"
},
"sidebar.docs.link.Contributing": {
- "message": "Contributing",
+ "message": "コントリビューション",
"description": "The label for link Contributing in sidebar docs, linking to /community-guide#ways-of-contributing"
}
}
diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-v2.0.0.json b/website/i18n/ja/docusaurus-plugin-content-docs/version-v2.0.0.json
index 35a78ae58..8e4f1d087 100644
--- a/website/i18n/ja/docusaurus-plugin-content-docs/version-v2.0.0.json
+++ b/website/i18n/ja/docusaurus-plugin-content-docs/version-v2.0.0.json
@@ -4,11 +4,11 @@
"description": "The label for version v2.0.0"
},
"sidebar.docs.category.Getting Started": {
- "message": "Getting Started",
+ "message": "はじめよう",
"description": "The label for category Getting Started in sidebar docs"
},
"sidebar.docs.category.Reference": {
- "message": "Reference",
+ "message": "リファレンス",
"description": "The label for category Reference in sidebar docs"
},
"sidebar.docs.category.Runtime": {
@@ -16,23 +16,23 @@
"description": "The label for category Runtime in sidebar docs"
},
"sidebar.docs.category.Community": {
- "message": "Community",
+ "message": "コミュニティ",
"description": "The label for category Community in sidebar docs"
},
"sidebar.docs.category.Showcase": {
- "message": "Showcase",
+ "message": "事例紹介",
"description": "The label for category Showcase in sidebar docs"
},
"sidebar.docs.category.Guides": {
- "message": "Guides",
+ "message": "ガイド",
"description": "The label for category Guides in sidebar docs"
},
"sidebar.docs.category.Tutorials": {
- "message": "Tutorials",
+ "message": "チュートリアル",
"description": "The label for category Tutorials in sidebar docs"
},
"sidebar.docs.link.Contributing": {
- "message": "Contributing",
+ "message": "コントリビューション",
"description": "The label for link Contributing in sidebar docs, linking to /community-guide#ways-of-contributing"
}
}
diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-v2.1.0.json b/website/i18n/ja/docusaurus-plugin-content-docs/version-v2.1.0.json
index 2c28d668d..bd54c8596 100644
--- a/website/i18n/ja/docusaurus-plugin-content-docs/version-v2.1.0.json
+++ b/website/i18n/ja/docusaurus-plugin-content-docs/version-v2.1.0.json
@@ -4,11 +4,11 @@
"description": "The label for version v2.1.0"
},
"sidebar.docs.category.Getting Started": {
- "message": "Getting Started",
+ "message": "はじめよう",
"description": "The label for category Getting Started in sidebar docs"
},
"sidebar.docs.category.Reference": {
- "message": "Reference",
+ "message": "リファレンス",
"description": "The label for category Reference in sidebar docs"
},
"sidebar.docs.category.Runtime": {
@@ -16,23 +16,23 @@
"description": "The label for category Runtime in sidebar docs"
},
"sidebar.docs.category.Community": {
- "message": "Community",
+ "message": "コミュニティ",
"description": "The label for category Community in sidebar docs"
},
"sidebar.docs.category.Showcase": {
- "message": "Showcase",
+ "message": "事例紹介",
"description": "The label for category Showcase in sidebar docs"
},
"sidebar.docs.category.Guides": {
- "message": "Guides",
+ "message": "ガイド",
"description": "The label for category Guides in sidebar docs"
},
"sidebar.docs.category.Tutorials": {
- "message": "Tutorials",
+ "message": "チュートリアル",
"description": "The label for category Tutorials in sidebar docs"
},
"sidebar.docs.link.Contributing": {
- "message": "Contributing",
+ "message": "コントリビューション",
"description": "The label for link Contributing in sidebar docs, linking to /community-guide#ways-of-contributing"
}
}
diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-v2.2.0.json b/website/i18n/ja/docusaurus-plugin-content-docs/version-v2.2.0.json
index 1074035c4..4161c3d80 100644
--- a/website/i18n/ja/docusaurus-plugin-content-docs/version-v2.2.0.json
+++ b/website/i18n/ja/docusaurus-plugin-content-docs/version-v2.2.0.json
@@ -4,35 +4,35 @@
"description": "The label for version v2.2.0"
},
"sidebar.docs.category.Getting Started": {
- "message": "Getting Started",
+ "message": "はじめよう",
"description": "The label for category Getting Started in sidebar docs"
},
"sidebar.docs.category.Reference": {
- "message": "Reference",
+ "message": "リファレンス",
"description": "The label for category Reference in sidebar docs"
},
"sidebar.docs.category.Runtime": {
- "message": "Runtime",
+ "message": "ランタイム",
"description": "The label for category Runtime in sidebar docs"
},
"sidebar.docs.category.Community": {
- "message": "Community",
+ "message": "コミュニティ",
"description": "The label for category Community in sidebar docs"
},
"sidebar.docs.category.Showcase": {
- "message": "Showcase",
+ "message": "事例紹介",
"description": "The label for category Showcase in sidebar docs"
},
"sidebar.docs.category.Guides": {
- "message": "Guides",
+ "message": "ガイド",
"description": "The label for category Guides in sidebar docs"
},
"sidebar.docs.category.Tutorials": {
- "message": "Tutorials",
+ "message": "チュートリアル",
"description": "The label for category Tutorials in sidebar docs"
},
"sidebar.docs.link.Contributing": {
- "message": "Contributing",
+ "message": "コントリビューション",
"description": "The label for link Contributing in sidebar docs, linking to /community-guide#ways-of-contributing"
}
}
diff --git a/website/i18n/ja/docusaurus-plugin-content-pages/changelog.mdx b/website/i18n/ja/docusaurus-plugin-content-pages/changelog.mdx
index 99fce57b0..6e58125a2 100644
--- a/website/i18n/ja/docusaurus-plugin-content-pages/changelog.mdx
+++ b/website/i18n/ja/docusaurus-plugin-content-pages/changelog.mdx
@@ -19,11 +19,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- The [AssetServer](/docs/reference/options#assetserver) now supports handling range-requests if the [Assets](/docs/reference/options/#assets-1) `fs.FS` provides an `io.ReadSeeker`. Added by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2091)
- Add new property for the `wails.json` config file - `bindings`. More information on the new property can be found in the updated [schema](/schemas/config.v2.json). Properties `prefix` and `suffix` allow you to control the generated TypeScript entity name in the `model.ts` file. Added by @OlegGulevskyy in [PR](https://github.com/wailsapp/wails/pull/2101)
- The `WindowSetAlwaysOnTop` method is now exposed in the JS runtime. Fixed by @gotid in [PR](https://github.com/wailsapp/wails/pull/2128)
+- The [AssetServer](/docs/reference/options#assetserver) now supports serving the index.html file when requesting a directory. Added by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2110)
+- Added support for WebKit2GTK 2.36+ on Linux. This brings additional features for the [AssetServer](/docs/reference/options#assetserver), like support for HTTP methods and Headers. The app must be compiled with the Go build tag `webkit2_36` to activate support for this features. This also bumps the minimum requirement of WebKit2GTK to 2.36 for your app. Fixed by @stffabi in this [PR](https://github.com/wailsapp/wails/pull/2151)
### Fixed
- The `noreload` flag in wails dev wasn't applied. Fixed by @stffabi in this [PR](https://github.com/wailsapp/wails/pull/2081)
- `build/bin` folder was duplicating itself on each reload in `wails dev` mode. Fixed by @OlegGulevskyy in this [PR](https://github.com/wailsapp/wails/pull/2103)
- Prevent a thin white line at the bottom of a frameless window on Windows. Fixed by @stffabi in this [PR](https://github.com/wailsapp/wails/pull/2111)
+- Better signal handling for Linux. Fixed by @leaanthony in this [PR](https://github.com/wailsapp/wails/pull/2152)
+
+### Changed
+- Improve error message if no `index.html` could be found in the assets and validate assetserver options. Changed by @stffabi in this [PR](https://github.com/wailsapp/wails/pull/2110)
## v2.2.0 - 2022-11-09
diff --git a/website/i18n/ja/docusaurus-plugin-content-pages/markdown-page.md b/website/i18n/ja/docusaurus-plugin-content-pages/markdown-page.md
index 01a7a772c..29db5a536 100644
--- a/website/i18n/ja/docusaurus-plugin-content-pages/markdown-page.md
+++ b/website/i18n/ja/docusaurus-plugin-content-pages/markdown-page.md
@@ -1,7 +1,7 @@
---
-title: Markdown page example
+title: Markdownページの例
---
-# Markdown page example
+# Markdownページの例
シンプルな単一ページを作成する場合、Reactは必要ありません。
diff --git a/website/i18n/ja/docusaurus-theme-classic/footer.json b/website/i18n/ja/docusaurus-theme-classic/footer.json
index 820b56807..e0e7422a2 100644
--- a/website/i18n/ja/docusaurus-theme-classic/footer.json
+++ b/website/i18n/ja/docusaurus-theme-classic/footer.json
@@ -1,6 +1,6 @@
{
"link.title.Docs": {
- "message": "Docs",
+ "message": "ドキュメント",
"description": "The title of the footer links column with title=Docs in the footer"
},
"link.title.Community": {
@@ -8,7 +8,7 @@
"description": "The title of the footer links column with title=Community in the footer"
},
"link.title.More": {
- "message": "More",
+ "message": "さらに知る",
"description": "The title of the footer links column with title=More in the footer"
},
"link.item.label.Introduction": {
@@ -24,7 +24,7 @@
"description": "The label of footer link with label=Changelog linking to /changelog"
},
"link.item.label.Github": {
- "message": "Github",
+ "message": "GitHub",
"description": "The label of footer link with label=Github linking to https://github.com/wailsapp/wails"
},
"link.item.label.Twitter": {
@@ -36,11 +36,11 @@
"description": "The label of footer link with label=Slack linking to https://gophers.slack.com/messages/CJ4P9F7MZ/"
},
"link.item.label.Slack invite": {
- "message": "Slack invite",
+ "message": "Slackへの招待",
"description": "The label of footer link with label=Slack invite linking to https://invite.slack.golangbridge.org/"
},
"link.item.label.Blog": {
- "message": "Blog",
+ "message": "ブログ",
"description": "The label of footer link with label=Blog linking to /blog"
},
"copyright": {
diff --git a/website/i18n/ja/docusaurus-theme-classic/navbar.json b/website/i18n/ja/docusaurus-theme-classic/navbar.json
index 91c06b959..6f738ece3 100644
--- a/website/i18n/ja/docusaurus-theme-classic/navbar.json
+++ b/website/i18n/ja/docusaurus-theme-classic/navbar.json
@@ -1,6 +1,6 @@
{
"item.label.Sponsor": {
- "message": "Sponsor ❤",
+ "message": "スポンサー ❤",
"description": "Navbar item with label Sponsor"
},
"item.label.Docs": {
diff --git a/website/i18n/ko/docusaurus-plugin-content-docs/current/guides/mac-appstore.mdx b/website/i18n/ko/docusaurus-plugin-content-docs/current/guides/mac-appstore.mdx
new file mode 100644
index 000000000..62233b57c
--- /dev/null
+++ b/website/i18n/ko/docusaurus-plugin-content-docs/current/guides/mac-appstore.mdx
@@ -0,0 +1,83 @@
+# Mac App Store Guide
+
+This page gives a brief overview of how to submit your Wails App to the Mac App Store.
+
+## Prerequisites
+
+- You will need to have an Apple Developer account. Please find more information on the [Apple Developer Program](https://developer.apple.com/support/compare-memberships/) site
+- You will need to have your Certificates, Identifiers, and App created on the developer portal. More on this below
+- Xcode command line tools will need to be installed on your local machine
+
+#### Create Certificates and Identifiers
+
+1. Go to your [Apple Developer Account](https://developer.apple.com/account/)
+2. Under `Certificates, Identifiers & Profiles`, click `Identifiers` and Register a New App ID. Use the format (com.example.app)
+3. Under the same page click `Certificates` and generate new Certificates for Mac App Store Distribution. Download them and import the certificates into Keychain on your local machine.
+
+#### Create App Submission
+
+1. Go to the [App Store Connect Site](https://appstoreconnect.apple.com/apps)
+2. Register a new application and link the bundle ID that you created in the previous step
+3. Populate your app with the correct screen shots, descriptions, etc. as required by Apple
+4. Create a new version of your app
+
+
+## Mac App Store Process
+
+#### Enable Apple's App Sandbox
+
+Apps submitted to the Mac App Store must run under Apple's [App Sandbox](https://developer.apple.com/app-sandboxing/). You must create an `entitlements.plist` file for this to work. The recommendation is to create this file under this path `{PROJECT_DIR}/build/darwin/entitlements.plist`.
+
+**Example Entitlements File**
+
+This is an example entitlements file from the [RiftShare](https://github.com/achhabra2/riftshare) app. For reference please put in the entitlements your app requires. Refer to [this site](https://developer.apple.com/documentation/bundleresources/entitlements) for more information.
+
+```xml title="entitlements.plist"
+
+
+
+
+ com.apple.security.app-sandbox
+
+ com.apple.security.network.client
+
+ com.apple.security.network.server
+
+ com.apple.security.files.user-selected.read-write
+
+ com.apple.security.files.downloads.read-write
+
+
+
+```
+
+#### Build and Sign the App Package
+
+The following is an example script for building and signing your app for Mac App Store submission. It assumes you are running the script from your root project directory.
+
+Note the certificates for signing the app and signing the installer are different. Please make sure both are imported into Keychain. Find the strings in Keychain and insert them below. Populate your certificate names, and app name below. Running the following script will generate a signed `app.pkg` file in the root directory of your app.
+
+```bash title="macappstore-build.sh"
+#!/bin/bash
+
+APP_CERTIFICATE="3rd Party Mac Developer Application: YOUR NAME (CODE)"
+PKG_CERTIFICATE="3rd Party Mac Developer Installer: YOUR NAME (CODE)"
+APP_NAME="YourApp"
+
+wails build -platform darwin/universal -clean
+
+codesign --timestamp --options=runtime -s "$APP_CERTIFICATE" -v --entitlements ./build/darwin/entitlements.plist ./build/bin/$APP_NAME.app
+
+productbuild --sign "$PKG_CERTIFICATE" --component ./build/bin/$APP_NAME.app /Applications ./$APP_NAME.pkg
+```
+
+#### Upload App Bundle
+
+You will need to upload the generated package file and associate it to your Application before you will be able to submit it for review.
+
+1. Download the [Transporter App](https://apps.apple.com/us/app/transporter/id1450874784) from the Mac App Store
+2. Open it and sign in with your Apple ID
+3. Click the + sign and select the `APP_NAME.pkg` file that you generated in the previous step. Upload it
+4. Go back to the [App Store Connect](https://appstoreconnect.apple.com/apps) site and navigate back into your app submission. Select the version that you are ready to make available on the App Store. Under `Build` select the package that you uploaded via Transporter.
+
+That's it! You can now use the site to submit your App for review. After a few business days if all goes well you should see your App live on the Mac App Store.
\ No newline at end of file
diff --git a/website/i18n/ko/docusaurus-plugin-content-docs/current/reference/options.mdx b/website/i18n/ko/docusaurus-plugin-content-docs/current/reference/options.mdx
index a42d44424..5f8fde991 100644
--- a/website/i18n/ko/docusaurus-plugin-content-docs/current/reference/options.mdx
+++ b/website/i18n/ko/docusaurus-plugin-content-docs/current/reference/options.mdx
@@ -223,23 +223,22 @@ This defines AssetServer specific options. It allows to customize the AssetServe
Not all features of an `http.Request` are currently supported, please see the following feature matrix:
-| Feature | Win | Mac | Lin |
-| ----------------------- | --- | --- | --- |
-| GET | ✅ | ✅ | ✅ |
-| POST | ✅ | ✅ | ❌ |
-| PUT | ✅ | ✅ | ❌ |
-| PATCH | ✅ | ✅ | ❌ |
-| DELETE | ✅ | ✅ | ❌ |
-| Request Headers | ✅ | ✅ | ❌ |
-| Request Body | ✅ | ✅ | ❌ |
-| Request Body Streaming | ❌ | ❌ | ❌ |
-| Response StatusCodes | ✅ | ✅ | ❌ |
-| Response Headers | ✅ | ✅ | ❌ |
-| Response Body | ✅ | ✅ | ✅ |
-| Response Body Streaming | ❌ | ❌ | ✅ |
-| WebSockets | ❌ | ❌ | ❌ |
-
-NOTE: Linux is currently very limited due to targeting a WebKit2GTK Version < 2.36.0. In the future some features will be supported by the introduction of WebKit2GTK 2.36.0+ support.
+| Feature | Win | Mac | Lin |
+| ----------------------- | --- | --- | ------ |
+| GET | ✅ | ✅ | ✅ |
+| POST | ✅ | ✅ | ✅ [^1] |
+| PUT | ✅ | ✅ | ✅ [^1] |
+| PATCH | ✅ | ✅ | ✅ [^1] |
+| DELETE | ✅ | ✅ | ✅ [^1] |
+| Request Headers | ✅ | ✅ | ✅ [^1] |
+| Request Body | ✅ | ✅ | ❌ |
+| Request Body Streaming | ❌ | ❌ | ❌ |
+| Response StatusCodes | ✅ | ✅ | ✅ [^1] |
+| Response Headers | ✅ | ✅ | ✅ [^1] |
+| Response Body | ✅ | ✅ | ✅ |
+| Response Body Streaming | ❌ | ❌ | ✅ |
+| WebSockets | ❌ | ❌ | ❌ |
+| HTTP Redirects 30x | ✅ | ❌ | ❌ |
Name: AssetServer
Type: `*assetserver.Options`
@@ -734,3 +733,5 @@ Name: Debug
Type: `options.Debug`
Setting this to `true` will open the WebInspector on startup of the application.
Name: OpenInspectorOnStartup
Type: `bool`
+
+[^1]: This requires WebKit2GTK 2.36+ support and your app needs to be build with the build tag `webkit2_36` to activate support for this feature. This also bumps the minimum requirement of WebKit2GTK to 2.36 for your app.
diff --git a/website/i18n/ko/docusaurus-plugin-content-pages/changelog.mdx b/website/i18n/ko/docusaurus-plugin-content-pages/changelog.mdx
index a1af11ddd..3b6a5eda4 100644
--- a/website/i18n/ko/docusaurus-plugin-content-pages/changelog.mdx
+++ b/website/i18n/ko/docusaurus-plugin-content-pages/changelog.mdx
@@ -19,11 +19,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- The [AssetServer](/docs/reference/options#assetserver) now supports handling range-requests if the [Assets](/docs/reference/options/#assets-1) `fs.FS` provides an `io.ReadSeeker`. Added by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2091)
- Add new property for the `wails.json` config file - `bindings`. More information on the new property can be found in the updated [schema](/schemas/config.v2.json). Properties `prefix` and `suffix` allow you to control the generated TypeScript entity name in the `model.ts` file. Added by @OlegGulevskyy in [PR](https://github.com/wailsapp/wails/pull/2101)
- The `WindowSetAlwaysOnTop` method is now exposed in the JS runtime. Fixed by @gotid in [PR](https://github.com/wailsapp/wails/pull/2128)
+- The [AssetServer](/docs/reference/options#assetserver) now supports serving the index.html file when requesting a directory. Added by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2110)
+- Added support for WebKit2GTK 2.36+ on Linux. This brings additional features for the [AssetServer](/docs/reference/options#assetserver), like support for HTTP methods and Headers. The app must be compiled with the Go build tag `webkit2_36` to activate support for this features. This also bumps the minimum requirement of WebKit2GTK to 2.36 for your app. Fixed by @stffabi in this [PR](https://github.com/wailsapp/wails/pull/2151)
### Fixed
- The `noreload` flag in wails dev wasn't applied. Fixed by @stffabi in this [PR](https://github.com/wailsapp/wails/pull/2081)
- `build/bin` folder was duplicating itself on each reload in `wails dev` mode. Fixed by @OlegGulevskyy in this [PR](https://github.com/wailsapp/wails/pull/2103)
- Prevent a thin white line at the bottom of a frameless window on Windows. Fixed by @stffabi in this [PR](https://github.com/wailsapp/wails/pull/2111)
+- Better signal handling for Linux. Fixed by @leaanthony in this [PR](https://github.com/wailsapp/wails/pull/2152)
+
+### Changed
+- Improve error message if no `index.html` could be found in the assets and validate assetserver options. Changed by @stffabi in this [PR](https://github.com/wailsapp/wails/pull/2110)
## v2.2.0 - 2022-11-09
diff --git a/website/i18n/pt/docusaurus-plugin-content-docs/current/guides/mac-appstore.mdx b/website/i18n/pt/docusaurus-plugin-content-docs/current/guides/mac-appstore.mdx
new file mode 100644
index 000000000..62233b57c
--- /dev/null
+++ b/website/i18n/pt/docusaurus-plugin-content-docs/current/guides/mac-appstore.mdx
@@ -0,0 +1,83 @@
+# Mac App Store Guide
+
+This page gives a brief overview of how to submit your Wails App to the Mac App Store.
+
+## Prerequisites
+
+- You will need to have an Apple Developer account. Please find more information on the [Apple Developer Program](https://developer.apple.com/support/compare-memberships/) site
+- You will need to have your Certificates, Identifiers, and App created on the developer portal. More on this below
+- Xcode command line tools will need to be installed on your local machine
+
+#### Create Certificates and Identifiers
+
+1. Go to your [Apple Developer Account](https://developer.apple.com/account/)
+2. Under `Certificates, Identifiers & Profiles`, click `Identifiers` and Register a New App ID. Use the format (com.example.app)
+3. Under the same page click `Certificates` and generate new Certificates for Mac App Store Distribution. Download them and import the certificates into Keychain on your local machine.
+
+#### Create App Submission
+
+1. Go to the [App Store Connect Site](https://appstoreconnect.apple.com/apps)
+2. Register a new application and link the bundle ID that you created in the previous step
+3. Populate your app with the correct screen shots, descriptions, etc. as required by Apple
+4. Create a new version of your app
+
+
+## Mac App Store Process
+
+#### Enable Apple's App Sandbox
+
+Apps submitted to the Mac App Store must run under Apple's [App Sandbox](https://developer.apple.com/app-sandboxing/). You must create an `entitlements.plist` file for this to work. The recommendation is to create this file under this path `{PROJECT_DIR}/build/darwin/entitlements.plist`.
+
+**Example Entitlements File**
+
+This is an example entitlements file from the [RiftShare](https://github.com/achhabra2/riftshare) app. For reference please put in the entitlements your app requires. Refer to [this site](https://developer.apple.com/documentation/bundleresources/entitlements) for more information.
+
+```xml title="entitlements.plist"
+
+
+
+
+ com.apple.security.app-sandbox
+
+ com.apple.security.network.client
+
+ com.apple.security.network.server
+
+ com.apple.security.files.user-selected.read-write
+
+ com.apple.security.files.downloads.read-write
+
+
+
+```
+
+#### Build and Sign the App Package
+
+The following is an example script for building and signing your app for Mac App Store submission. It assumes you are running the script from your root project directory.
+
+Note the certificates for signing the app and signing the installer are different. Please make sure both are imported into Keychain. Find the strings in Keychain and insert them below. Populate your certificate names, and app name below. Running the following script will generate a signed `app.pkg` file in the root directory of your app.
+
+```bash title="macappstore-build.sh"
+#!/bin/bash
+
+APP_CERTIFICATE="3rd Party Mac Developer Application: YOUR NAME (CODE)"
+PKG_CERTIFICATE="3rd Party Mac Developer Installer: YOUR NAME (CODE)"
+APP_NAME="YourApp"
+
+wails build -platform darwin/universal -clean
+
+codesign --timestamp --options=runtime -s "$APP_CERTIFICATE" -v --entitlements ./build/darwin/entitlements.plist ./build/bin/$APP_NAME.app
+
+productbuild --sign "$PKG_CERTIFICATE" --component ./build/bin/$APP_NAME.app /Applications ./$APP_NAME.pkg
+```
+
+#### Upload App Bundle
+
+You will need to upload the generated package file and associate it to your Application before you will be able to submit it for review.
+
+1. Download the [Transporter App](https://apps.apple.com/us/app/transporter/id1450874784) from the Mac App Store
+2. Open it and sign in with your Apple ID
+3. Click the + sign and select the `APP_NAME.pkg` file that you generated in the previous step. Upload it
+4. Go back to the [App Store Connect](https://appstoreconnect.apple.com/apps) site and navigate back into your app submission. Select the version that you are ready to make available on the App Store. Under `Build` select the package that you uploaded via Transporter.
+
+That's it! You can now use the site to submit your App for review. After a few business days if all goes well you should see your App live on the Mac App Store.
\ No newline at end of file
diff --git a/website/i18n/pt/docusaurus-plugin-content-docs/current/reference/options.mdx b/website/i18n/pt/docusaurus-plugin-content-docs/current/reference/options.mdx
index a42d44424..5f8fde991 100644
--- a/website/i18n/pt/docusaurus-plugin-content-docs/current/reference/options.mdx
+++ b/website/i18n/pt/docusaurus-plugin-content-docs/current/reference/options.mdx
@@ -223,23 +223,22 @@ This defines AssetServer specific options. It allows to customize the AssetServe
Not all features of an `http.Request` are currently supported, please see the following feature matrix:
-| Feature | Win | Mac | Lin |
-| ----------------------- | --- | --- | --- |
-| GET | ✅ | ✅ | ✅ |
-| POST | ✅ | ✅ | ❌ |
-| PUT | ✅ | ✅ | ❌ |
-| PATCH | ✅ | ✅ | ❌ |
-| DELETE | ✅ | ✅ | ❌ |
-| Request Headers | ✅ | ✅ | ❌ |
-| Request Body | ✅ | ✅ | ❌ |
-| Request Body Streaming | ❌ | ❌ | ❌ |
-| Response StatusCodes | ✅ | ✅ | ❌ |
-| Response Headers | ✅ | ✅ | ❌ |
-| Response Body | ✅ | ✅ | ✅ |
-| Response Body Streaming | ❌ | ❌ | ✅ |
-| WebSockets | ❌ | ❌ | ❌ |
-
-NOTE: Linux is currently very limited due to targeting a WebKit2GTK Version < 2.36.0. In the future some features will be supported by the introduction of WebKit2GTK 2.36.0+ support.
+| Feature | Win | Mac | Lin |
+| ----------------------- | --- | --- | ------ |
+| GET | ✅ | ✅ | ✅ |
+| POST | ✅ | ✅ | ✅ [^1] |
+| PUT | ✅ | ✅ | ✅ [^1] |
+| PATCH | ✅ | ✅ | ✅ [^1] |
+| DELETE | ✅ | ✅ | ✅ [^1] |
+| Request Headers | ✅ | ✅ | ✅ [^1] |
+| Request Body | ✅ | ✅ | ❌ |
+| Request Body Streaming | ❌ | ❌ | ❌ |
+| Response StatusCodes | ✅ | ✅ | ✅ [^1] |
+| Response Headers | ✅ | ✅ | ✅ [^1] |
+| Response Body | ✅ | ✅ | ✅ |
+| Response Body Streaming | ❌ | ❌ | ✅ |
+| WebSockets | ❌ | ❌ | ❌ |
+| HTTP Redirects 30x | ✅ | ❌ | ❌ |
Name: AssetServer
Type: `*assetserver.Options`
@@ -734,3 +733,5 @@ Name: Debug
Type: `options.Debug`
Setting this to `true` will open the WebInspector on startup of the application.
Name: OpenInspectorOnStartup
Type: `bool`
+
+[^1]: This requires WebKit2GTK 2.36+ support and your app needs to be build with the build tag `webkit2_36` to activate support for this feature. This also bumps the minimum requirement of WebKit2GTK to 2.36 for your app.
diff --git a/website/i18n/pt/docusaurus-plugin-content-pages/changelog.mdx b/website/i18n/pt/docusaurus-plugin-content-pages/changelog.mdx
index face79ef7..c9d743db0 100644
--- a/website/i18n/pt/docusaurus-plugin-content-pages/changelog.mdx
+++ b/website/i18n/pt/docusaurus-plugin-content-pages/changelog.mdx
@@ -19,11 +19,17 @@ O formato é baseado em [Manter um Log de Alterações](https://keepachangelog.c
- The [AssetServer](/docs/reference/options#assetserver) now supports handling range-requests if the [Assets](/docs/reference/options/#assets-1) `fs.FS` provides an `io.ReadSeeker`. Added by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2091)
- Add new property for the `wails.json` config file - `bindings`. More information on the new property can be found in the updated [schema](/schemas/config.v2.json). Properties `prefix` and `suffix` allow you to control the generated TypeScript entity name in the `model.ts` file. Added by @OlegGulevskyy in [PR](https://github.com/wailsapp/wails/pull/2101)
- The `WindowSetAlwaysOnTop` method is now exposed in the JS runtime. Fixed by @gotid in [PR](https://github.com/wailsapp/wails/pull/2128)
+- The [AssetServer](/docs/reference/options#assetserver) now supports serving the index.html file when requesting a directory. Added by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2110)
+- Added support for WebKit2GTK 2.36+ on Linux. This brings additional features for the [AssetServer](/docs/reference/options#assetserver), like support for HTTP methods and Headers. The app must be compiled with the Go build tag `webkit2_36` to activate support for this features. This also bumps the minimum requirement of WebKit2GTK to 2.36 for your app. Fixed by @stffabi in this [PR](https://github.com/wailsapp/wails/pull/2151)
### Corrigido
- The `noreload` flag in wails dev wasn't applied. Fixed by @stffabi in this [PR](https://github.com/wailsapp/wails/pull/2081)
- `build/bin` folder was duplicating itself on each reload in `wails dev` mode. Fixed by @OlegGulevskyy in this [PR](https://github.com/wailsapp/wails/pull/2103)
- Prevent a thin white line at the bottom of a frameless window on Windows. Fixed by @stffabi in this [PR](https://github.com/wailsapp/wails/pull/2111)
+- Better signal handling for Linux. Fixed by @leaanthony in this [PR](https://github.com/wailsapp/wails/pull/2152)
+
+### Alterado
+- Improve error message if no `index.html` could be found in the assets and validate assetserver options. Changed by @stffabi in this [PR](https://github.com/wailsapp/wails/pull/2110)
## v2.2.0 - 2022-11-09
diff --git a/website/i18n/ru/docusaurus-plugin-content-docs/current/guides/mac-appstore.mdx b/website/i18n/ru/docusaurus-plugin-content-docs/current/guides/mac-appstore.mdx
new file mode 100644
index 000000000..62233b57c
--- /dev/null
+++ b/website/i18n/ru/docusaurus-plugin-content-docs/current/guides/mac-appstore.mdx
@@ -0,0 +1,83 @@
+# Mac App Store Guide
+
+This page gives a brief overview of how to submit your Wails App to the Mac App Store.
+
+## Prerequisites
+
+- You will need to have an Apple Developer account. Please find more information on the [Apple Developer Program](https://developer.apple.com/support/compare-memberships/) site
+- You will need to have your Certificates, Identifiers, and App created on the developer portal. More on this below
+- Xcode command line tools will need to be installed on your local machine
+
+#### Create Certificates and Identifiers
+
+1. Go to your [Apple Developer Account](https://developer.apple.com/account/)
+2. Under `Certificates, Identifiers & Profiles`, click `Identifiers` and Register a New App ID. Use the format (com.example.app)
+3. Under the same page click `Certificates` and generate new Certificates for Mac App Store Distribution. Download them and import the certificates into Keychain on your local machine.
+
+#### Create App Submission
+
+1. Go to the [App Store Connect Site](https://appstoreconnect.apple.com/apps)
+2. Register a new application and link the bundle ID that you created in the previous step
+3. Populate your app with the correct screen shots, descriptions, etc. as required by Apple
+4. Create a new version of your app
+
+
+## Mac App Store Process
+
+#### Enable Apple's App Sandbox
+
+Apps submitted to the Mac App Store must run under Apple's [App Sandbox](https://developer.apple.com/app-sandboxing/). You must create an `entitlements.plist` file for this to work. The recommendation is to create this file under this path `{PROJECT_DIR}/build/darwin/entitlements.plist`.
+
+**Example Entitlements File**
+
+This is an example entitlements file from the [RiftShare](https://github.com/achhabra2/riftshare) app. For reference please put in the entitlements your app requires. Refer to [this site](https://developer.apple.com/documentation/bundleresources/entitlements) for more information.
+
+```xml title="entitlements.plist"
+
+
+
+
+ com.apple.security.app-sandbox
+
+ com.apple.security.network.client
+
+ com.apple.security.network.server
+
+ com.apple.security.files.user-selected.read-write
+
+ com.apple.security.files.downloads.read-write
+
+
+
+```
+
+#### Build and Sign the App Package
+
+The following is an example script for building and signing your app for Mac App Store submission. It assumes you are running the script from your root project directory.
+
+Note the certificates for signing the app and signing the installer are different. Please make sure both are imported into Keychain. Find the strings in Keychain and insert them below. Populate your certificate names, and app name below. Running the following script will generate a signed `app.pkg` file in the root directory of your app.
+
+```bash title="macappstore-build.sh"
+#!/bin/bash
+
+APP_CERTIFICATE="3rd Party Mac Developer Application: YOUR NAME (CODE)"
+PKG_CERTIFICATE="3rd Party Mac Developer Installer: YOUR NAME (CODE)"
+APP_NAME="YourApp"
+
+wails build -platform darwin/universal -clean
+
+codesign --timestamp --options=runtime -s "$APP_CERTIFICATE" -v --entitlements ./build/darwin/entitlements.plist ./build/bin/$APP_NAME.app
+
+productbuild --sign "$PKG_CERTIFICATE" --component ./build/bin/$APP_NAME.app /Applications ./$APP_NAME.pkg
+```
+
+#### Upload App Bundle
+
+You will need to upload the generated package file and associate it to your Application before you will be able to submit it for review.
+
+1. Download the [Transporter App](https://apps.apple.com/us/app/transporter/id1450874784) from the Mac App Store
+2. Open it and sign in with your Apple ID
+3. Click the + sign and select the `APP_NAME.pkg` file that you generated in the previous step. Upload it
+4. Go back to the [App Store Connect](https://appstoreconnect.apple.com/apps) site and navigate back into your app submission. Select the version that you are ready to make available on the App Store. Under `Build` select the package that you uploaded via Transporter.
+
+That's it! You can now use the site to submit your App for review. After a few business days if all goes well you should see your App live on the Mac App Store.
\ No newline at end of file
diff --git a/website/i18n/ru/docusaurus-plugin-content-docs/current/reference/options.mdx b/website/i18n/ru/docusaurus-plugin-content-docs/current/reference/options.mdx
index a42d44424..5f8fde991 100644
--- a/website/i18n/ru/docusaurus-plugin-content-docs/current/reference/options.mdx
+++ b/website/i18n/ru/docusaurus-plugin-content-docs/current/reference/options.mdx
@@ -223,23 +223,22 @@ This defines AssetServer specific options. It allows to customize the AssetServe
Not all features of an `http.Request` are currently supported, please see the following feature matrix:
-| Feature | Win | Mac | Lin |
-| ----------------------- | --- | --- | --- |
-| GET | ✅ | ✅ | ✅ |
-| POST | ✅ | ✅ | ❌ |
-| PUT | ✅ | ✅ | ❌ |
-| PATCH | ✅ | ✅ | ❌ |
-| DELETE | ✅ | ✅ | ❌ |
-| Request Headers | ✅ | ✅ | ❌ |
-| Request Body | ✅ | ✅ | ❌ |
-| Request Body Streaming | ❌ | ❌ | ❌ |
-| Response StatusCodes | ✅ | ✅ | ❌ |
-| Response Headers | ✅ | ✅ | ❌ |
-| Response Body | ✅ | ✅ | ✅ |
-| Response Body Streaming | ❌ | ❌ | ✅ |
-| WebSockets | ❌ | ❌ | ❌ |
-
-NOTE: Linux is currently very limited due to targeting a WebKit2GTK Version < 2.36.0. In the future some features will be supported by the introduction of WebKit2GTK 2.36.0+ support.
+| Feature | Win | Mac | Lin |
+| ----------------------- | --- | --- | ------ |
+| GET | ✅ | ✅ | ✅ |
+| POST | ✅ | ✅ | ✅ [^1] |
+| PUT | ✅ | ✅ | ✅ [^1] |
+| PATCH | ✅ | ✅ | ✅ [^1] |
+| DELETE | ✅ | ✅ | ✅ [^1] |
+| Request Headers | ✅ | ✅ | ✅ [^1] |
+| Request Body | ✅ | ✅ | ❌ |
+| Request Body Streaming | ❌ | ❌ | ❌ |
+| Response StatusCodes | ✅ | ✅ | ✅ [^1] |
+| Response Headers | ✅ | ✅ | ✅ [^1] |
+| Response Body | ✅ | ✅ | ✅ |
+| Response Body Streaming | ❌ | ❌ | ✅ |
+| WebSockets | ❌ | ❌ | ❌ |
+| HTTP Redirects 30x | ✅ | ❌ | ❌ |
Name: AssetServer
Type: `*assetserver.Options`
@@ -734,3 +733,5 @@ Name: Debug
Type: `options.Debug`
Setting this to `true` will open the WebInspector on startup of the application.
Name: OpenInspectorOnStartup
Type: `bool`
+
+[^1]: This requires WebKit2GTK 2.36+ support and your app needs to be build with the build tag `webkit2_36` to activate support for this feature. This also bumps the minimum requirement of WebKit2GTK to 2.36 for your app.
diff --git a/website/i18n/ru/docusaurus-plugin-content-pages/changelog.mdx b/website/i18n/ru/docusaurus-plugin-content-pages/changelog.mdx
index 99fce57b0..6e58125a2 100644
--- a/website/i18n/ru/docusaurus-plugin-content-pages/changelog.mdx
+++ b/website/i18n/ru/docusaurus-plugin-content-pages/changelog.mdx
@@ -19,11 +19,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- The [AssetServer](/docs/reference/options#assetserver) now supports handling range-requests if the [Assets](/docs/reference/options/#assets-1) `fs.FS` provides an `io.ReadSeeker`. Added by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2091)
- Add new property for the `wails.json` config file - `bindings`. More information on the new property can be found in the updated [schema](/schemas/config.v2.json). Properties `prefix` and `suffix` allow you to control the generated TypeScript entity name in the `model.ts` file. Added by @OlegGulevskyy in [PR](https://github.com/wailsapp/wails/pull/2101)
- The `WindowSetAlwaysOnTop` method is now exposed in the JS runtime. Fixed by @gotid in [PR](https://github.com/wailsapp/wails/pull/2128)
+- The [AssetServer](/docs/reference/options#assetserver) now supports serving the index.html file when requesting a directory. Added by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2110)
+- Added support for WebKit2GTK 2.36+ on Linux. This brings additional features for the [AssetServer](/docs/reference/options#assetserver), like support for HTTP methods and Headers. The app must be compiled with the Go build tag `webkit2_36` to activate support for this features. This also bumps the minimum requirement of WebKit2GTK to 2.36 for your app. Fixed by @stffabi in this [PR](https://github.com/wailsapp/wails/pull/2151)
### Fixed
- The `noreload` flag in wails dev wasn't applied. Fixed by @stffabi in this [PR](https://github.com/wailsapp/wails/pull/2081)
- `build/bin` folder was duplicating itself on each reload in `wails dev` mode. Fixed by @OlegGulevskyy in this [PR](https://github.com/wailsapp/wails/pull/2103)
- Prevent a thin white line at the bottom of a frameless window on Windows. Fixed by @stffabi in this [PR](https://github.com/wailsapp/wails/pull/2111)
+- Better signal handling for Linux. Fixed by @leaanthony in this [PR](https://github.com/wailsapp/wails/pull/2152)
+
+### Changed
+- Improve error message if no `index.html` could be found in the assets and validate assetserver options. Changed by @stffabi in this [PR](https://github.com/wailsapp/wails/pull/2110)
## v2.2.0 - 2022-11-09
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2021-09-27-v2-beta1-release-notes.mdx b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2021-09-27-v2-beta1-release-notes.mdx
index 5eda1c996..1301d81c8 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2021-09-27-v2-beta1-release-notes.mdx
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2021-09-27-v2-beta1-release-notes.mdx
@@ -116,7 +116,7 @@ v1 的一个巨大痛点是需要将整个应用程序压缩为单个 JS 和 CSS
除此之外,网络服务器将在端口 34115 上启动。 所有连接的 Web 浏览器都会响应系统事件,例如资源更改时的热重载。 所有连接的 Web 浏览器都会响应系统事件,例如资源更改时的热重载。
-在 Go 中,我们习惯于在应用程序中处理结构。 将结构发送到我们的前端并将它们用作我们应用程序中的状态通常很有用。 在 v1 中,这是一个非常需要手动的过程,对开发人员来说有点负担。 这实现了两个世界之间数据模型的无缝交换。 这实现了两个世界之间数据模型的无缝交换。
+在 Go 中,我们习惯于在应用程序中处理结构。 将结构发送到我们的前端并将它们用作我们应用程序中的状态通常很有用。 在 v1 中,这是一个非常需要手动的过程,对开发人员来说有点负担。 我很高兴地宣布,在 v2 中,任何以开发模式运行的应用程序都会自动生成 TypeScript 作为绑定方法的输入或输出参数的所有结构的模型。 这实现了两个世界之间数据模型的无缝交换。
除此之外,还会动态生成另一个 JS 模块来包装您的所有绑定方法。 这为您的方法提供了 JSDoc,在您的 IDE 中提供代码完成和提示。 当您在自动生成的包含 Go 代码的模块中点击 Tab 时自动导入数据模型,这真的很酷!
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2021-11-08-v2-beta2-release-notes.mdx b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2021-11-08-v2-beta2-release-notes.mdx
index 12d966004..f812bbc4c 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2021-11-08-v2-beta2-release-notes.mdx
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2021-11-08-v2-beta2-release-notes.mdx
@@ -74,7 +74,7 @@ v1 的一个巨大痛点是需要将整个应用程序压缩为单个 JS 和 CSS
除此之外,网络服务器将在端口 34115 上启动。 所有连接的 Web 浏览器都会响应系统事件,例如资源更改时的热重载。 所有连接的 Web 浏览器都会响应系统事件,例如资源更改时的热重载。
-在 Go 中,我们习惯于在应用程序中处理结构。 将结构发送到我们的前端并将它们用作我们应用程序中的状态通常很有用。 在 v1 中,这是一个非常需要手动的过程,对开发人员来说有点负担。 这实现了两个世界之间数据模型的无缝交换。 这实现了两个世界之间数据模型的无缝交换。
+在 Go 中,我们习惯于在应用程序中处理结构。 将结构发送到我们的前端并将它们用作我们应用程序中的状态通常很有用。 在 v1 中,这是一个非常需要手动的过程,对开发人员来说有点负担。 我很高兴地宣布,在 v2 中,任何以开发模式运行的应用程序都会自动生成 TypeScript 作为绑定方法的输入或输出参数的所有结构的模型。 这实现了两个世界之间数据模型的无缝交换。
除此之外,还会动态生成另一个 JS 模块来包装您的所有绑定方法。 这为您的方法提供了 JSDoc,在您的 IDE 中提供代码完成和提示。 当您在自动生成的包含 Go 代码的模块中点击 Tab 时自动导入数据模型,这真的很酷!
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2022-02-22-v2-beta3-release-notes.mdx b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2022-02-22-v2-beta3-release-notes.mdx
index a80e551c0..510a195cc 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2022-02-22-v2-beta3-release-notes.mdx
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2022-02-22-v2-beta3-release-notes.mdx
@@ -61,7 +61,7 @@ v1 的一个巨大痛点是需要将整个应用程序压缩为单个 JS 和 CSS
除此之外,网络服务器将在端口 34115 上启动。 所有连接的 Web 浏览器都会响应系统事件,例如资源更改时的热重载。 所有连接的 Web 浏览器都会响应系统事件,例如资源更改时的热重载。
-在 Go 中,我们习惯于在应用程序中处理结构。 将结构发送到我们的前端并将它们用作我们应用程序中的状态通常很有用。 在 v1 中,这是一个非常需要手动的过程,对开发人员来说有点负担。 这实现了两个世界之间数据模型的无缝交换。 这实现了两个世界之间数据模型的无缝交换。
+在 Go 中,我们习惯于在应用程序中处理结构。 将结构发送到我们的前端并将它们用作我们应用程序中的状态通常很有用。 在 v1 中,这是一个非常需要手动的过程,对开发人员来说有点负担。 我很高兴地宣布,在 v2 中,任何以开发模式运行的应用程序都会自动生成 TypeScript 作为绑定方法的输入或输出参数的所有结构的模型。 这实现了两个世界之间数据模型的无缝交换。
除此之外,还会动态生成另一个 JS 模块来包装您的所有绑定方法。 这为您的方法提供了 JSDoc,在您的 IDE 中提供代码完成和提示。 当您在自动生成的包含 Go 代码的模块中点击 Tab 时自动导入数据模型,这真的很酷!
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/mac-appstore.mdx b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/mac-appstore.mdx
new file mode 100644
index 000000000..3c50fcde8
--- /dev/null
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/mac-appstore.mdx
@@ -0,0 +1,83 @@
+# Mac 应用商店指南
+
+本页面简要概述了如何将您的 Wails 应用程序提交到 Mac 应用商店。
+
+## 前提条件
+
+- 您需要有一个 Apple 开发者帐户。 请在 [Apple Developer Program](https://developer.apple.com/support/compare-memberships/) 网站上找到更多信息
+- 您需要在开发人员门户上创建证书(Certificates)、标识符(Identifiers)和应用程序。 更多内容请见下文
+- 你的本地机器上需要安装 Xcode 命令行工具
+
+#### 创建证书和标识符
+
+1. 前往您的 [Apple 开发者帐户](https://developer.apple.com/account/)
+2. 在 `证书(Certificates)、标识符(Identifiers)和个人资料(Profiles)` 下,单击 `标识符(Identifiers)` 并注册新的应用程序 ID。 使用格式 (com.example.app)
+3. 在同一页面下,单击 `证书(Certificates)`并为 Mac App Store 分发生成新证书(Certificates)。 下载它们并将证书导入本地计算机上的秘钥串。
+
+#### 创建应用程序提交
+
+1. 前往 [App Store Connect](https://appstoreconnect.apple.com/apps) 网站
+2. 注册一个新应用程序并链接您在上一步中创建的包 ID
+3. 根据 Apple 的要求,使用正确的屏幕截图、描述等填充您的应用程序
+4. 创建新版本的应用
+
+
+## Mac 应用商店流程
+
+#### 启用 Apple 的 App Sandbox
+
+提交到 Mac 应用商店的应用程序必须在 Apple 的 [App Sandbox](https://developer.apple.com/app-sandboxing/) 下运行。 您必须创建一个 `entitlements.plist` 文件才能使其工作。 建议在此路径 `{PROJECT_DIR}/build/darwin/entitlements.plist` 下创建此文件。
+
+**示例授权文件**
+
+这是来自 [RiftShare](https://github.com/achhabra2/riftshare) 应用程序的示例授权文件。 作为参考,请输入您的应用所需的权限。 有关详细信息,请参阅 [此站点](https://developer.apple.com/documentation/bundleresources/entitlements)。
+
+```xml title="entitlements.plist"
+
+
+
+
+ com.apple.security.app-sandbox
+
+ com.apple.security.network.client
+
+ com.apple.security.network.server
+
+ com.apple.security.files.user-selected.read-write
+
+ com.apple.security.files.downloads.read-write
+
+
+
+```
+
+#### 构建并签署应用程序包
+
+以下是用于构建和签署您的应用程序以提交 Mac 应用商店的示例脚本。 它假定您正在从根项目目录运行脚本。
+
+请注意,用于签署应用程序和签署安装程序的证书是不同的。 请确保两者都导入到秘钥串中。 在秘钥串中找到字符串并将它们插入下面。 在下面填充您的证书名称和应用程序名称。 运行以下脚本将在您的应用程序的根目录中生成一个签名的 `app.pkg` 文件。
+
+```bash title="macappstore-build.sh"
+#!/bin/bash
+
+APP_CERTIFICATE="3rd Party Mac Developer Application: YOUR NAME (CODE)"
+PKG_CERTIFICATE="3rd Party Mac Developer Installer: YOUR NAME (CODE)"
+APP_NAME="YourApp"
+
+wails build -platform darwin/universal -clean
+
+codesign --timestamp --options=runtime -s "$APP_CERTIFICATE" -v --entitlements ./build/darwin/entitlements.plist ./build/bin/$APP_NAME.app
+
+productbuild --sign "$PKG_CERTIFICATE" --component ./build/bin/$APP_NAME.app /Applications ./$APP_NAME.pkg
+```
+
+#### 上传应用程序包
+
+您需要上传生成的包文件并将其关联到您的应用程序,然后才能提交以供审核。
+
+1. 从 Mac 应用商店下载 [Transporter App](https://apps.apple.com/us/app/transporter/id1450874784)
+2. 打开它并使用您的 Apple ID 登录
+3. 单击 + 号并选择您在上一步中生成的 `APP_NAME.pkg` 文件。 上传它
+4. 返回 [App Store Connect](https://appstoreconnect.apple.com/apps) 站点并导航回您的应用程序提交。 选择您准备在 App 商店上提供的版本。 在 `Build` 下选择您通过 Transporter 上传的包。
+
+好了! 您现在可以使用该网站提交您的应用程序以供审核。 几个工作日后,如果一切顺利,您应该会在 Mac 应用商店上看到您的应用程序。
\ No newline at end of file
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/howdoesitwork.mdx b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/howdoesitwork.mdx
index 54f1dc353..ff939297b 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/howdoesitwork.mdx
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/howdoesitwork.mdx
@@ -242,7 +242,7 @@ export function Greet(arg1: string): Promise
;
:::
-也可以将结构体发送回 Go。 为了使这个过程更容易,在 `开发` 模式下,会生成一个 TypeScript 模块,声明绑定方法中使用的所有结构体类型。 为了使这个过程更容易,在 `开发` 模式下,会生成一个 TypeScript 模块,声明绑定方法中使用的所有结构体类型。 使用此模块,可以构建原生 JavaScript 对象并将其发送到 Go 代码。
+也可以将结构体发送回 Go。 作为期望的结构体的参数传递的任何 JavaScript map/class 都将转换为该结构体类型。 为了使这个过程更容易,在 `开发` 模式下,会生成一个 TypeScript 模块,声明绑定方法中使用的所有结构体类型。 使用此模块,可以构建原生 JavaScript 对象并将其发送到 Go 代码。
还支持在其签名中使用结构的 Go 方法。 绑定方法(作为参数或返回类型)指定的所有 Go 结构体都将作为 Go 代码包装器模块的一部分自动生成 TypeScript 版本。 使用这些,可以在 Go 和 JavaScript 之间共享相同的数据模型。
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/options.mdx b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/options.mdx
index a880bfdb2..fa2b0e9e6 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/options.mdx
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/options.mdx
@@ -72,11 +72,11 @@ func main() {
LightModeTitleText: windows.RGB(20, 20, 20),
LightModeBorder: windows.RGB(200, 200, 200),
},
- // 可自定义的用户消息
+ // User messages that can be customised
Messages *windows.Messages
- // Windows 进入低功耗模式时调用 OnSuspend
+ // OnSuspend is called when Windows enters low power mode
OnSuspend func()
- // Windows 从低功耗模式恢复时调用 OnResume
+ // OnResume is called when Windows resumes from low power mode
OnResume func()
},
Mac: &mac.Options{
@@ -223,23 +223,22 @@ func main() {
并非当前支持 `http.Request` 的所有功能,请参阅以下功能矩阵:
-| 功能 | Win | Mac | Lin |
-| ----------------------- | --- | --- | --- |
-| GET | ✅ | ✅ | ✅ |
-| POST | ✅ | ✅ | ❌ |
-| PUT | ✅ | ✅ | ❌ |
-| PATCH | ✅ | ✅ | ❌ |
-| DELETE | ✅ | ✅ | ❌ |
-| Request Headers | ✅ | ✅ | ❌ |
-| Request Body | ✅ | ✅ | ❌ |
-| Request Body Streaming | ❌ | ❌ | ❌ |
-| Response StatusCodes | ✅ | ✅ | ❌ |
-| Response Headers | ✅ | ✅ | ❌ |
-| Response Body | ✅ | ✅ | ✅ |
-| Response Body Streaming | ❌ | ❌ | ✅ |
-| WebSockets | ❌ | ❌ | ❌ |
-
-注意:Linux 当前非常有限,因为目标是 WebKit2GTK 版本 < 2.36.0。 将来,一些特性将通过引入 WebKit2GTK 2.36.0+ 支持来支持。
+| 功能 | Win | Mac | Lin |
+| ----------------------- | --- | --- | ------ |
+| GET | ✅ | ✅ | ✅ |
+| POST | ✅ | ✅ | ✅ [^1] |
+| PUT | ✅ | ✅ | ✅ [^1] |
+| PATCH | ✅ | ✅ | ✅ [^1] |
+| DELETE | ✅ | ✅ | ✅ [^1] |
+| Request Headers | ✅ | ✅ | ✅ [^1] |
+| Request Body | ✅ | ✅ | ❌ |
+| Request Body Streaming | ❌ | ❌ | ❌ |
+| Response StatusCodes | ✅ | ✅ | ✅ [^1] |
+| Response Headers | ✅ | ✅ | ✅ [^1] |
+| Response Body | ✅ | ✅ | ✅ |
+| Response Body Streaming | ❌ | ❌ | ✅ |
+| WebSockets | ❌ | ❌ | ❌ |
+| HTTP Redirects 30x | ✅ | ❌ | ❌ |
名称: AssetServer
类型: `*assetserver.Options`
@@ -750,3 +749,5 @@ func main() {
设置为 `true` 将在应用程序启动时打开 Web 检查器。
名称: OpenInspectorOnStartup
类型: `bool`
+
+[^1]: 这需要 WebKit2GTK 2.36+ 支持,并且您的应用程序需要使用构建标签 `webkit2_36` 来构建以激活对此功能的支持。 这也会将您应用程序的 WebKit2GTK 最低要求提高到 2.36。
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/runtime/log.mdx b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/runtime/log.mdx
index 2d6b45c3e..7e00bf537 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/runtime/log.mdx
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/runtime/log.mdx
@@ -4,7 +4,7 @@ sidebar_position: 3
# 日志
-Wails 运行时提供了一种可以从 Go 或 JavaScript 调用的日志记录机制。 像大多数记录器一样,有许多日志级别:
+Wails 运行时提供了一种可以从 Go 或 JavaScript 调用日志记录的机制。 像大多数记录器一样,有许多日志级别:
- Trace(追踪)
- Debug(调试)
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-pages/changelog.mdx b/website/i18n/zh-Hans/docusaurus-plugin-content-pages/changelog.mdx
index 05eb2e8ef..5fe4b37bf 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-pages/changelog.mdx
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-pages/changelog.mdx
@@ -19,11 +19,17 @@
- 如果 [Assets](/docs/reference/options/#资产-1) `fs.FS` 提供 `io.ReadSeeker`,[AssetServer](/docs/reference/options#资产服务器) 现在支持处理范围请求。 由 @stffabi 在这个 [PR](https://github.com/wailsapp/wails/pull/2091) 中添加。
- 为 `wails.json` 配置文件添加新属性 - `bindings`。 关于新属性的更多信息可以在更新的 [schema](/schemas/config.v2.json) 中找到。 属性 `prefix` 和 `suffix` 允许您控制在 `model.ts` 文件中生成的 TypeScript 实体名称。 由 @OlegGulevskyy 在这个 [PR](https://github.com/wailsapp/wails/pull/2101) 中修复。
- `WindowSetAlwaysOnTop` 方法现在在 JS 运行时中公开。 由 @gotid 在这个 [PR](https://github.com/wailsapp/wails/pull/2128) 中修复。
+- [AssetServer](/docs/reference/options#资产服务器) 现在支持在请求目录时提供 index.html 文件。 由 @stffabi 在这个 [PR](https://github.com/wailsapp/wails/pull/2110) 中添加
+- 在 Linux 上添加了对 WebKit2GTK 2.36+ 的支持。 这为 [AssetServer](/docs/reference/options#资产服务器) 带来了额外的特性,例如对 HTTP 方法和标头的支持。 该应用程序必须使用 Go 构建标签 `webkit2_36` 进行编译,以激活对此功能的支持。 这也会将您应用程序的 WebKit2GTK 最低要求提高到 2.36。 由 @stffabi 在这个 [PR](https://github.com/wailsapp/wails/pull/2151) 中修复
### 修复
- wails dev 中 `noreload` 标志未被应用。 由 @stffabi 在这个 [PR](https://github.com/wailsapp/wails/pull/2081) 中修复。
- `build/bin` 文件夹在 `wails dev` 模式下每次重新加载时都会复制自身。 由 @OlegGulevskyy 在这个 [PR](https://github.com/wailsapp/wails/pull/2103) 中修复。
- 防止 Windows 上的无边框窗口底部出现细白线。 由 @stffabi 在这个 [PR](https://github.com/wailsapp/wails/pull/2111) 中修复。
+- 更好的 Linux 信号处理。 由 @leaanthony 在这个 [PR](https://github.com/wailsapp/wails/pull/2152) 中修复
+
+### 变更
+- 如果在资产中找不到 `index.html` 并且验证资产服务器选项,则改进错误消息。 由 @stffabi 在这个 [PR](https://github.com/wailsapp/wails/pull/2110) 中变更
## v2.2.0 - 2022-11-09
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-pages/community-guide.mdx b/website/i18n/zh-Hans/docusaurus-plugin-content-pages/community-guide.mdx
index 83cf391d7..28d56c455 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-pages/community-guide.mdx
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-pages/community-guide.mdx
@@ -71,7 +71,7 @@ Wails 是一个开放源码、社区驱动的项目。 我们欢迎任何人加
- 重现的步骤。 有时会打开不是Wails 问题的错误,报告者有责任用 [最小的可重现示例](https://stackoverflow.com/help/minimal-reproducible-example) 证明这是 Wails 问题
- `wails doctor` 的输出
- 一个可以重现错误的测试
-- 如果 Issue 没有包含此信息,请随时向打开 Issue 的 个人获取信息。
+- 如果 Issue 没有包含此信息,请随时向打开 Issue 的人获取信息。
- 对 Issue 发表评论,说明您希望开发修复程序
- 克隆存储库并使用 `bugfix/_` 格式创建一个分支
- 一旦修复准备好进行测试,请创建 PR 草案。 请确保 PR 描述中列出了带有复选框标记的测试场景和测试用例,以便其他人知道需要测试什么。