-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18ee469
commit 5a67655
Showing
120 changed files
with
9,831 additions
and
226 deletions.
There are no files selected for viewing
66 changes: 66 additions & 0 deletions
66
...e/i18n/fr/docusaurus-plugin-content-docs/current/guides/crossplatform-build.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Crossplatform build with Github Actions | ||
|
||
To build a Wails project for all the available platforms, you need to create an application build for each operating system. One effective method to achieve this is by utilizing GitHub Actions. | ||
|
||
An action that facilitates building a Wails app is available at: | ||
https://github.com/dAppServer/wails-build-action | ||
|
||
In case the existing action doesn't fulfill your requirements, you can select only the necessary steps from the source: | ||
https://github.com/dAppServer/wails-build-action/blob/main/action.yml | ||
|
||
Below is a comprehensive example that demonstrates building an app upon the creation of a new Git tag and subsequently uploading it to the Actions artifacts: | ||
|
||
```yaml | ||
name: Wails build | ||
|
||
on: | ||
push: | ||
tags: | ||
# Match any new tag | ||
- '*' | ||
|
||
env: | ||
# Necessary for most environments as build failure can occur due to OOM issues | ||
NODE_OPTIONS: "--max-old-space-size=4096" | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
# Failure in one platform build won't impact the others | ||
fail-fast: false | ||
matrix: | ||
build: | ||
- name: 'App' | ||
platform: 'linux/amd64' | ||
os: 'ubuntu-latest' | ||
- name: 'App' | ||
platform: 'windows/amd64' | ||
os: 'windows-latest' | ||
- name: 'App' | ||
platform: 'darwin/universal' | ||
os: 'macos-latest' | ||
|
||
runs-on: ${{ matrix.build.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Build wails | ||
uses: dAppServer/[email protected] | ||
id: build | ||
with: | ||
build-name: ${{ matrix.build.name }} | ||
build-platform: ${{ matrix.build.platform }} | ||
package: false | ||
go-version: '1.20' | ||
``` | ||
This example offers opportunities for various enhancements, including: | ||
- Caching dependencies | ||
- Code signing | ||
- Uploading to platforms like S3, Supbase, etc. | ||
- Injecting secrets as environment variables | ||
- Utilizing environment variables as build variables (such as version variable extracted from the current Git tag) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 31 additions & 31 deletions
62
website/i18n/fr/docusaurus-plugin-content-docs/current/reference/cli.mdx
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
...e/i18n/ja/docusaurus-plugin-content-docs/current/guides/crossplatform-build.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Crossplatform build with Github Actions | ||
|
||
To build a Wails project for all the available platforms, you need to create an application build for each operating system. One effective method to achieve this is by utilizing GitHub Actions. | ||
|
||
An action that facilitates building a Wails app is available at: | ||
https://github.com/dAppServer/wails-build-action | ||
|
||
In case the existing action doesn't fulfill your requirements, you can select only the necessary steps from the source: | ||
https://github.com/dAppServer/wails-build-action/blob/main/action.yml | ||
|
||
Below is a comprehensive example that demonstrates building an app upon the creation of a new Git tag and subsequently uploading it to the Actions artifacts: | ||
|
||
```yaml | ||
name: Wails build | ||
|
||
on: | ||
push: | ||
tags: | ||
# Match any new tag | ||
- '*' | ||
|
||
env: | ||
# Necessary for most environments as build failure can occur due to OOM issues | ||
NODE_OPTIONS: "--max-old-space-size=4096" | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
# Failure in one platform build won't impact the others | ||
fail-fast: false | ||
matrix: | ||
build: | ||
- name: 'App' | ||
platform: 'linux/amd64' | ||
os: 'ubuntu-latest' | ||
- name: 'App' | ||
platform: 'windows/amd64' | ||
os: 'windows-latest' | ||
- name: 'App' | ||
platform: 'darwin/universal' | ||
os: 'macos-latest' | ||
|
||
runs-on: ${{ matrix.build.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Build wails | ||
uses: dAppServer/[email protected] | ||
id: build | ||
with: | ||
build-name: ${{ matrix.build.name }} | ||
build-platform: ${{ matrix.build.platform }} | ||
package: false | ||
go-version: '1.20' | ||
``` | ||
This example offers opportunities for various enhancements, including: | ||
- Caching dependencies | ||
- Code signing | ||
- Uploading to platforms like S3, Supbase, etc. | ||
- Injecting secrets as environment variables | ||
- Utilizing environment variables as build variables (such as version variable extracted from the current Git tag) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.