mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 17:39:58 +08:00
docs: sync documents (#2514)
Co-authored-by: misitebao <misitebao@users.noreply.github.com>
This commit is contained in:
parent
fef6e2a616
commit
78f638a9bc
@ -2,56 +2,91 @@
|
|||||||
sidebar_position: 5
|
sidebar_position: 5
|
||||||
---
|
---
|
||||||
|
|
||||||
# Configuration du projet
|
# Project Config
|
||||||
|
|
||||||
La configuration du projet se trouve dans le fichier `wails.json` du répertoire du projet. La structure de la configuration est :
|
The project config resides in the `wails.json` file in the project directory. The structure of the config is:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"name": "[Le nom du projet]",
|
// Project config version
|
||||||
"assetdir": "[Chemin relatif vers le répertoire contenant les ressources compilées, ceci est normalement déduit et pourrait être laissé vide]",
|
"version": "",
|
||||||
"reloaddirs": "[Répertoires supplémentaires pour déclencher des recharges automatiques (séparés par des virgules), ceci n'est utilisé que pour certaines configurations d'actifs avancées]",
|
// The project name
|
||||||
"build:dir": "[Le répertoire où se trouvent les fichiers de compilation. Par défaut, 'build']",
|
"name": "",
|
||||||
"frontend:dir": "[Chemin relatif vers le répertoire du frontend. Par défaut, 'frontend']',
|
// Relative path to the directory containing the compiled assets, this is normally inferred and could be left empty
|
||||||
"frontend:install": "[La commande pour installer les dépendances de node, exécuté dans le répertoire du frontend - souvent `npm install`]",
|
"assetdir": "",
|
||||||
"frontend:build": "[La commande pour construire l'application, exécuté dans le répertoire frontend - souvent `npm run build`]",
|
// Additional directories to trigger reloads (comma separated), this is only used for some advanced asset configurations
|
||||||
"frontend:dev": "[Cette commande a été remplacée par frontend:dev:build. Si frontend:dev:build n'est pas spécifié, cela retombera dans cette commande. \nSi cette commande n'est pas non plus spécifiée va revenir sur frontend:build]",
|
"reloaddirs": "",
|
||||||
"frontend:dev:build": "[Cette commande est l'équivalent en dev de frontend:build. Si non spécifié, revient à frontend:dev]",
|
// The directory where the build files reside. Defaults to 'build'
|
||||||
"frontend:dev:install": "[Cette commande est l'équivalent en dev de frontend:install. Si non spécifié, revient à frontend:install]",
|
"build:dir": "",
|
||||||
"frontend:dev:watcher": "[Cette commande est exécutée dans un processus séparé sur `wails dev`. Utile pour les observateurs tiers ou les serveurs de développement de parties tierces]",
|
// Relative path to the frontend directory. Defaults to 'frontend'
|
||||||
"frontend:dev:serverUrl": "[URL vers un serveur de développement tiers pour exposer l'application, EG Vite. \nSi cette valeur est définie à 'auto', alors le devServerUrl sera déduit de la sortie Vite]",
|
"frontend:dir": "",
|
||||||
"wailsjsdir": "[Chemin relatif au répertoire qui vont contenir les modules JS automatiquement créés]",
|
// The command to install node dependencies, run in the frontend directory - often `npm install`
|
||||||
"version": "[Version de configuration du projet]",
|
"frontend:install": "",
|
||||||
"outputfilename": "[Le nom du binaire]",
|
// The command to build the assets, run in the frontend directory - often `npm run build`
|
||||||
"debounceMS": 100, // Nombre de millisecondes durant lesquelles le serveur de dev attend de se recharger quand il détecte un changement dans les ressourcces
|
"frontend:build": "",
|
||||||
"devServer": "[Adresse pour se connecter au serveur de dev de wails. Par défaut: localhost:34115]",
|
// This command has been replaced by frontend:dev:build. If frontend:dev:build is not specified will falls back to this command. \nIf this command is also not specified will falls back to frontend:build
|
||||||
"appargs": "[Arguments passés à l'application en mode shell lors du mode dev]",
|
"frontend:dev": "",
|
||||||
"runNonNativeBuildHooks": false, // Définit si les évènements de compilation doivent être exécutés même s'ils sont définis pour un système d'exploitation autre que le système d'exploitation hôte.
|
// This command is the dev equivalent of frontend:build. If not specified falls back to frontend:dev
|
||||||
"preBuildHooks": {
|
"frontend:dev:build": "",
|
||||||
"GOOS/GOARCH": "[La commande qui sera exécutée avant une compilation du GOOS/GOARCH: ${platform} est remplacée par le "GOOS/GOARCH". Le crochet "GOOS/GOARCH" est exécuté avant les crochets "GOOS/*" et"*/*" .]",
|
// This command is the dev equivalent of frontend:install. If not specified falls back to frontend:install
|
||||||
"GOOS/*": "[Cette commande sera exécutée avant la construction du GOOS spécifié: ${platform} est remplacé avec "GOOS/GOARCH". Le crochet "GOOS/*" est exécuté avant le crochet "*/*".]",
|
"frontend:dev:install": "",
|
||||||
"*/*": "[La commande sera exécutée avant tout autre chose lors de la construction: ${platform} est remplacé avec "GOOS/GOARCH".]"
|
// This command is run in a separate process on `wails dev`. Useful for 3rd party watchers or starting 3d party dev servers
|
||||||
},
|
"frontend:dev:watcher": "",
|
||||||
"postBuildHooks": {
|
// URL to a 3rd party dev server to be used to serve assets, EG Vite. \nIf this is set to 'auto' then the devServerUrl will be inferred from the Vite output
|
||||||
"GOOS/GOARCH": "[La command sera exécutée après une construction du GOOS/GOARCH spécifié: ${platform} est remplacé par "GOOS/GOARCH" et ${bin} avec le chemin vers le binaire compilé. Le crochet "GOOS/GOARCH" est exécuté avant les crochets "GOOS/*" et "*/*".]",
|
"frontend:dev:serverUrl": "",
|
||||||
"GOOS/*": "[La commande sera exécutée après une construction du GOOS spécifié: ${platform} est remplacé par "GOOS/GOARCH" et ${bin} avec le chemin vers le binaire compilé. Le crochet "GOOS/*" est exécuté avant le crochet "*/*".]",
|
// Relative path to the directory that the auto-generated JS modules will be created
|
||||||
"*/*": "[La commande sera exécutée après chaque construction: ${platform} est remplacé par "GOOS/GOARCH" et ${bin} avec le chemin vers le binaire compilé.]"
|
"wailsjsdir": "",
|
||||||
},
|
// The name of the binary
|
||||||
"info": { // Data utilisée pour remplir le manifests et version info.
|
"outputfilename": "",
|
||||||
"companyName": "[Le nom de la société. Par défaut: [Le nom du projet]]",
|
// The default time the dev server waits to reload when it detects a change in assets
|
||||||
"productName": "[Le nom du produit. Par défaut: [Le nom du projet]]",
|
"debounceMS": 100,
|
||||||
"productVersion": "[La version du produit. Par défaut: '1.0.0']",
|
// Address to bind the wails dev sever to. Default: localhost:34115
|
||||||
"copyright": "[Le copyright du produit. Par défaut: 'Copyright.........']",
|
"devServer": "",
|
||||||
"comments": "[Un bref commentaire de l'application. Par défaut: 'Built using Wails (https://wails.app)']"
|
// Arguments passed to the application in shell style when in dev mode
|
||||||
},
|
"appargs": "",
|
||||||
"nsisType": "['multiple': Un installateur par architecture. 'single' : un seul installateur universel pour toutes les architectures en cours de construction. Par défaut: 'multiple']",
|
// Defines if build hooks should be run though they are defined for an OS other than the host OS.
|
||||||
"obfuscated": "[Si l'application doit être masquée. Par défaut: false]",
|
"runNonNativeBuildHooks": false,
|
||||||
"garbleargs": "[Les arguments à passer à la commande garble lors de l'utilisation de l'option obfuscated ]"
|
"preBuildHooks": {
|
||||||
|
// The command that will be executed before a build of the specified GOOS/GOARCH: ${platform} is replaced with the "GOOS/GOARCH". The "GOOS/GOARCH" hook is executed before the "GOOS/*" and "*/*" hook.
|
||||||
|
"GOOS/GOARCH": "",
|
||||||
|
// The command that will be executed before a build of the specified GOOS: ${platform} is replaced with the "GOOS/GOARCH". The "GOOS/*" hook is executed before the "*/*" hook.
|
||||||
|
"GOOS/*": "",
|
||||||
|
// The command that will be executed before every build: ${platform} is replaced with the "GOOS/GOARCH".
|
||||||
|
"*/*": ""
|
||||||
|
},
|
||||||
|
"postBuildHooks": {
|
||||||
|
// The command that will be executed after a build of the specified GOOS/GOARCH: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary. The "GOOS/GOARCH" hook is executed before the "GOOS/*" and "*/*" hook.
|
||||||
|
"GOOS/GOARCH": "",
|
||||||
|
// The command that will be executed after a build of the specified GOOS: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary. The "GOOS/*" hook is executed before the "*/*" hook.
|
||||||
|
"GOOS/*": "",
|
||||||
|
// The command that will be executed after every build: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary.
|
||||||
|
"*/*": ""
|
||||||
|
},
|
||||||
|
// Data used to populate manifests and version info.
|
||||||
|
"info": {
|
||||||
|
// The company name. Default: [The project name]
|
||||||
|
"companyName": "",
|
||||||
|
// The product name. Default: [The project name]
|
||||||
|
"productName": "",
|
||||||
|
// The version of the product. Default: '1.0.0'
|
||||||
|
"productVersion": "",
|
||||||
|
// The copyright of the product. Default: 'Copyright.........'
|
||||||
|
"copyright": "",
|
||||||
|
// A short comment of the app. Default: 'Built using Wails (https://wails.app)'
|
||||||
|
"comments": ""
|
||||||
|
},
|
||||||
|
// 'multiple': One installer per architecture. 'single': Single universal installer for all architectures being built. Default: 'multiple'
|
||||||
|
"nsisType": "",
|
||||||
|
// Whether the app should be obfuscated. Default: false
|
||||||
|
"obfuscated": "",
|
||||||
|
// The arguments to pass to the garble command when using the obfuscated flag
|
||||||
|
"garbleargs": ""
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Ce fichier est lu par le CLI Wails lorsque vous exécutez `wails build` ou `wails dev`.
|
This file is read by the Wails CLI when running `wails build` or `wails dev`.
|
||||||
|
|
||||||
Les options `assetdir`, `reloaddirs`, `wailsjsdir`, `debounceMS`, `devserver` and `frontenddevserverurl` dans `wails build/dev` vont mettre à jour les configs du projet qui deviendront les configurations par défaut pour les éxécutions suivantes.
|
The `assetdir`, `reloaddirs`, `wailsjsdir`, `debounceMS`, `devserver` and `frontenddevserverurl` flags in `wails build/dev` will update the project config
|
||||||
|
and thus become defaults for subsequent runs.
|
||||||
|
|
||||||
Le schéma JSON pour ce fichier se trouve [ici](https://wails.io/schemas/config.v2.json).
|
The JSON Schema for this file is located [here](https://wails.io/schemas/config.v2.json).
|
||||||
|
@ -13,7 +13,11 @@ Le format est basé sur [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
## v2.4.1 - 2022-03-20
|
### Changements
|
||||||
|
- [v3] Typescript model generation using `StructDef`s from new AST-based parser. Added by @ATenderholt in [PR1](https://github.com/wailsapp/wails/pull/2428/files) and [PR2](https://github.com/wailsapp/wails/pull/2485).
|
||||||
|
|
||||||
|
|
||||||
|
## v2.4.1 - 2023-03-20
|
||||||
|
|
||||||
### Changements
|
### Changements
|
||||||
- Support single clicks on items with `--wails-draggable: drag` again on Windows. Changed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2482)
|
- Support single clicks on items with `--wails-draggable: drag` again on Windows. Changed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2482)
|
||||||
@ -22,7 +26,7 @@ Le format est basé sur [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|||||||
- Fixed panic when using `wails dev` and the AssetServer tried to log to the logger. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2481)
|
- Fixed panic when using `wails dev` and the AssetServer tried to log to the logger. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2481)
|
||||||
- Fixed compatibility with WebView2 Runtime > `110.0.1587.69` which showed a `connection refused` html page before doing a reload of the frontend. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2496)
|
- Fixed compatibility with WebView2 Runtime > `110.0.1587.69` which showed a `connection refused` html page before doing a reload of the frontend. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2496)
|
||||||
|
|
||||||
## v2.4.0 - 2022-03-08
|
## v2.4.0 - 2023-03-08
|
||||||
|
|
||||||
### Ajouts
|
### Ajouts
|
||||||
- Added Webview GPU acceleration options for [Windows](/docs/reference/options#webviewgpuisdisabled) and [Linux](/docs/reference/options#webviewgpupolicy). Added by @Lyimmi in [PR](https://github.com/wailsapp/wails/pull/2266)
|
- Added Webview GPU acceleration options for [Windows](/docs/reference/options#webviewgpuisdisabled) and [Linux](/docs/reference/options#webviewgpupolicy). Added by @Lyimmi in [PR](https://github.com/wailsapp/wails/pull/2266)
|
||||||
|
@ -7,4 +7,4 @@
|
|||||||
</p>
|
</p>
|
||||||
```
|
```
|
||||||
|
|
||||||
[EmailIt](https://github.com/raguay/EmailIt/) is a Wails 2 program that is a markdown based email sender only with nine notepads, scripts to manipulate the text, and templates. また、システム内のファイルに対してEmailItのスクリプトを実行するためのスクリプトターミナルを備えています。 スクリプトとテンプレートは、コマンドライン自体から、またはAlfred、Keyboard Maestro、Dropzone、PopClipの拡張機能から使用することができます。 さらに、GitHubからダウンロードしたスクリプトやテーマにも対応しています。 ドキュメントは未完成ですが、ブログラム自体は動作します。 It’s built using Wails2 and Svelte, and the download is a universal macOS application.
|
[EmailIt](https://github.com/raguay/EmailIt/)はWails 2で作成されており、9個のノートパット、テキスト操作のためのスクリプト、およびテンプレートを備えた、マークダウンベースのEメール送信ソフトです。 また、システム内のファイルに対してEmailItのスクリプトを実行するためのスクリプトターミナルを備えています。 スクリプトとテンプレートは、コマンドライン自体から、またはAlfred、Keyboard Maestro、Dropzone、PopClipの拡張機能から使用することができます。 さらに、GitHubからダウンロードしたスクリプトやテーマにも対応しています。 ドキュメントは未完成ですが、ブログラム自体は動作します。 Wails 2とSvelteを使用して構築されており、ユニバーサルmacOSアプリケーションとしてダウンロードできます。
|
||||||
|
@ -7,6 +7,6 @@
|
|||||||
</p>
|
</p>
|
||||||
```
|
```
|
||||||
|
|
||||||
**[EncryptEasy](https://www.encrypteasy.app) is a simple and easy to use PGP encryption tool, managing all your and your contacts keys. Encryption should be simple. Developed with Wails.**
|
**[EncryptEasy](https://www.encrypteasy.app)は、シンプルで使いやすいPGP暗号化ツールで、すべての連絡先の鍵を管理することができます。 暗号化は簡単にできるべきです。 Wailsで開発されました。**
|
||||||
|
|
||||||
Encrypting messages using PGP is the industry standard. Everyone has a private and a public key. Your private key, well, needs to be kept private so only you can read messages. Your public key is distributed to anyone who wants to send you secret, encrypted messages. Managing keys, encrypting messages and decrypting messages should be a smooth experience. EncryptEasy is all about making it easy.
|
PGPを使用したメッセージの暗号化は、業界の標準です。 誰もが、秘密鍵と公開鍵を所持しています。 あなたの秘密鍵は、あなただけがメッセージを読めるように、常に秘密にしておく必要があります。 あなたの公開鍵は、暗号化されたメッセージを送信したい人に配布します。 鍵の管理、メッセージの暗号化、およびメッセージの復号化は、スムーズにできなければなりません。 EncryptEasyはそれらを簡単に実現します。
|
||||||
|
@ -2,56 +2,91 @@
|
|||||||
sidebar_position: 5
|
sidebar_position: 5
|
||||||
---
|
---
|
||||||
|
|
||||||
# プロジェクト構成
|
# Project Config
|
||||||
|
|
||||||
プロジェクト構成は、プロジェクトディレクトリ内の`wails.json`ファイルで設定します。 ファイルの構造は次のとおりです:
|
The project config resides in the `wails.json` file in the project directory. The structure of the config is:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"name": "[プロジェクト名。]",
|
// Project config version
|
||||||
"assetdir": "[コンパイルされたアセットディレクトリへの相対パス。通常は自動的に推測されるため、空で構いません。]",
|
"version": "",
|
||||||
"reloaddirs": "[再読み込みのトリガーとなる追加のディレクトリ(カンマ区切り)。高度なアセット構成をとる場合にのみ使用します。]",
|
// The project name
|
||||||
"build:dir": "[ビルドファイルが存在するディレクトリ。 デフォルトは'build'です。']",
|
"name": "",
|
||||||
"frontend:dir": "[フロントエンドディレクトリの相対パス。 デフォルトは'frontend'です。]",
|
// Relative path to the directory containing the compiled assets, this is normally inferred and could be left empty
|
||||||
"frontend:install": "[node依存関係をインストールするために、フロントエンドディレクトリで実行するコマンド。一般的には`npm install`です。]",
|
"assetdir": "",
|
||||||
"frontend:build": "[アセットをビルドするために、フロントエンドディレクトリで実行するコマンド。一般的には`npm run build`です。]",
|
// Additional directories to trigger reloads (comma separated), this is only used for some advanced asset configurations
|
||||||
"frontend:dev": "[このコマンドはfrontend:dev:buildへ置換されました。 frontend:dev:buildが指定されていない場合は、代わりにこのコマンドが実行されます。 このコマンドも指定されていない場合は、代わりにfrontend:buildが実行されます。]",
|
"reloaddirs": "",
|
||||||
"frontend:dev:build": "[開発モードにおけるfrontend:buildと同様のコマンド。 指定されていない場合は、代わりにfrontend:devが実行されます。]",
|
// The directory where the build files reside. Defaults to 'build'
|
||||||
"frontend:dev:install": "[開発モードにおけるfrontend:installと同様のコマンド。 指定されていない場合は、代わりにfrontend:installが実行されます。]",
|
"build:dir": "",
|
||||||
"frontend:dev:watcher": "[`wails dev`実行時に別プロセスで実行するコマンド。 サードパーティ製のウォッチャや開発サーバを起動したい場合に便利です。]",
|
// Relative path to the frontend directory. Defaults to 'frontend'
|
||||||
"frontend:dev:serverUrl": "[Viteなど、アセットを提供するサードパーティ製の開発サーバのURL。 'auto'に設定すると、Viteの出力から自動的に開発サーバURLを推測します。]",
|
"frontend:dir": "",
|
||||||
"wailsjsdir": "[自動生成されるJSモジュールを出力するディレクトリへの相対パス。]",
|
// The command to install node dependencies, run in the frontend directory - often `npm install`
|
||||||
"version": "[プロジェクト構成のバージョン]",
|
"frontend:install": "",
|
||||||
"outputfilename": "[出力バイナリのファイル名]",
|
// The command to build the assets, run in the frontend directory - often `npm run build`
|
||||||
"debounceMS": 100, // アセットファイルに変更があった場合に、開発サーバが再読み込みを行うまでのデフォルトの待ち時間。
|
"frontend:build": "",
|
||||||
"devServer": "[Wailsの開発サーバをバインドするアドレス。 デフォルト値: localhost:34115]",
|
// This command has been replaced by frontend:dev:build. If frontend:dev:build is not specified will falls back to this command. \nIf this command is also not specified will falls back to frontend:build
|
||||||
"appargs": "[開発モードのときに、アプリケーションに渡されるシェルスタイルの引数。]",
|
"frontend:dev": "",
|
||||||
"runNonNativeBuildHooks": false, // ホストOS以外のOS用にビルドフックが定義されている場合、それらを実行するかどうか。
|
// This command is the dev equivalent of frontend:build. If not specified falls back to frontend:dev
|
||||||
"preBuildHooks": {
|
"frontend:dev:build": "",
|
||||||
"GOOS/GOARCH": "[指定されたGOOS/GOARCHのビルドの前に実行されるコマンド。${platform}は'GOOS/GOARCH'に置換されます。 'GOOS/GOARCH'フックは、'GOOS/*'および'*/*'フックの前に実行されます。]",
|
// This command is the dev equivalent of frontend:install. If not specified falls back to frontend:install
|
||||||
"GOOS/*": "[指定されたGOOSのビルド前に実行されるコマンド。${platform}は'GOOS/GOARCH'に置換されます。 'GOOS/*'フックは、'*/*'フックの前に実行されます。]",
|
"frontend:dev:install": "",
|
||||||
"*/*": "[毎回のビルドの前に実行されるコマンド。${platform}は'GOOS/GOARCH'に置換されます。]"
|
// This command is run in a separate process on `wails dev`. Useful for 3rd party watchers or starting 3d party dev servers
|
||||||
},
|
"frontend:dev:watcher": "",
|
||||||
"postBuildHooks": {
|
// URL to a 3rd party dev server to be used to serve assets, EG Vite. \nIf this is set to 'auto' then the devServerUrl will be inferred from the Vite output
|
||||||
"GOOS/GOARCH": "[指定されたGOOS/GOARCHのビルドの後に実行されるコマンド。${platform}は'GOOS/GOARCH'に置換され、${bin}はコンパイル済みバイナリへのパスに置換されます。 'GOOS/GOARCH'フックは、'GOOS/*'および'*/*'フックの前に実行されます。]",
|
"frontend:dev:serverUrl": "",
|
||||||
"GOOS/*": "[指定されたGOOSのビルド後に実行されるコマンド。${platform}は'GOOS/GOARCH'に置換され、${bin}はコンパイル済みバイナリへのパスに置換されます。 'GOOS/*'フックは、'*/*'フックの前に実行されます。]",
|
// Relative path to the directory that the auto-generated JS modules will be created
|
||||||
"*/*": "[毎回のビルドの後に実行されるコマンド。${platform}は'GOOS/GOARCH'に置換され、${bin}はコンパイル済みバイナリへのパスに置換されます。]"
|
"wailsjsdir": "",
|
||||||
},
|
// The name of the binary
|
||||||
"info": { // マニフェストやバージョン情報で使用されるデータ。
|
"outputfilename": "",
|
||||||
"companyName": "[会社名。 デフォルト値: [プロジェクト名]]",
|
// The default time the dev server waits to reload when it detects a change in assets
|
||||||
"productName": "[製品名。 デフォルト値: [プロジェクト名]]",
|
"debounceMS": 100,
|
||||||
"productVersion": "[製品バージョン。 デフォルト値: '1.0.0']",
|
// Address to bind the wails dev sever to. Default: localhost:34115
|
||||||
"copyright": "[製品の著作権。 デフォルト値: 'Copyright.........']",
|
"devServer": "",
|
||||||
"comments": "[アプリケーションの説明。 デフォルト値: 'Built using Wails (https://wails.app)']"
|
// Arguments passed to the application in shell style when in dev mode
|
||||||
},
|
"appargs": "",
|
||||||
"nsisType": "['multiple': アーキテクチャごとに1つのインストーラ。 'single': ビルドした全アーキテクチャに対応する単一ユニバーサルインストーラ。 デフォルト値: 'multiple']",
|
// Defines if build hooks should be run though they are defined for an OS other than the host OS.
|
||||||
"obfuscated": "[アプリ難読化を実行するかどうか。 デフォルト値: false]",
|
"runNonNativeBuildHooks": false,
|
||||||
"garbleargs": "[obfuscatedフラグがtrueの際に、garbleコマンドへ渡す引数。]"
|
"preBuildHooks": {
|
||||||
|
// The command that will be executed before a build of the specified GOOS/GOARCH: ${platform} is replaced with the "GOOS/GOARCH". The "GOOS/GOARCH" hook is executed before the "GOOS/*" and "*/*" hook.
|
||||||
|
"GOOS/GOARCH": "",
|
||||||
|
// The command that will be executed before a build of the specified GOOS: ${platform} is replaced with the "GOOS/GOARCH". The "GOOS/*" hook is executed before the "*/*" hook.
|
||||||
|
"GOOS/*": "",
|
||||||
|
// The command that will be executed before every build: ${platform} is replaced with the "GOOS/GOARCH".
|
||||||
|
"*/*": ""
|
||||||
|
},
|
||||||
|
"postBuildHooks": {
|
||||||
|
// The command that will be executed after a build of the specified GOOS/GOARCH: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary. The "GOOS/GOARCH" hook is executed before the "GOOS/*" and "*/*" hook.
|
||||||
|
"GOOS/GOARCH": "",
|
||||||
|
// The command that will be executed after a build of the specified GOOS: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary. The "GOOS/*" hook is executed before the "*/*" hook.
|
||||||
|
"GOOS/*": "",
|
||||||
|
// The command that will be executed after every build: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary.
|
||||||
|
"*/*": ""
|
||||||
|
},
|
||||||
|
// Data used to populate manifests and version info.
|
||||||
|
"info": {
|
||||||
|
// The company name. Default: [The project name]
|
||||||
|
"companyName": "",
|
||||||
|
// The product name. Default: [The project name]
|
||||||
|
"productName": "",
|
||||||
|
// The version of the product. Default: '1.0.0'
|
||||||
|
"productVersion": "",
|
||||||
|
// The copyright of the product. Default: 'Copyright.........'
|
||||||
|
"copyright": "",
|
||||||
|
// A short comment of the app. Default: 'Built using Wails (https://wails.app)'
|
||||||
|
"comments": ""
|
||||||
|
},
|
||||||
|
// 'multiple': One installer per architecture. 'single': Single universal installer for all architectures being built. Default: 'multiple'
|
||||||
|
"nsisType": "",
|
||||||
|
// Whether the app should be obfuscated. Default: false
|
||||||
|
"obfuscated": "",
|
||||||
|
// The arguments to pass to the garble command when using the obfuscated flag
|
||||||
|
"garbleargs": ""
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
このファイルは、Wails CLIで`wails build`コマンドまたは`wails dev`コマンドを実行した際に読み込まれます。
|
This file is read by the Wails CLI when running `wails build` or `wails dev`.
|
||||||
|
|
||||||
`wails build/dev`コマンドを実行時に、`assetdir`、`reloaddirs`、`wailsjsdir`、 `debounceMS`、 `devserver`、`frontenddevserverurl`フラグを使用すると、プロジェクト構成が更新され、次回以降コマンドを実行する際のデフォルト値となります。
|
The `assetdir`, `reloaddirs`, `wailsjsdir`, `debounceMS`, `devserver` and `frontenddevserverurl` flags in `wails build/dev` will update the project config
|
||||||
|
and thus become defaults for subsequent runs.
|
||||||
|
|
||||||
このファイルのJSONスキーマは、[こちら](https://wails.io/schemas/config.v2.json)にあります。
|
The JSON Schema for this file is located [here](https://wails.io/schemas/config.v2.json).
|
||||||
|
@ -13,7 +13,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
## v2.4.1 - 2022-03-20
|
### Changed
|
||||||
|
- [v3] Typescript model generation using `StructDef`s from new AST-based parser. Added by @ATenderholt in [PR1](https://github.com/wailsapp/wails/pull/2428/files) and [PR2](https://github.com/wailsapp/wails/pull/2485).
|
||||||
|
|
||||||
|
|
||||||
|
## v2.4.1 - 2023-03-20
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Support single clicks on items with `--wails-draggable: drag` again on Windows. Changed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2482)
|
- Support single clicks on items with `--wails-draggable: drag` again on Windows. Changed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2482)
|
||||||
@ -22,7 +26,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
- Fixed panic when using `wails dev` and the AssetServer tried to log to the logger. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2481)
|
- Fixed panic when using `wails dev` and the AssetServer tried to log to the logger. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2481)
|
||||||
- Fixed compatibility with WebView2 Runtime > `110.0.1587.69` which showed a `connection refused` html page before doing a reload of the frontend. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2496)
|
- Fixed compatibility with WebView2 Runtime > `110.0.1587.69` which showed a `connection refused` html page before doing a reload of the frontend. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2496)
|
||||||
|
|
||||||
## v2.4.0 - 2022-03-08
|
## v2.4.0 - 2023-03-08
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- Added Webview GPU acceleration options for [Windows](/docs/reference/options#webviewgpuisdisabled) and [Linux](/docs/reference/options#webviewgpupolicy). Added by @Lyimmi in [PR](https://github.com/wailsapp/wails/pull/2266)
|
- Added Webview GPU acceleration options for [Windows](/docs/reference/options#webviewgpuisdisabled) and [Linux](/docs/reference/options#webviewgpupolicy). Added by @Lyimmi in [PR](https://github.com/wailsapp/wails/pull/2266)
|
||||||
|
@ -1,64 +1,64 @@
|
|||||||
# Community Guide
|
# コミュニティガイド
|
||||||
|
|
||||||
The number of Wails users is growing at an incredible rate, and if you're reading this, chances are you're ready to join. So... welcome!
|
Wailsのユーザ数は驚異的な速度で増えており、これを読んでいるあなたは、すでにコミュニティに参加する準備ができているかもしれません。 さあ... ようこそ!
|
||||||
|
|
||||||
## Resources
|
## リソース
|
||||||
|
|
||||||
### Code of Conduct
|
### 行動規範
|
||||||
|
|
||||||
This [Code of Conduct](./coc) is an easy guide to develop the technical communities in which we participate.
|
[行動規範](./coc)は、私たちが参加する技術コミュニティを発展させていくための簡単なガイドになります。
|
||||||
|
|
||||||
### Stay in the Know
|
### 最新情報の入手
|
||||||
|
|
||||||
- Follow our [official Twitter account](https://twitter.com/wailsapp).
|
- [公式Twitterアカウント](https://twitter.com/wailsapp)をフォローしてください。
|
||||||
|
|
||||||
### Get Support
|
### サポートを受ける
|
||||||
|
|
||||||
- [GitHub](https://github.com/wailsapp/wails) - If you have a bug to report or feature to request, that's what the GitHub issues are for. Please respect the rules specified in each repository's issue template.
|
- [GitHub](https://github.com/wailsapp/wails) - バグの報告や機能のリクエストは、GitHubのイシューで行ってください。 その際、各リポジトリのイシューテンプレートで指定されているルールを順守してください。
|
||||||
- [Discord](https://discord.gg/JDdSxwjhGf) - A place for Wails devs to meet and chat in real time.
|
- [Discord](https://discord.gg/JDdSxwjhGf) - Wailsの開発者たちが集ってリアルタイムにチャットをしている場所です。
|
||||||
- [QQ Group(中文)](https://qm.qq.com/cgi-bin/qm/qr?k=PmIURne5hFGNd7QWzW5qd6FV-INEjNJv&jump_from=webapi) - A Wails group for Chinese developers to communicate, where you can get help from other developers.
|
- [QQ Group(中文)](https://qm.qq.com/cgi-bin/qm/qr?k=PmIURne5hFGNd7QWzW5qd6FV-INEjNJv&jump_from=webapi) - 中国の開発者がコミュニケーションをするためのWailsグループで、他の開発者に助けを求めることができます。
|
||||||
|
|
||||||
### Explore the Ecosystem
|
### エコシステムの探索
|
||||||
|
|
||||||
- [The Awesome Wails Page](https://github.com/wailsapp/awesome-wails) - See what other awesome resources have been published by other awesome people.
|
- [The Awesome Wails Page](https://github.com/wailsapp/awesome-wails) - 素晴らしい人によって公開された素晴らしいリソースを見つけてみましょう。
|
||||||
|
|
||||||
## Ways of contributing
|
## 貢献方法
|
||||||
|
|
||||||
Wails is an open source, community driven project. We welcome anyone to join us in contributing to the project. This documentation is aimed at anyone wishing to get familiar with the project and the development processes.
|
Wailsはオープンソースであり、コミュニティ主導のプロジェクトです。 プロジェクトへ貢献していただける皆さんを歓迎します。 このドキュメントは、プロジェクトや開発プロセスに精通したい人を対象としています。
|
||||||
|
|
||||||
There are many ways to contribute to the project:
|
プロジェクトへの貢献方法はたくさんあります:
|
||||||
|
|
||||||
- Developing new features
|
- 新しい機能の開発
|
||||||
- Fixing bugs
|
- バグの修正
|
||||||
- Testing
|
- テスト
|
||||||
- Documenting features
|
- 機能のドキュメント化
|
||||||
- Writing tutorials / guides
|
- チュートリアルやガイドの執筆
|
||||||
- Helping others on the issues + discussions boards
|
- イシュー上で他者を助ける + ディスカッションボード
|
||||||
|
|
||||||
Guides for these have been created in their own sections. Before getting started, please introduce yourself in the [Contributing to Wails](https://github.com/wailsapp/wails/discussions/1520) discussion.
|
それぞれの貢献方法について、各セクションで説明します。 まず初めに、[Contributing to Wails](https://github.com/wailsapp/wails/discussions/1520)ディスカッションで自己紹介をしましょう。
|
||||||
|
|
||||||
### Developing New Features
|
### 新しい機能の開発
|
||||||
|
|
||||||
We are always keen to add features to Wails and expand on what the project can do. The process for adding new features are as follows:
|
私たちは常に、Wailsへ新しい機能を組み込んでいき、プロジェクトでできることを増やしていきたいと考えています。 新しい機能を追加するプロセスは次のとおりです:
|
||||||
|
|
||||||
- Pick an enhancement ticket with the "TODO" label. It's preferable to select one from the current [Backlog](https://github.com/orgs/wailsapp/projects/1/views/1) but the choice is yours.
|
- "TODO"ラベルがついたenhancementチケットを選びます。 現時点での[バックログ](https://github.com/orgs/wailsapp/projects/1/views/1)から1つを選ぶことをお勧めしますが、何を選ぶかはあなた次第です。
|
||||||
- Before developing, check that the ticket includes the following information:
|
- 開発を始める前に、チケットに以下の情報が含まれていることを確認してください:
|
||||||
- The purpose of the enhancement
|
- 機能強化の目的
|
||||||
- What is out of scope for the enhancement
|
- 機能強化の対象外となる範囲
|
||||||
- What platforms the enhancement targets (most features should be cross-platform unless there's a very specific reason)
|
- 機能強化の対象となるプラットフォーム (特別な理由がない限り、ほぼすべての機能はクロスプラットフォーム対応でなければなりません)
|
||||||
- If the ticket does not include this information, feel free to request the information from the person who opened the ticket. Sometimes placeholder tickets are created and require more details
|
- チケットにこれらの情報が含まれていない場合、チケットをオープンした人に、これらの情報をリクエストしてください。 プレースホルダーのチケットが作成され、より詳細な情報が必要となる場合もあります。
|
||||||
- Comment on the ticket stating if you wish to develop the feature
|
- あなたが当該チケットの機能を開発したい場合は、チケットにコメントをしてください。
|
||||||
- Clone the repository and create a branch with the format `feature/<ticket_number>_<ticket_title>`
|
- リポジトリをクローンし、`feature/<ticket_number>_<ticket_title>`の形式でブランチを作成してください。
|
||||||
- New features often require documentation so please ensure you have also added or updated the documentation as part of the changes
|
- 新しい機能に関するドキュメントが必要となる場合がほとんどですので、変更の一環として、ドキュメントを追加または変更してください。
|
||||||
- Once the feature is ready for testing, create a draft PR. Please ensure the PR description has the test scenarios and test cases listed with checkmarks, so that others can know what still needs to be tested.
|
- 機能をテストする準備ができたら、プルリクエストのドラフトを作成してください。 プルリクエストの説明欄には、テストシナリオおよびチェックマーク付きのテストケースをリストアップしてください。これにより、何をテストすべきなのかを他の人が把握できるようになります。
|
||||||
- Once all the testing is completed, please update the status of the PR from draft and leave a message.
|
- すべてのテストが完了したら、プルリクエストのステータスをドラフトから更新し、メッセージを残してください。
|
||||||
|
|
||||||
:::note
|
:::備考
|
||||||
There is nothing stopping you from opening a ticket and working on it yourself, but please be aware that all enhancement requests are reviewed for good fit. Not all ideas will be selected, so it's best to have discussion about the enhancement first.
|
自分でチケットをオープンして作業することを止めはしませんが、すべての機能強化リクエストは、それが適切かどうかを審査されているという点に留意してください。 すべてのアイデアが採択されるわけでは無いため、まずは当該機能強化についてディスカッションすることを推奨します。
|
||||||
:::
|
:::
|
||||||
|
|
||||||
:::warning
|
:::警告
|
||||||
Any PRs opened without a corresponding ticket may be rejected.
|
紐づくチケットが無い状態でオープンされたプルリクエストは、リジェクトされることがあります。
|
||||||
:::
|
:::
|
||||||
|
|
||||||
### Fixing Bugs
|
### Fixing Bugs
|
||||||
@ -66,26 +66,26 @@ Any PRs opened without a corresponding ticket may be rejected.
|
|||||||
The process for fixing bugs are as follows:
|
The process for fixing bugs are as follows:
|
||||||
|
|
||||||
- Check the current [Backlog](https://github.com/orgs/wailsapp/projects/1/views/1) and select a bug to fix
|
- Check the current [Backlog](https://github.com/orgs/wailsapp/projects/1/views/1) and select a bug to fix
|
||||||
- Before developing, check that the ticket includes the following information:
|
- 開発を始める前に、チケットに以下の情報が含まれていることを確認してください:
|
||||||
- The scope of the issue including platforms affected
|
- The scope of the issue including platforms affected
|
||||||
- The steps to reproduce. Sometimes bugs are opened that are not Wails issues and the onus is on the reporter to prove that it is a Wails issue with a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example)
|
- The steps to reproduce. Sometimes bugs are opened that are not Wails issues and the onus is on the reporter to prove that it is a Wails issue with a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example)
|
||||||
- The output of `wails doctor`
|
- The output of `wails doctor`
|
||||||
- A test that can reproduce the bug
|
- A test that can reproduce the bug
|
||||||
- If the ticket does not include this information, feel free to request the information from the person who opened the ticket.
|
- チケットにこれらの情報が含まれていない場合、チケットをオープンした人に、これらの情報をリクエストしてください。
|
||||||
- Comment on the ticket stating you wish to develop a fix
|
- Comment on the ticket stating you wish to develop a fix
|
||||||
- Clone the repository and create a branch with the format `bugfix/<ticket_number>_<ticket_title>`
|
- Clone the repository and create a branch with the format `bugfix/<ticket_number>_<ticket_title>`
|
||||||
- Once the fix is ready for testing, create a draft PR. Please ensure the PR description has the test scenarios and test cases listed with checkmarks, so that others can know what still needs to be tested.
|
- Once the fix is ready for testing, create a draft PR. プルリクエストの説明欄には、テストシナリオおよびチェックマーク付きのテストケースをリストアップしてください。これにより、何をテストすべきなのかを他の人が把握できるようになります。
|
||||||
- Once all the testing is completed, please update the status of the PR from draft and leave a message.
|
- すべてのテストが完了したら、プルリクエストのステータスをドラフトから更新し、メッセージを残してください。
|
||||||
|
|
||||||
:::note
|
:::note
|
||||||
There is nothing stopping you from opening a ticket and working on it yourself, but please be aware that all bugfixes should be discussed as the approach may have unintended side effects.
|
There is nothing stopping you from opening a ticket and working on it yourself, but please be aware that all bugfixes should be discussed as the approach may have unintended side effects.
|
||||||
:::
|
:::
|
||||||
|
|
||||||
:::warning
|
:::警告
|
||||||
Any PRs opened without a corresponding ticket may be rejected.
|
紐づくチケットが無い状態でオープンされたプルリクエストは、リジェクトされることがあります。
|
||||||
:::
|
:::
|
||||||
|
|
||||||
### Testing
|
### テスト
|
||||||
|
|
||||||
Testing is vitally important to ensure quality in the project. There are a couple of scenarios where testing can really help the project:
|
Testing is vitally important to ensure quality in the project. There are a couple of scenarios where testing can really help the project:
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
# FAQ
|
# FAQ
|
||||||
|
|
||||||
## What's with the name?
|
## 名前の由来は何ですか?
|
||||||
|
|
||||||
When I saw WebView, I thought "What I really want is tooling around building a WebView app, a bit like Rails is to Ruby". So initially it was a play on words (**W**ebview on R**ails**). It just so happened to also be a homophone of the English name for the [Country](https://en.wikipedia.org/wiki/Wales) I am from. So it stuck.
|
WebView を見たとき、私はこう思いました。「私が本当に欲しいのは、WebView アプリを構築するためのツールであり、Ruby に対する Rails のようなものである」と。 そのため、最初は言葉遊びのつもりでした (**W**ebview on R**ails**)。 また、私の[出身国](https://en.wikipedia.org/wiki/Wales)の英語名と同音異義語でもあります。 そしてこの名前が定着しました。
|
||||||
|
|
||||||
## Is this an alternative to Electron?
|
## Electron の代替品になりますか?
|
||||||
|
|
||||||
Depends on your requirements. It's designed to make it easy for Go programmers to make lightweight desktop applications or add a frontend to their existing applications. Wails v2 does offer native elements such as menus and dialogs, so it is becoming a lightweight electron alternative.
|
それはあなたの求める要件によります。 WailsはGoプログラマーが簡単に軽量のデスクトップアプリケーションを作成したり、既存のアプリケーションにフロントエンドを追加できるように設計されています。 Wails v2ではメニューやダイアログといったネイティブな要素を提供するようになったため、軽量な Electron の代替となりつつあります。
|
||||||
|
@ -8,50 +8,85 @@ The project config resides in the `wails.json` file in the project directory. Th
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"name": "[The project name]",
|
// Project config version
|
||||||
"assetdir": "[Relative path to the directory containing the compiled assets, this is normally inferred and could be left empty]",
|
"version": "",
|
||||||
"reloaddirs": "[Additional directories to trigger reloads (comma separated), this is only used for some advanced asset configurations]",
|
// The project name
|
||||||
"build:dir": "[The directory where the build files reside. Defaults to 'build']",
|
"name": "",
|
||||||
"frontend:dir": "[Relative path to the frontend directory. Defaults to 'frontend']",
|
// Relative path to the directory containing the compiled assets, this is normally inferred and could be left empty
|
||||||
"frontend:install": "[The command to install node dependencies, run in the frontend directory - often `npm install`]",
|
"assetdir": "",
|
||||||
"frontend:build": "[The command to build the assets, run in the frontend directory - often `npm run build`]",
|
// Additional directories to trigger reloads (comma separated), this is only used for some advanced asset configurations
|
||||||
"frontend:dev": "[This command has been replaced by frontend:dev:build. If frontend:dev:build is not specified will falls back to this command. \nIf this command is also not specified will falls back to frontend:build]",
|
"reloaddirs": "",
|
||||||
"frontend:dev:build": "[This command is the dev equivalent of frontend:build. If not specified falls back to frontend:dev]",
|
// The directory where the build files reside. Defaults to 'build'
|
||||||
"frontend:dev:install": "[This command is the dev equivalent of frontend:install. If not specified falls back to frontend:install]",
|
"build:dir": "",
|
||||||
"frontend:dev:watcher": "[This command is run in a separate process on `wails dev`. Useful for 3rd party watchers or starting 3d party dev servers]",
|
// Relative path to the frontend directory. Defaults to 'frontend'
|
||||||
"frontend:dev:serverUrl": "[URL to a 3rd party dev server to be used to serve assets, EG Vite. \nIf this is set to 'auto' then the devServerUrl will be inferred from the Vite output]",
|
"frontend:dir": "",
|
||||||
"wailsjsdir": "[Relative path to the directory that the auto-generated JS modules will be created]",
|
// The command to install node dependencies, run in the frontend directory - often `npm install`
|
||||||
"version": "[Project config version]",
|
"frontend:install": "",
|
||||||
"outputfilename": "[The name of the binary]",
|
// The command to build the assets, run in the frontend directory - often `npm run build`
|
||||||
"debounceMS": 100, // The default time the dev server waits to reload when it detects a change in assets
|
"frontend:build": "",
|
||||||
"devServer": "[Address to bind the wails dev sever to. Default: localhost:34115]",
|
// This command has been replaced by frontend:dev:build. If frontend:dev:build is not specified will falls back to this command. \nIf this command is also not specified will falls back to frontend:build
|
||||||
"appargs": "[Arguments passed to the application in shell style when in dev mode]",
|
"frontend:dev": "",
|
||||||
"runNonNativeBuildHooks": false, // Defines if build hooks should be run though they are defined for an OS other than the host OS.
|
// This command is the dev equivalent of frontend:build. If not specified falls back to frontend:dev
|
||||||
"preBuildHooks": {
|
"frontend:dev:build": "",
|
||||||
"GOOS/GOARCH": "[The command that will be executed before a build of the specified GOOS/GOARCH: ${platform} is replaced with the "GOOS/GOARCH". The "GOOS/GOARCH" hook is executed before the "GOOS/*" and "*/*" hook.]",
|
// This command is the dev equivalent of frontend:install. If not specified falls back to frontend:install
|
||||||
"GOOS/*": "[The command that will be executed before a build of the specified GOOS: ${platform} is replaced with the "GOOS/GOARCH". The "GOOS/*" hook is executed before the "*/*" hook.]",
|
"frontend:dev:install": "",
|
||||||
"*/*": "[The command that will be executed before every build: ${platform} is replaced with the "GOOS/GOARCH".]"
|
// This command is run in a separate process on `wails dev`. Useful for 3rd party watchers or starting 3d party dev servers
|
||||||
},
|
"frontend:dev:watcher": "",
|
||||||
"postBuildHooks": {
|
// URL to a 3rd party dev server to be used to serve assets, EG Vite. \nIf this is set to 'auto' then the devServerUrl will be inferred from the Vite output
|
||||||
"GOOS/GOARCH": "[The command that will be executed after a build of the specified GOOS/GOARCH: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary. The "GOOS/GOARCH" hook is executed before the "GOOS/*" and "*/*" hook.]",
|
"frontend:dev:serverUrl": "",
|
||||||
"GOOS/*": "[The command that will be executed after a build of the specified GOOS: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary. The "GOOS/*" hook is executed before the "*/*" hook.]",
|
// Relative path to the directory that the auto-generated JS modules will be created
|
||||||
"*/*": "[The command that will be executed after every build: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary.]"
|
"wailsjsdir": "",
|
||||||
},
|
// The name of the binary
|
||||||
"info": { // Data used to populate manifests and version info.
|
"outputfilename": "",
|
||||||
"companyName": "[The company name. Default: [The project name]]",
|
// The default time the dev server waits to reload when it detects a change in assets
|
||||||
"productName": "[The product name. Default: [The project name]]",
|
"debounceMS": 100,
|
||||||
"productVersion": "[The version of the product. Default: '1.0.0']",
|
// Address to bind the wails dev sever to. Default: localhost:34115
|
||||||
"copyright": "[The copyright of the product. Default: 'Copyright.........']",
|
"devServer": "",
|
||||||
"comments": "[A short comment of the app. Default: 'Built using Wails (https://wails.app)']"
|
// Arguments passed to the application in shell style when in dev mode
|
||||||
},
|
"appargs": "",
|
||||||
"nsisType": "['multiple': One installer per architecture. 'single': Single universal installer for all architectures being built. Default: 'multiple']",
|
// Defines if build hooks should be run though they are defined for an OS other than the host OS.
|
||||||
"obfuscated": "[Whether the app should be obfuscated. Default: false]",
|
"runNonNativeBuildHooks": false,
|
||||||
"garbleargs": "[The arguments to pass to the garble command when using the obfuscated flag]"
|
"preBuildHooks": {
|
||||||
|
// The command that will be executed before a build of the specified GOOS/GOARCH: ${platform} is replaced with the "GOOS/GOARCH". The "GOOS/GOARCH" hook is executed before the "GOOS/*" and "*/*" hook.
|
||||||
|
"GOOS/GOARCH": "",
|
||||||
|
// The command that will be executed before a build of the specified GOOS: ${platform} is replaced with the "GOOS/GOARCH". The "GOOS/*" hook is executed before the "*/*" hook.
|
||||||
|
"GOOS/*": "",
|
||||||
|
// The command that will be executed before every build: ${platform} is replaced with the "GOOS/GOARCH".
|
||||||
|
"*/*": ""
|
||||||
|
},
|
||||||
|
"postBuildHooks": {
|
||||||
|
// The command that will be executed after a build of the specified GOOS/GOARCH: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary. The "GOOS/GOARCH" hook is executed before the "GOOS/*" and "*/*" hook.
|
||||||
|
"GOOS/GOARCH": "",
|
||||||
|
// The command that will be executed after a build of the specified GOOS: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary. The "GOOS/*" hook is executed before the "*/*" hook.
|
||||||
|
"GOOS/*": "",
|
||||||
|
// The command that will be executed after every build: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary.
|
||||||
|
"*/*": ""
|
||||||
|
},
|
||||||
|
// Data used to populate manifests and version info.
|
||||||
|
"info": {
|
||||||
|
// The company name. Default: [The project name]
|
||||||
|
"companyName": "",
|
||||||
|
// The product name. Default: [The project name]
|
||||||
|
"productName": "",
|
||||||
|
// The version of the product. Default: '1.0.0'
|
||||||
|
"productVersion": "",
|
||||||
|
// The copyright of the product. Default: 'Copyright.........'
|
||||||
|
"copyright": "",
|
||||||
|
// A short comment of the app. Default: 'Built using Wails (https://wails.app)'
|
||||||
|
"comments": ""
|
||||||
|
},
|
||||||
|
// 'multiple': One installer per architecture. 'single': Single universal installer for all architectures being built. Default: 'multiple'
|
||||||
|
"nsisType": "",
|
||||||
|
// Whether the app should be obfuscated. Default: false
|
||||||
|
"obfuscated": "",
|
||||||
|
// The arguments to pass to the garble command when using the obfuscated flag
|
||||||
|
"garbleargs": ""
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
This file is read by the Wails CLI when running `wails build` or `wails dev`.
|
This file is read by the Wails CLI when running `wails build` or `wails dev`.
|
||||||
|
|
||||||
The `assetdir`, `reloaddirs`, `wailsjsdir`, `debounceMS`, `devserver` and `frontenddevserverurl` flags in `wails build/dev` will update the project config and thus become defaults for subsequent runs.
|
The `assetdir`, `reloaddirs`, `wailsjsdir`, `debounceMS`, `devserver` and `frontenddevserverurl` flags in `wails build/dev` will update the project config
|
||||||
|
and thus become defaults for subsequent runs.
|
||||||
|
|
||||||
The JSON Schema for this file is located [here](https://wails.io/schemas/config.v2.json).
|
The JSON Schema for this file is located [here](https://wails.io/schemas/config.v2.json).
|
||||||
|
@ -13,7 +13,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
## v2.4.1 - 2022-03-20
|
### Changed
|
||||||
|
- [v3] Typescript model generation using `StructDef`s from new AST-based parser. Added by @ATenderholt in [PR1](https://github.com/wailsapp/wails/pull/2428/files) and [PR2](https://github.com/wailsapp/wails/pull/2485).
|
||||||
|
|
||||||
|
|
||||||
|
## v2.4.1 - 2023-03-20
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Support single clicks on items with `--wails-draggable: drag` again on Windows. Changed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2482)
|
- Support single clicks on items with `--wails-draggable: drag` again on Windows. Changed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2482)
|
||||||
@ -22,7 +26,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
- Fixed panic when using `wails dev` and the AssetServer tried to log to the logger. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2481)
|
- Fixed panic when using `wails dev` and the AssetServer tried to log to the logger. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2481)
|
||||||
- Fixed compatibility with WebView2 Runtime > `110.0.1587.69` which showed a `connection refused` html page before doing a reload of the frontend. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2496)
|
- Fixed compatibility with WebView2 Runtime > `110.0.1587.69` which showed a `connection refused` html page before doing a reload of the frontend. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2496)
|
||||||
|
|
||||||
## v2.4.0 - 2022-03-08
|
## v2.4.0 - 2023-03-08
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- Added Webview GPU acceleration options for [Windows](/docs/reference/options#webviewgpuisdisabled) and [Linux](/docs/reference/options#webviewgpupolicy). Added by @Lyimmi in [PR](https://github.com/wailsapp/wails/pull/2266)
|
- Added Webview GPU acceleration options for [Windows](/docs/reference/options#webviewgpuisdisabled) and [Linux](/docs/reference/options#webviewgpupolicy). Added by @Lyimmi in [PR](https://github.com/wailsapp/wails/pull/2266)
|
||||||
|
@ -8,50 +8,85 @@ The project config resides in the `wails.json` file in the project directory. Th
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"name": "[The project name]",
|
// Project config version
|
||||||
"assetdir": "[Relative path to the directory containing the compiled assets, this is normally inferred and could be left empty]",
|
"version": "",
|
||||||
"reloaddirs": "[Additional directories to trigger reloads (comma separated), this is only used for some advanced asset configurations]",
|
// The project name
|
||||||
"build:dir": "[The directory where the build files reside. Defaults to 'build']",
|
"name": "",
|
||||||
"frontend:dir": "[Relative path to the frontend directory. Defaults to 'frontend']",
|
// Relative path to the directory containing the compiled assets, this is normally inferred and could be left empty
|
||||||
"frontend:install": "[The command to install node dependencies, run in the frontend directory - often `npm install`]",
|
"assetdir": "",
|
||||||
"frontend:build": "[The command to build the assets, run in the frontend directory - often `npm run build`]",
|
// Additional directories to trigger reloads (comma separated), this is only used for some advanced asset configurations
|
||||||
"frontend:dev": "[This command has been replaced by frontend:dev:build. If frontend:dev:build is not specified will falls back to this command. \nIf this command is also not specified will falls back to frontend:build]",
|
"reloaddirs": "",
|
||||||
"frontend:dev:build": "[This command is the dev equivalent of frontend:build. If not specified falls back to frontend:dev]",
|
// The directory where the build files reside. Defaults to 'build'
|
||||||
"frontend:dev:install": "[This command is the dev equivalent of frontend:install. If not specified falls back to frontend:install]",
|
"build:dir": "",
|
||||||
"frontend:dev:watcher": "[This command is run in a separate process on `wails dev`. Useful for 3rd party watchers or starting 3d party dev servers]",
|
// Relative path to the frontend directory. Defaults to 'frontend'
|
||||||
"frontend:dev:serverUrl": "[URL to a 3rd party dev server to be used to serve assets, EG Vite. \nIf this is set to 'auto' then the devServerUrl will be inferred from the Vite output]",
|
"frontend:dir": "",
|
||||||
"wailsjsdir": "[Relative path to the directory that the auto-generated JS modules will be created]",
|
// The command to install node dependencies, run in the frontend directory - often `npm install`
|
||||||
"version": "[Project config version]",
|
"frontend:install": "",
|
||||||
"outputfilename": "[The name of the binary]",
|
// The command to build the assets, run in the frontend directory - often `npm run build`
|
||||||
"debounceMS": 100, // The default time the dev server waits to reload when it detects a change in assets
|
"frontend:build": "",
|
||||||
"devServer": "[Address to bind the wails dev sever to. Default: localhost:34115]",
|
// This command has been replaced by frontend:dev:build. If frontend:dev:build is not specified will falls back to this command. \nIf this command is also not specified will falls back to frontend:build
|
||||||
"appargs": "[Arguments passed to the application in shell style when in dev mode]",
|
"frontend:dev": "",
|
||||||
"runNonNativeBuildHooks": false, // Defines if build hooks should be run though they are defined for an OS other than the host OS.
|
// This command is the dev equivalent of frontend:build. If not specified falls back to frontend:dev
|
||||||
"preBuildHooks": {
|
"frontend:dev:build": "",
|
||||||
"GOOS/GOARCH": "[The command that will be executed before a build of the specified GOOS/GOARCH: ${platform} is replaced with the "GOOS/GOARCH". The "GOOS/GOARCH" hook is executed before the "GOOS/*" and "*/*" hook.]",
|
// This command is the dev equivalent of frontend:install. If not specified falls back to frontend:install
|
||||||
"GOOS/*": "[The command that will be executed before a build of the specified GOOS: ${platform} is replaced with the "GOOS/GOARCH". The "GOOS/*" hook is executed before the "*/*" hook.]",
|
"frontend:dev:install": "",
|
||||||
"*/*": "[The command that will be executed before every build: ${platform} is replaced with the "GOOS/GOARCH".]"
|
// This command is run in a separate process on `wails dev`. Useful for 3rd party watchers or starting 3d party dev servers
|
||||||
},
|
"frontend:dev:watcher": "",
|
||||||
"postBuildHooks": {
|
// URL to a 3rd party dev server to be used to serve assets, EG Vite. \nIf this is set to 'auto' then the devServerUrl will be inferred from the Vite output
|
||||||
"GOOS/GOARCH": "[The command that will be executed after a build of the specified GOOS/GOARCH: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary. The "GOOS/GOARCH" hook is executed before the "GOOS/*" and "*/*" hook.]",
|
"frontend:dev:serverUrl": "",
|
||||||
"GOOS/*": "[The command that will be executed after a build of the specified GOOS: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary. The "GOOS/*" hook is executed before the "*/*" hook.]",
|
// Relative path to the directory that the auto-generated JS modules will be created
|
||||||
"*/*": "[The command that will be executed after every build: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary.]"
|
"wailsjsdir": "",
|
||||||
},
|
// The name of the binary
|
||||||
"info": { // Data used to populate manifests and version info.
|
"outputfilename": "",
|
||||||
"companyName": "[The company name. Default: [The project name]]",
|
// The default time the dev server waits to reload when it detects a change in assets
|
||||||
"productName": "[The product name. Default: [The project name]]",
|
"debounceMS": 100,
|
||||||
"productVersion": "[The version of the product. Default: '1.0.0']",
|
// Address to bind the wails dev sever to. Default: localhost:34115
|
||||||
"copyright": "[The copyright of the product. Default: 'Copyright.........']",
|
"devServer": "",
|
||||||
"comments": "[A short comment of the app. Default: 'Built using Wails (https://wails.app)']"
|
// Arguments passed to the application in shell style when in dev mode
|
||||||
},
|
"appargs": "",
|
||||||
"nsisType": "['multiple': One installer per architecture. 'single': Single universal installer for all architectures being built. Default: 'multiple']",
|
// Defines if build hooks should be run though they are defined for an OS other than the host OS.
|
||||||
"obfuscated": "[Whether the app should be obfuscated. Default: false]",
|
"runNonNativeBuildHooks": false,
|
||||||
"garbleargs": "[The arguments to pass to the garble command when using the obfuscated flag]"
|
"preBuildHooks": {
|
||||||
|
// The command that will be executed before a build of the specified GOOS/GOARCH: ${platform} is replaced with the "GOOS/GOARCH". The "GOOS/GOARCH" hook is executed before the "GOOS/*" and "*/*" hook.
|
||||||
|
"GOOS/GOARCH": "",
|
||||||
|
// The command that will be executed before a build of the specified GOOS: ${platform} is replaced with the "GOOS/GOARCH". The "GOOS/*" hook is executed before the "*/*" hook.
|
||||||
|
"GOOS/*": "",
|
||||||
|
// The command that will be executed before every build: ${platform} is replaced with the "GOOS/GOARCH".
|
||||||
|
"*/*": ""
|
||||||
|
},
|
||||||
|
"postBuildHooks": {
|
||||||
|
// The command that will be executed after a build of the specified GOOS/GOARCH: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary. The "GOOS/GOARCH" hook is executed before the "GOOS/*" and "*/*" hook.
|
||||||
|
"GOOS/GOARCH": "",
|
||||||
|
// The command that will be executed after a build of the specified GOOS: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary. The "GOOS/*" hook is executed before the "*/*" hook.
|
||||||
|
"GOOS/*": "",
|
||||||
|
// The command that will be executed after every build: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary.
|
||||||
|
"*/*": ""
|
||||||
|
},
|
||||||
|
// Data used to populate manifests and version info.
|
||||||
|
"info": {
|
||||||
|
// The company name. Default: [The project name]
|
||||||
|
"companyName": "",
|
||||||
|
// The product name. Default: [The project name]
|
||||||
|
"productName": "",
|
||||||
|
// The version of the product. Default: '1.0.0'
|
||||||
|
"productVersion": "",
|
||||||
|
// The copyright of the product. Default: 'Copyright.........'
|
||||||
|
"copyright": "",
|
||||||
|
// A short comment of the app. Default: 'Built using Wails (https://wails.app)'
|
||||||
|
"comments": ""
|
||||||
|
},
|
||||||
|
// 'multiple': One installer per architecture. 'single': Single universal installer for all architectures being built. Default: 'multiple'
|
||||||
|
"nsisType": "",
|
||||||
|
// Whether the app should be obfuscated. Default: false
|
||||||
|
"obfuscated": "",
|
||||||
|
// The arguments to pass to the garble command when using the obfuscated flag
|
||||||
|
"garbleargs": ""
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
This file is read by the Wails CLI when running `wails build` or `wails dev`.
|
This file is read by the Wails CLI when running `wails build` or `wails dev`.
|
||||||
|
|
||||||
The `assetdir`, `reloaddirs`, `wailsjsdir`, `debounceMS`, `devserver` and `frontenddevserverurl` flags in `wails build/dev` will update the project config and thus become defaults for subsequent runs.
|
The `assetdir`, `reloaddirs`, `wailsjsdir`, `debounceMS`, `devserver` and `frontenddevserverurl` flags in `wails build/dev` will update the project config
|
||||||
|
and thus become defaults for subsequent runs.
|
||||||
|
|
||||||
The JSON Schema for this file is located [here](https://wails.io/schemas/config.v2.json).
|
The JSON Schema for this file is located [here](https://wails.io/schemas/config.v2.json).
|
||||||
|
@ -13,7 +13,11 @@ O formato é baseado em [Manter um Log de Alterações](https://keepachangelog.c
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
## v2.4.1 - 2022-03-20
|
### Alterado
|
||||||
|
- [v3] Typescript model generation using `StructDef`s from new AST-based parser. Added by @ATenderholt in [PR1](https://github.com/wailsapp/wails/pull/2428/files) and [PR2](https://github.com/wailsapp/wails/pull/2485).
|
||||||
|
|
||||||
|
|
||||||
|
## v2.4.1 - 2023-03-20
|
||||||
|
|
||||||
### Alterado
|
### Alterado
|
||||||
- Support single clicks on items with `--wails-draggable: drag` again on Windows. Changed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2482)
|
- Support single clicks on items with `--wails-draggable: drag` again on Windows. Changed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2482)
|
||||||
@ -22,7 +26,7 @@ O formato é baseado em [Manter um Log de Alterações](https://keepachangelog.c
|
|||||||
- Fixed panic when using `wails dev` and the AssetServer tried to log to the logger. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2481)
|
- Fixed panic when using `wails dev` and the AssetServer tried to log to the logger. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2481)
|
||||||
- Fixed compatibility with WebView2 Runtime > `110.0.1587.69` which showed a `connection refused` html page before doing a reload of the frontend. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2496)
|
- Fixed compatibility with WebView2 Runtime > `110.0.1587.69` which showed a `connection refused` html page before doing a reload of the frontend. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2496)
|
||||||
|
|
||||||
## v2.4.0 - 2022-03-08
|
## v2.4.0 - 2023-03-08
|
||||||
|
|
||||||
### Adicionado
|
### Adicionado
|
||||||
- Added Webview GPU acceleration options for [Windows](/docs/reference/options#webviewgpuisdisabled) and [Linux](/docs/reference/options#webviewgpupolicy). Added by @Lyimmi in [PR](https://github.com/wailsapp/wails/pull/2266)
|
- Added Webview GPU acceleration options for [Windows](/docs/reference/options#webviewgpuisdisabled) and [Linux](/docs/reference/options#webviewgpupolicy). Added by @Lyimmi in [PR](https://github.com/wailsapp/wails/pull/2266)
|
||||||
|
@ -2,56 +2,91 @@
|
|||||||
sidebar_position: 5
|
sidebar_position: 5
|
||||||
---
|
---
|
||||||
|
|
||||||
# Настройка проекта
|
# Project Config
|
||||||
|
|
||||||
Конфигурация проекта находится в файле `wails.json` в каталоге проекта. Структура конфигурации:
|
The project config resides in the `wails.json` file in the project directory. The structure of the config is:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"name": "[The project name]",
|
// Project config version
|
||||||
"assetdir": "[Relative path to the directory containing the compiled assets, this is normally inferred and could be left empty]",
|
"version": "",
|
||||||
"reloaddirs": "[Additional directories to trigger reloads (comma separated), this is only used for some advanced asset configurations]",
|
// The project name
|
||||||
"build:dir": "[The directory where the build files reside. Defaults to 'build']",
|
"name": "",
|
||||||
"frontend:dir": "[Relative path to the frontend directory. Defaults to 'frontend']",
|
// Relative path to the directory containing the compiled assets, this is normally inferred and could be left empty
|
||||||
"frontend:install": "[The command to install node dependencies, run in the frontend directory - often `npm install`]",
|
"assetdir": "",
|
||||||
"frontend:build": "[The command to build the assets, run in the frontend directory - often `npm run build`]",
|
// Additional directories to trigger reloads (comma separated), this is only used for some advanced asset configurations
|
||||||
"frontend:dev": "[This command has been replaced by frontend:dev:build. If frontend:dev:build is not specified will falls back to this command. \nIf this command is also not specified will falls back to frontend:build]",
|
"reloaddirs": "",
|
||||||
"frontend:dev:build": "[This command is the dev equivalent of frontend:build. If not specified falls back to frontend:dev]",
|
// The directory where the build files reside. Defaults to 'build'
|
||||||
"frontend:dev:install": "[This command is the dev equivalent of frontend:install. If not specified falls back to frontend:install]",
|
"build:dir": "",
|
||||||
"frontend:dev:watcher": "[This command is run in a separate process on `wails dev`. Useful for 3rd party watchers or starting 3d party dev servers]",
|
// Relative path to the frontend directory. Defaults to 'frontend'
|
||||||
"frontend:dev:serverUrl": "[URL to a 3rd party dev server to be used to serve assets, EG Vite. \nIf this is set to 'auto' then the devServerUrl will be inferred from the Vite output]",
|
"frontend:dir": "",
|
||||||
"wailsjsdir": "[Relative path to the directory that the auto-generated JS modules will be created]",
|
// The command to install node dependencies, run in the frontend directory - often `npm install`
|
||||||
"version": "[Project config version]",
|
"frontend:install": "",
|
||||||
"outputfilename": "[The name of the binary]",
|
// The command to build the assets, run in the frontend directory - often `npm run build`
|
||||||
"debounceMS": 100, // The default time the dev server waits to reload when it detects a change in assets
|
"frontend:build": "",
|
||||||
"devServer": "[Address to bind the wails dev sever to. Default: localhost:34115]",
|
// This command has been replaced by frontend:dev:build. If frontend:dev:build is not specified will falls back to this command. \nIf this command is also not specified will falls back to frontend:build
|
||||||
"appargs": "[Arguments passed to the application in shell style when in dev mode]",
|
"frontend:dev": "",
|
||||||
"runNonNativeBuildHooks": false, // Defines if build hooks should be run though they are defined for an OS other than the host OS.
|
// This command is the dev equivalent of frontend:build. If not specified falls back to frontend:dev
|
||||||
"preBuildHooks": {
|
"frontend:dev:build": "",
|
||||||
"GOOS/GOARCH": "[The command that will be executed before a build of the specified GOOS/GOARCH: ${platform} is replaced with the "GOOS/GOARCH". The "GOOS/GOARCH" hook is executed before the "GOOS/*" and "*/*" hook.]",
|
// This command is the dev equivalent of frontend:install. If not specified falls back to frontend:install
|
||||||
"GOOS/*": "[The command that will be executed before a build of the specified GOOS: ${platform} is replaced with the "GOOS/GOARCH". The "GOOS/*" hook is executed before the "*/*" hook.]",
|
"frontend:dev:install": "",
|
||||||
"*/*": "[The command that will be executed before every build: ${platform} is replaced with the "GOOS/GOARCH".]"
|
// This command is run in a separate process on `wails dev`. Useful for 3rd party watchers or starting 3d party dev servers
|
||||||
},
|
"frontend:dev:watcher": "",
|
||||||
"postBuildHooks": {
|
// URL to a 3rd party dev server to be used to serve assets, EG Vite. \nIf this is set to 'auto' then the devServerUrl will be inferred from the Vite output
|
||||||
"GOOS/GOARCH": "[The command that will be executed after a build of the specified GOOS/GOARCH: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary. The "GOOS/GOARCH" hook is executed before the "GOOS/*" and "*/*" hook.]",
|
"frontend:dev:serverUrl": "",
|
||||||
"GOOS/*": "[The command that will be executed after a build of the specified GOOS: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary. The "GOOS/*" hook is executed before the "*/*" hook.]",
|
// Relative path to the directory that the auto-generated JS modules will be created
|
||||||
"*/*": "[The command that will be executed after every build: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary.]"
|
"wailsjsdir": "",
|
||||||
},
|
// The name of the binary
|
||||||
"info": { // Data used to populate manifests and version info.
|
"outputfilename": "",
|
||||||
"companyName": "[The company name. Default: [The project name]]",
|
// The default time the dev server waits to reload when it detects a change in assets
|
||||||
"productName": "[The product name. Default: [The project name]]",
|
"debounceMS": 100,
|
||||||
"productVersion": "[The version of the product. Default: '1.0.0']",
|
// Address to bind the wails dev sever to. Default: localhost:34115
|
||||||
"copyright": "[The copyright of the product. Default: 'Copyright.........']",
|
"devServer": "",
|
||||||
"comments": "[A short comment of the app. Default: 'Built using Wails (https://wails.app)']"
|
// Arguments passed to the application in shell style when in dev mode
|
||||||
},
|
"appargs": "",
|
||||||
"nsisType": "['multiple': One installer per architecture. 'single': Single universal installer for all architectures being built. Default: 'multiple']",
|
// Defines if build hooks should be run though they are defined for an OS other than the host OS.
|
||||||
"obfuscated": "[Whether the app should be obfuscated. Default: false]",
|
"runNonNativeBuildHooks": false,
|
||||||
"garbleargs": "[The arguments to pass to the garble command when using the obfuscated flag]"
|
"preBuildHooks": {
|
||||||
|
// The command that will be executed before a build of the specified GOOS/GOARCH: ${platform} is replaced with the "GOOS/GOARCH". The "GOOS/GOARCH" hook is executed before the "GOOS/*" and "*/*" hook.
|
||||||
|
"GOOS/GOARCH": "",
|
||||||
|
// The command that will be executed before a build of the specified GOOS: ${platform} is replaced with the "GOOS/GOARCH". The "GOOS/*" hook is executed before the "*/*" hook.
|
||||||
|
"GOOS/*": "",
|
||||||
|
// The command that will be executed before every build: ${platform} is replaced with the "GOOS/GOARCH".
|
||||||
|
"*/*": ""
|
||||||
|
},
|
||||||
|
"postBuildHooks": {
|
||||||
|
// The command that will be executed after a build of the specified GOOS/GOARCH: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary. The "GOOS/GOARCH" hook is executed before the "GOOS/*" and "*/*" hook.
|
||||||
|
"GOOS/GOARCH": "",
|
||||||
|
// The command that will be executed after a build of the specified GOOS: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary. The "GOOS/*" hook is executed before the "*/*" hook.
|
||||||
|
"GOOS/*": "",
|
||||||
|
// The command that will be executed after every build: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary.
|
||||||
|
"*/*": ""
|
||||||
|
},
|
||||||
|
// Data used to populate manifests and version info.
|
||||||
|
"info": {
|
||||||
|
// The company name. Default: [The project name]
|
||||||
|
"companyName": "",
|
||||||
|
// The product name. Default: [The project name]
|
||||||
|
"productName": "",
|
||||||
|
// The version of the product. Default: '1.0.0'
|
||||||
|
"productVersion": "",
|
||||||
|
// The copyright of the product. Default: 'Copyright.........'
|
||||||
|
"copyright": "",
|
||||||
|
// A short comment of the app. Default: 'Built using Wails (https://wails.app)'
|
||||||
|
"comments": ""
|
||||||
|
},
|
||||||
|
// 'multiple': One installer per architecture. 'single': Single universal installer for all architectures being built. Default: 'multiple'
|
||||||
|
"nsisType": "",
|
||||||
|
// Whether the app should be obfuscated. Default: false
|
||||||
|
"obfuscated": "",
|
||||||
|
// The arguments to pass to the garble command when using the obfuscated flag
|
||||||
|
"garbleargs": ""
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Этот файл читается CLI Wails при запуске `wails build` или `wails dev`.
|
This file is read by the Wails CLI when running `wails build` or `wails dev`.
|
||||||
|
|
||||||
`assetdir`, `reloaddirs`, `wailsjsdir`, `debounceMS`, `devserver` и `frontenddevserverurl` флаги в `wails build/dev` обновит конфигурацию проекта и тем самым станет по умолчанию для последующих запусков.
|
The `assetdir`, `reloaddirs`, `wailsjsdir`, `debounceMS`, `devserver` and `frontenddevserverurl` flags in `wails build/dev` will update the project config
|
||||||
|
and thus become defaults for subsequent runs.
|
||||||
|
|
||||||
Схема JSON для этого файла расположена [здесь](https://wails.io/schemas/config.v2.json).
|
The JSON Schema for this file is located [here](https://wails.io/schemas/config.v2.json).
|
||||||
|
@ -13,7 +13,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
## v2.4.1 - 2022-03-20
|
### Changed
|
||||||
|
- [v3] Typescript model generation using `StructDef`s from new AST-based parser. Added by @ATenderholt in [PR1](https://github.com/wailsapp/wails/pull/2428/files) and [PR2](https://github.com/wailsapp/wails/pull/2485).
|
||||||
|
|
||||||
|
|
||||||
|
## v2.4.1 - 2023-03-20
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Support single clicks on items with `--wails-draggable: drag` again on Windows. Changed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2482)
|
- Support single clicks on items with `--wails-draggable: drag` again on Windows. Changed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2482)
|
||||||
@ -22,7 +26,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
- Fixed panic when using `wails dev` and the AssetServer tried to log to the logger. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2481)
|
- Fixed panic when using `wails dev` and the AssetServer tried to log to the logger. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2481)
|
||||||
- Fixed compatibility with WebView2 Runtime > `110.0.1587.69` which showed a `connection refused` html page before doing a reload of the frontend. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2496)
|
- Fixed compatibility with WebView2 Runtime > `110.0.1587.69` which showed a `connection refused` html page before doing a reload of the frontend. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2496)
|
||||||
|
|
||||||
## v2.4.0 - 2022-03-08
|
## v2.4.0 - 2023-03-08
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- Added Webview GPU acceleration options for [Windows](/docs/reference/options#webviewgpuisdisabled) and [Linux](/docs/reference/options#webviewgpupolicy). Added by @Lyimmi in [PR](https://github.com/wailsapp/wails/pull/2266)
|
- Added Webview GPU acceleration options for [Windows](/docs/reference/options#webviewgpuisdisabled) and [Linux](/docs/reference/options#webviewgpupolicy). Added by @Lyimmi in [PR](https://github.com/wailsapp/wails/pull/2266)
|
||||||
|
@ -7,4 +7,4 @@
|
|||||||
</p>
|
</p>
|
||||||
```
|
```
|
||||||
|
|
||||||
The [BulletinBoard](https://github.com/raguay/BulletinBoard) application is a versital message board for static messages or dialogs to get information from the user for a script. It has a TUI for creating new dialogs that can latter be used to get information from the user. It's design is to stay running on your system and show the information as needed and then hide away. I have a process for watching a file on my system and sending the contents to BulletinBoard when changed. It works great with my workflows. There is also an [Alfred workflow](https://github.com/raguay/MyAlfred/blob/master/Alfred%205/EmailIt.alfredworkflow) for sending information to the program. The workflow is also for working with [EmailIt](https://github.com/raguay/EmailIt).
|
[BulletinBoard](https://github.com/raguay/BulletinBoard) 应用程序是一个用于静态消息或对话框的通用消息板,用于获取用户的脚本信息。 它有一个用于创建新对话框的 TUI,后者可以使用这些对话框从用户那里获取信息。 它的设计是在您的系统上保持运行并根据需要显示信息,然后隐藏起来。 我有一个在我的系统上监视文件并在更改时将内容发送到 BulletinBoard 的进程。 它与我的工作流配合的很好。 还有一个用于向程序发送信息的 [Alfred 工作流](https://github.com/raguay/MyAlfred/blob/master/Alfred%205/EmailIt.alfredworkflow)。 该工作流也适用于 [EmailIt](https://github.com/raguay/EmailIt)。
|
||||||
|
@ -7,4 +7,4 @@
|
|||||||
</p>
|
</p>
|
||||||
```
|
```
|
||||||
|
|
||||||
[hiposter](https://github.com/obity/hiposter) is a simple and efficient http API testing client tool. Based on Wails, Go and sveltejs.
|
[hiposter](https://github.com/obity/hiposter) 是一个简单高效的 HTTP API 测试客户端工具。 基于 Wails、Go 和 sveltejs。
|
||||||
|
@ -11,4 +11,4 @@
|
|||||||
</p>
|
</p>
|
||||||
```
|
```
|
||||||
|
|
||||||
[Minecraft Updater](https://github.com/Gurkengewuerz/MinecraftModUpdater) is a utility tool to update and synchronize Minecraft mods for your userbase. It’s built using Wails2 and React with [antd](https://ant.design/) as frontend framework.
|
[Minecraft Updater](https://github.com/Gurkengewuerz/MinecraftModUpdater) 是一个可以为你的用户更新和同步 Minecraft 模组的实用工具。 它使用 Wails2 和 React 构建,采用 [antd](https://ant.design/) 作为前端框架。
|
||||||
|
@ -7,4 +7,4 @@
|
|||||||
</p>
|
</p>
|
||||||
```
|
```
|
||||||
|
|
||||||
[Molly Wallet](https://github.com/grvlle/constellation_wallet/) the official $DAG wallet of the Constellation Network. It'll let users interact with the Hypergraph Network in various ways, not limited to producing $DAG transactions.
|
[Molly Wallet](https://github.com/grvlle/constellation_wallet/) 是 Constellation 网络的官方 $DAG 钱包。 它允许用户以各种方式与 Hypergraph 网络进行交互,而不仅仅是产生 $DAG 交易。
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
</p>
|
</p>
|
||||||
```
|
```
|
||||||
|
|
||||||
[October](https://october.utf9k.net) is a small Wails application that makes it really easy to extract highlights from [Kobo eReaders](https://en.wikipedia.org/wiki/Kobo_eReader) and then forward them to [Readwise](https://readwise.io).
|
[October](https://october.utf9k.net) 是一个小型的 Wails 应用程序,它可以非常容易地从 [Kobo eReaders](https://en.wikipedia.org/wiki/Kobo_eReader) 中提取精彩片段,然后将它们转发到 [Readwise](https://readwise.io) 。
|
||||||
|
|
||||||
It has a relatively small scope with all platform versions weighing in under 10MB, and that's without enabling [UPX compression](https://upx.github.io/)!
|
它的代码规模相对较小,所有平台版本的大小都不到10 MB ,而且这还是在没有启用 [UPX 压缩](https://upx.github.io/) 的情况下!
|
||||||
|
|
||||||
In contrast, the author's previous attempts with Electron quickly bloated to several hundred megabytes.
|
相比之下,作者之前尝试使用 Electron 很快就膨胀到了几百兆字节。
|
||||||
|
@ -7,4 +7,4 @@
|
|||||||
</p>
|
</p>
|
||||||
```
|
```
|
||||||
|
|
||||||
[Optimus](https://github.com/splode/optimus) is a desktop image optimization application. It supports conversion and compression between WebP, JPEG, and PNG image formats.
|
[Optimus](https://github.com/splode/optimus) 是一款桌面图像优化应用程序。 它支持 WebP、JPEG 和 PNG 图像格式之间的转换和压缩。
|
||||||
|
@ -7,4 +7,4 @@
|
|||||||
</p>
|
</p>
|
||||||
```
|
```
|
||||||
|
|
||||||
[Portfall](https://github.com/rekon-oss/portfall) - A desktop k8s port-forwarding portal for easy access to all your cluster UIs
|
[Portfall](https://github.com/rekon-oss/portfall) - 桌面 k8s 端口转发门户,可轻松访问你的所有集群 UI 。
|
||||||
|
@ -9,4 +9,4 @@
|
|||||||
</p>
|
</p>
|
||||||
```
|
```
|
||||||
|
|
||||||
[Restic-Browser](https://github.com/emuell/restic-browser) - A simple, cross-platform [restic](https://github.com/restic/restic) backup GUI for browsing and restoring restic repositories.
|
[Restic-Browser](https://github.com/emuell/restic-browser) - 一个简单的、跨平台的 [restic](https://github.com/restic/restic) 备份 GUI ,用于浏览和恢复 restic 存储库。
|
||||||
|
@ -7,15 +7,15 @@
|
|||||||
</p>
|
</p>
|
||||||
```
|
```
|
||||||
|
|
||||||
Easy, Secure, and Free file sharing for everyone. Learn more at [Riftshare.app](https://riftshare.app)
|
为每个人提供简单、安全和免费的文件共享。 请访问 [Riftshare.app](https://riftshare.app) 了解更多信息。
|
||||||
|
|
||||||
## 功能
|
## 功能
|
||||||
|
|
||||||
- Easy secure file sharing between computers both in the local network and through the internet
|
- 可以在本地网络和互联网之间轻松安全地共享文件
|
||||||
- Supports sending files or directories securely through the [magic wormhole protocol](https://magic-wormhole.readthedocs.io/en/latest/)
|
- 支持通过 [魔法虫洞(magic-wormhole)](https://magic-wormhole.readthedocs.io/en/latest/) 安全地发送文件或目录
|
||||||
- Compatible with all other apps using magic wormhole (magic-wormhole or wormhole-william CLI, wormhole-gui, etc.)
|
- 与所有其他使用魔法虫洞(magic-wormhole)的应用程序兼容( magic-wormhole 或 wormhole-william CLI,wormhole-gui 等。)
|
||||||
- Automatic zipping of multiple selected files to send at once
|
- 自动压缩多个选定文件以便一次性发送
|
||||||
- Full animations, progress bar, and cancellation support for sending and receiving
|
- 发送和接收的完整动画、进度条和取消支持
|
||||||
- Native OS File Selection
|
- 原生的操作系统文件选择功能
|
||||||
- Open files in one click once received
|
- 接收文件后一键打开
|
||||||
- Auto Update - don't worry about having the latest release!
|
- 自动更新 - 不用担心有最新的版本!
|
||||||
|
@ -7,4 +7,4 @@
|
|||||||
</p>
|
</p>
|
||||||
```
|
```
|
||||||
|
|
||||||
[ScriptBar](https://GitHub.com/raguay/ScriptBarApp) is a program to show the output of scripts or [Node-Red](https://nodered.org) server. It runs scripts defined in EmailIt program and shows the output. Scripts from xBar or TextBar can be used, but currently on the TextBar scripts work well. It also displays the output of scripts on your system. ScriptBar doesn't put them in the menubar, but has them all in a convient window for easy viewing. You can have multiple tabs to have many different things show. You can also keep the links to your most visited web sites.
|
[ScriptBar](https://GitHub.com/raguay/ScriptBarApp) 是一个用于显示脚本或 [Node-Red](https://nodered.org) 服务器输出的程序。 它运行 EmailIt 程序中定义的脚本,并显示输出结果。 可以使用来自 xBar 或 TextBar 的脚本,但目前只有 TextBar 的脚本运行良好。 它还可以显示你系统中的脚本输出。 ScriptBar 并没有把它们放在菜单栏中,而是提供一个方便的窗口,方便用户查看。 你可以使用多个标签页来显示不同的内容。 还可以保留访问次数最多的网站链接。
|
||||||
|
@ -7,4 +7,4 @@
|
|||||||
</p>
|
</p>
|
||||||
```
|
```
|
||||||
|
|
||||||
[Surge](https://getsurge.io/) is a p2p filesharing app designed to utilize blockchain technologies to enable 100% anonymous file transfers. Surge is end-to-end encrypted, decentralized and open source.
|
[Surge](https://getsurge.io/) 是一个 P2P 文件共享应用程序,旨在利用区块链技术实现100%匿名文件传输。 Surge 是端到端加密的、去中心化的以及开源的。
|
||||||
|
@ -7,4 +7,4 @@
|
|||||||
</p>
|
</p>
|
||||||
```
|
```
|
||||||
|
|
||||||
[Wally](https://ergodox-ez.com/pages/wally) is the official firmware flasher for [Ergodox](https://ergodox-ez.com/) keyboards. It looks great and is a fantastic example of what you can achieve with Wails: the ability to combine the power of Go and the rich graphical tools of the web development world.
|
[Wally](https://ergodox-ez.com/pages/wally) 是 [Ergodox](https://ergodox-ez.com/) 键盘的官方固件刷写程序。 它看起来很不错,并且是一个使用 Wails 实现的绝妙示例:结合了 Go 语言的强大功能和 Web 开发世界丰富的图形工具。
|
||||||
|
@ -7,4 +7,4 @@
|
|||||||
</p>
|
</p>
|
||||||
```
|
```
|
||||||
|
|
||||||
[Wombat](https://github.com/rogchap/wombat) is a cross platform gRPC client.
|
[Wombat](https://github.com/rogchap/wombat) 是一个跨平台的 gRPC 客户端。
|
||||||
|
@ -7,4 +7,4 @@
|
|||||||
</p>
|
</p>
|
||||||
```
|
```
|
||||||
|
|
||||||
[Ytd](https://github.com/marcio199226/ytd/tree/v2-wails) is an app for downloading tracks from youtube, creating offline playlists and share them with your friends, your friends will be able to playback your playlists or download them for offline listening, has an built-in player.
|
[Ytd](https://github.com/marcio199226/ytd/tree/v2-wails) 是一款可以从 YouTube 下载音乐,创建离线播放列表并与朋友分享的应用程序。你的朋友们可以播放你的播放列表或将其下载到本地离线收听,并且该应用程序还内置了播放器。
|
||||||
|
@ -8,45 +8,84 @@ sidebar_position: 5
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"name": "[The project name]",
|
// 项目配置版本
|
||||||
"assetdir": "[Relative path to the directory containing the compiled assets, this is normally inferred and could be left empty]",
|
"version": "",
|
||||||
"reloaddirs": "[Additional directories to trigger reloads (comma separated), this is only used for some advanced asset configurations]",
|
// 项目名称
|
||||||
"build:dir": "[The directory where the build files reside. Defaults to 'build']",
|
"name": "",
|
||||||
"frontend:dir": "[Relative path to the frontend directory. Defaults to 'frontend']",
|
// 包含编译资产的目录的相对路径,这通常是推断的并且可以留空
|
||||||
"frontend:install": "[The command to install node dependencies, run in the frontend directory - often `npm install`]",
|
"assetdir": "",
|
||||||
"frontend:build": "[The command to build the assets, run in the frontend directory - often `npm run build`]",
|
// 触发重新加载的附加目录(逗号分隔),这仅用于某些高级资产配置
|
||||||
"frontend:dev": "[This command has been replaced by frontend:dev:build. If frontend:dev:build is not specified will falls back to this command. \nIf this command is also not specified will falls back to frontend:build]",
|
"reloaddirs": "",
|
||||||
"frontend:dev:build": "[This command is the dev equivalent of frontend:build. If not specified falls back to frontend:dev]",
|
// 构建文件所在的目录。默认为“build”
|
||||||
"frontend:dev:install": "[This command is the dev equivalent of frontend:install. If not specified falls back to frontend:install]",
|
"build:dir": "",
|
||||||
"frontend:dev:watcher": "[This command is run in a separate process on `wails dev`. Useful for 3rd party watchers or starting 3d party dev servers]",
|
// 前端目录的相对路径。默认为“frontend”
|
||||||
"frontend:dev:serverUrl": "[URL to a 3rd party dev server to be used to serve assets, EG Vite. \nIf this is set to 'auto' then the devServerUrl will be inferred from the Vite output]",
|
"frontend:dir": "",
|
||||||
"wailsjsdir": "[Relative path to the directory that the auto-generated JS modules will be created]",
|
// 安装 Node 依赖的命令,在前端目录运行 - 通常是`npm install`
|
||||||
"version": "[Project config version]",
|
"frontend:install": "",
|
||||||
"outputfilename": "[The name of the binary]",
|
// 构建资产的命令,在前端目录中运行 - 通常是 `npm run build`
|
||||||
"debounceMS": 100, // The default time the dev server waits to reload when it detects a change in assets
|
"frontend:build": "",
|
||||||
"devServer": "[Address to bind the wails dev sever to. Default: localhost:34115]",
|
// 此命令已被 frontend:dev:build 取代。如果未指定 frontend:dev:build 将回退到此命令。如果此命令也未指定,将回退到 frontend:build
|
||||||
"appargs": "[Arguments passed to the application in shell style when in dev mode]",
|
"frontend:dev": "",
|
||||||
"runNonNativeBuildHooks": false, // Defines if build hooks should be run though they are defined for an OS other than the host OS.
|
// 此命令是 frontend:build 的 dev 等价物。如果未指定回退到 frontend:dev
|
||||||
"preBuildHooks": {
|
"frontend:dev:build": "",
|
||||||
"GOOS/GOARCH": "[The command that will be executed before a build of the specified GOOS/GOARCH: ${platform} is replaced with the "GOOS/GOARCH". The "GOOS/GOARCH" hook is executed before the "GOOS/*" and "*/*" hook.]",
|
// 此命令是 frontend:install 的 dev 等价物。如果未指定回退到 frontend:install
|
||||||
"GOOS/*": "[The command that will be executed before a build of the specified GOOS: ${platform} is replaced with the "GOOS/GOARCH". The "GOOS/*" hook is executed before the "*/*" hook.]",
|
"frontend:dev:install": "",
|
||||||
"*/*": "[The command that will be executed before every build: ${platform} is replaced with the "GOOS/GOARCH".]"
|
// 此命令在 `wails dev`上的单独进程中运行。用于第 3 方观察者或启动 3d 方开发服务器
|
||||||
},
|
"frontend:dev:watcher": "",
|
||||||
"postBuildHooks": {
|
// 用于服务资产的第 3 方开发服务器的 URL,比如 Vite。如果设置为 'auto' 那么 devServerUrl 将从 Vite 输出中推断出来
|
||||||
"GOOS/GOARCH": "[The command that will be executed after a build of the specified GOOS/GOARCH: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary. The "GOOS/GOARCH" hook is executed before the "GOOS/*" and "*/*" hook.]",
|
"frontend:dev:serverUrl": "",
|
||||||
"GOOS/*": "[The command that will be executed after a build of the specified GOOS: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary. The "GOOS/*" hook is executed before the "*/*" hook.]",
|
// 创建自动生成的 JS 模块的目录的相对路径
|
||||||
"*/*": "[The command that will be executed after every build: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary.]"
|
"wailsjsdir": "",
|
||||||
},
|
// 二进制文件的名称
|
||||||
"info": { // Data used to populate manifests and version info.
|
"outputfilename": "",
|
||||||
"companyName": "[The company name. Default: [The project name]]",
|
// 开发服务器在检测到资产更改时等待重新加载的默认时间
|
||||||
"productName": "[The product name. Default: [The project name]]",
|
"debounceMS": 100,
|
||||||
"productVersion": "[The version of the product. Default: '1.0.0']",
|
// 将 wails 开发服务器绑定到的地址。默认为:localhost:34115
|
||||||
"copyright": "[The copyright of the product. Default: 'Copyright.........']",
|
"devServer": "",
|
||||||
"comments": "[A short comment of the app. Default: 'Built using Wails (https://wails.app)']"
|
// 在开发模式下以 shell 样式传递给应用程序的参数
|
||||||
},
|
"appargs": "",
|
||||||
"nsisType": "['multiple': One installer per architecture. 'single': Single universal installer for all architectures being built. Default: 'multiple']",
|
// 定义是否应该运行构建 Hooks,尽管它们是为主机操作系统以外的操作系统定义的。
|
||||||
"obfuscated": "[Whether the app should be obfuscated. Default: false]",
|
"runNonNativeBuildHooks": false,
|
||||||
"garbleargs": "[The arguments to pass to the garble command when using the obfuscated flag]"
|
// 构建前 Hooks
|
||||||
|
"preBuildHooks": {
|
||||||
|
// 在构建指定的 GOOS/GOARCH 之前将执行的命令:${platform} 被替换为“GOOS/GOARCH”。 “GOOS/GOARCH” hook 在“GOOS/*”和“*/*” hook 之前执行。
|
||||||
|
"GOOS/GOARCH": "",
|
||||||
|
// 在指定 GOOS 的构建之前将执行的命令:${platform} 被替换为“GOOS/GOARCH”。 “GOOS/*” hook 在“*/*” hook 之前执行。
|
||||||
|
"GOOS/*": "",
|
||||||
|
// 将在每次构建之前执行的命令:${platform} 替换为“GOOS/GOARCH”。
|
||||||
|
"*/*": ""
|
||||||
|
},
|
||||||
|
// 构建后 Hooks
|
||||||
|
"postBuildHooks": {
|
||||||
|
// 在构建指定的 GOOS/GOARCH 之后将执行的命令:${platform} 替换为“GOOS/GOARCH”,${bin} 替换为已编译二进制文件的路径。 “GOOS/GOARCH” hook 在“GOOS/*”和“*/*” hook 之前执行。
|
||||||
|
"GOOS/GOARCH": "",
|
||||||
|
// 在构建指定的 GOOS 之后将执行的命令:${platform} 替换为“GOOS/GOARCH”,${bin} 替换为已编译二进制文件的路径。 “GOOS/*” hook 在“*/*” hook 之前执行。
|
||||||
|
"GOOS/*": "",
|
||||||
|
// The command that will be executed after every build: ${platform} is replaced with the "GOOS/GOARCH" and ${bin} with the path to the compiled binary.
|
||||||
|
// 每次构建后将执行的命令:${platform} 替换为“GOOS/GOARCH”,${bin} 替换为已编译二进制文件的路径。
|
||||||
|
"*/*": ""
|
||||||
|
},
|
||||||
|
// 用于填充 manifest 和版本信息的数据。
|
||||||
|
"info": {
|
||||||
|
// 公司名称。 默认值:[项目名]
|
||||||
|
"companyName": "",
|
||||||
|
// 产品名称。 默认值:[项目名]
|
||||||
|
"productName": "",
|
||||||
|
// 产品版本。默认值:'1.0.0'
|
||||||
|
"productVersion": "",
|
||||||
|
// 产品的版权。默认值:'Copyright.........'
|
||||||
|
"copyright": "",
|
||||||
|
// 该应用程序的简短评论。默认值:'Built using Wails (https://wails.app)'
|
||||||
|
"comments": ""
|
||||||
|
},
|
||||||
|
// 'multiple': 每个架构一个安装程序。
|
||||||
|
// 'single': 适用于正在构建的所有体系结构的单一通用安装程序。
|
||||||
|
// 默认值:'multiple'
|
||||||
|
"nsisType": "",
|
||||||
|
// 应用程序是否应该被混淆。默认值:false
|
||||||
|
"obfuscated": "",
|
||||||
|
// 使用 obfuscated 标志时传递给乱码命令的参数
|
||||||
|
"garbleargs": ""
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -54,4 +93,4 @@ sidebar_position: 5
|
|||||||
|
|
||||||
`wails build/dev` 命令中的 `assetdir`、`reloaddirs`、`wailsjsdir`、`debounceMS`、`devserver` 和 `frontenddevserverurl` 标志将覆盖项目配置并作为后续运行的默认值。
|
`wails build/dev` 命令中的 `assetdir`、`reloaddirs`、`wailsjsdir`、`debounceMS`、`devserver` 和 `frontenddevserverurl` 标志将覆盖项目配置并作为后续运行的默认值。
|
||||||
|
|
||||||
此文件的 JSON 模型位于 [此处](https://wails.io/schemas/config.v2.json)。
|
此文件的 `JSON Schema` 位于 [此处](https://wails.io/schemas/config.v2.json)。
|
||||||
|
@ -13,7 +13,11 @@
|
|||||||
|
|
||||||
## [即将发布]
|
## [即将发布]
|
||||||
|
|
||||||
## v2.4.1 - 2022-03-20
|
### 变更
|
||||||
|
- [v3] 使用 `StructDef` 从新的基于 AST 的解析器生成 Typescript 模型。 由 @ATenderholt 在 [PR1](https://github.com/wailsapp/wails/pull/2428/files) 和 [PR2](https://github.com/wailsapp/wails/pull/2485) 中添加
|
||||||
|
|
||||||
|
|
||||||
|
## v2.4.1 - 2023-03-20
|
||||||
|
|
||||||
### 变更
|
### 变更
|
||||||
- 支持在窗口上再次单击带有 `--wails-draggable: drag` 的项。 由 @stffabi 在这个 [PR](https://github.com/wailsapp/wails/pull/2482) 中变更
|
- 支持在窗口上再次单击带有 `--wails-draggable: drag` 的项。 由 @stffabi 在这个 [PR](https://github.com/wailsapp/wails/pull/2482) 中变更
|
||||||
@ -22,7 +26,7 @@
|
|||||||
- 修复了使用 `wails dev` 和 AssetServer 尝试记录到记录器时的 panic。 由 @stffabi 在 [PR](https://github.com/wailsapp/wails/pull/2481) 中修复
|
- 修复了使用 `wails dev` 和 AssetServer 尝试记录到记录器时的 panic。 由 @stffabi 在 [PR](https://github.com/wailsapp/wails/pull/2481) 中修复
|
||||||
- 修复了与 WebView2 运行时大于 `110.0.1587.69` 的兼容性,它在重新加载前端之前显示 `connection refused` 的 html 页面。 由 @stffabi 在 [PR](https://github.com/wailsapp/wails/pull/2496) 中修复
|
- 修复了与 WebView2 运行时大于 `110.0.1587.69` 的兼容性,它在重新加载前端之前显示 `connection refused` 的 html 页面。 由 @stffabi 在 [PR](https://github.com/wailsapp/wails/pull/2496) 中修复
|
||||||
|
|
||||||
## v2.4.0 - 2022-03-08
|
## v2.4.0 - 2023-03-08
|
||||||
|
|
||||||
### 新增
|
### 新增
|
||||||
- 为 [Windows](/docs/reference/options#webviewgpuisdisabled) 和 [Linux 添加了WebView GPU 加速选项](/docs/reference/options#webviewgpupolicy). @Lyimmi 在 [PR](https://github.com/wailsapp/wails/pull/2266) 中添加
|
- 为 [Windows](/docs/reference/options#webviewgpuisdisabled) 和 [Linux 添加了WebView GPU 加速选项](/docs/reference/options#webviewgpupolicy). @Lyimmi 在 [PR](https://github.com/wailsapp/wails/pull/2266) 中添加
|
||||||
|
Loading…
Reference in New Issue
Block a user