5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 06:20:48 +08:00

chore: update README and workflows (#1848)

* Update README

* Update crowdin.yml

* chore: update workflows and README

* fix: fix error

* feat: remove unnecessary content

* Update .github/workflows/build.yml

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
This commit is contained in:
Misite Bao 2022-09-15 19:49:35 +08:00 committed by GitHub
parent 28fd3cdba1
commit 14adbc12aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 165 additions and 257 deletions

36
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,36 @@
name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build-v2:
name: v2 Build
if: github.repository == 'wailsapp/wails'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: "master"
submodules: true
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ">=1.18.0"
- name: Build Wails CLI
run: |
cd ./v2/cmd/wails
go install
wails -help

View File

@ -1,50 +0,0 @@
name: Sync upstream branch and deploy mirror | 同步上游分支并部署镜像
on:
schedule:
- cron: "0 8,20 * * *"
workflow_dispatch:
jobs:
build-and-deploy:
name: Automatic deployment | 自动部署
runs-on: ubuntu-latest
if: github.repository == 'misitebao/wails'
steps:
- name: Checkout | 切换到部署分支
uses: actions/checkout@v2
with:
ref: "master"
submodules: true
fetch-depth: 0
- name: Setup Git | 设置Git
run: |
git config --local user.email "i@misitebao.com"
git config --local user.name "misitebao"
- name: Add remote upstream repository and sync | 添加远程上游仓库并同步
run: |
git remote add upstream https://github.com/wailsapp/wails
git pull -v --progress --no-rebase "upstream" master
- name: Push | 推送
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
- name: Build Site | 构建网站
run: |
cd website &&
npm install && npm run build
- name: Deploy to Server | 部署到服务器
uses: hengkx/ssh-deploy@v1.0.1
with:
HOST: ${{ secrets.DEPLOY_HOST }}
USERNAME: ${{ secrets.DEPLOY_HOST_USER }}
PASSWORD: ${{ secrets.DEPLOY_HOST_PASSWORD }}
SOURCE: "website/build"
TARGET: "/www/wwwroot/wails.top"

View File

@ -1,34 +0,0 @@
name: latest pre-release
on:
push:
branches:
- develop
tags:
- '**-pre**'
jobs:
build:
name: Test Build Latest Pre-Release
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Set up Go 1.16
uses: actions/setup-go@v1
with:
go-version: 1.16
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Get dependencies
run: |
go get -v -d ./...
- name: Build
run: go build -v ./cmd/wails
- name: Test
run: ./wails version

View File

@ -1,32 +0,0 @@
name: pr
on:
pull_request:
branches:
- develop
jobs:
build:
name: Test Build PR
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Set up Go 1.16
uses: actions/setup-go@v1
with:
go-version: 1.16
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Get dependencies
run: |
go get -v -d ./...
- name: Build
run: go build -v ./cmd/wails
- name: Test
run: ./wails version

View File

@ -1,34 +0,0 @@
name: release
on:
push:
branches:
- master
tags:
- '!**pre**'
jobs:
build:
name: Test Build Latest Release
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Set up Go 1.16
uses: actions/setup-go@v1
with:
go-version: 1.16
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Get dependencies
run: |
go get -v -d ./...
- name: Build
run: go build -v ./cmd/wails
- name: Test
run: ./wails version

View File

@ -1,17 +1,21 @@
<h1 align="center">Wails</h1>
<p align="center" style="text-align: center"> <p align="center" style="text-align: center">
<img src="./assets/images/logo-universal.png" width="55%"><br/> <img src="./assets/images/logo-universal.png" width="55%"><br/>
</p> </p>
<p align="center"> <p align="center">
GoとWebの技術を用いてデスクトップアプリケーションを構築します。<br/><br/> GoとWebの技術を用いてデスクトップアプリケーションを構築します。
<br/>
<br/>
<a href="https://github.com/wailsapp/wails/blob/master/LICENSE"> <a href="https://github.com/wailsapp/wails/blob/master/LICENSE">
<img src="https://img.shields.io/badge/License-MIT-blue.svg" /> <img alt="GitHub" src="https://img.shields.io/github/license/wailsapp/wails"/>
</a> </a>
<a href="https://goreportcard.com/report/github.com/wailsapp/wails"> <a href="https://goreportcard.com/report/github.com/wailsapp/wails">
<img src="https://goreportcard.com/badge/github.com/wailsapp/wails" /> <img src="https://goreportcard.com/badge/github.com/wailsapp/wails" />
</a> </a>
<a href="http://godoc.org/github.com/wailsapp/wails"> <a href="https://pkg.go.dev/github.com/wailsapp/wails">
<img src="https://img.shields.io/badge/godoc-reference-blue.svg" /> <img src="https://pkg.go.dev/badge/github.com/wailsapp/wails.svg" alt="Go Reference"/>
</a> </a>
<a href="https://www.codefactor.io/repository/github/wailsapp/wails"> <a href="https://www.codefactor.io/repository/github/wailsapp/wails">
<img src="https://www.codefactor.io/repository/github/wailsapp/wails/badge" alt="CodeFactor" /> <img src="https://www.codefactor.io/repository/github/wailsapp/wails/badge" alt="CodeFactor" />
@ -25,11 +29,25 @@
<a href="https://github.com/avelino/awesome-go" rel="nofollow"> <a href="https://github.com/avelino/awesome-go" rel="nofollow">
<img src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg" alt="Awesome" /> <img src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg" alt="Awesome" />
</a> </a>
<a href="https://github.com/wailsapp/wails/workflows/release/badge.svg?branch=master" rel="nofollow"> <br/>
<img src="https://github.com/wailsapp/wails/workflows/release/badge.svg?branch=master" alt="Release Pipelines" /> <a href="https://github.com/wailsapp/wails/actions/workflows/build.yml" rel="nofollow">
<img src="https://img.shields.io/github/workflow/status/wailsapp/wails/Build?logo=github" alt="Build" />
</a>
<a href="https://github.com/wailsapp/wails/tags" rel="nofollow">
<img alt="GitHub tag (latest SemVer pre-release)" src="https://img.shields.io/github/v/tag/wailsapp/wails?include_prereleases&label=version"/>
</a> </a>
</p> </p>
<div align="center">
<strong>
<samp>
[English](README.md) · [简体中文](README.zh-Hans.md) · [日本語](README.ja.md)
</samp>
</strong>
</div>
<hr/> <hr/>
<h3 align="center"> <h3 align="center">
<strong> <strong>
@ -38,28 +56,23 @@
</h3> </h3>
<hr/> <hr/>
## 国際化
[English](README.md) | [简体中文](README.zh-Hans.md) | [日本語](README.ja.md)
## 目次 ## 目次
<details> <details>
<summary>クリックすることで、ディレクトリ一覧の開閉が可能です。</summary> <summary>クリックすることで、ディレクトリ一覧の開閉が可能です。</summary>
- [1. 国際化](#国際化) - [目次](#目次)
- [2. 目次](#目次) - [はじめに](#はじめに)
- [3. はじめに](#はじめに) - [公式サイト](#公式サイト)
- [3.1 公式サイト](#公式サイト) - [ロードマップ](#ロードマップ)
- [3.2 ロードマップ](#ロードマップ) - [特徴](#特徴)
- [4. 特徴](#特徴) - [スポンサー](#スポンサー)
- [5. スポンサー](#スポンサー) - [始め方](#始め方)
- [6. 始め方](#始め方) - [FAQ](#faq)
- [7. FAQ](#faq) - [コントリビューター](#コントリビューター)
- [8. コントリビューター](#コントリビューター) - [特記事項](#特記事項)
- [9. 特記事項](#特記事項) - [スペシャルサンクス](#スペシャルサンクス)
- [10. スペシャルサンクス](#スペシャルサンクス) - [ライセンス](#ライセンス)
- [11. ライセンス](#ライセンス)
</details> </details>
@ -98,7 +111,6 @@ Wails v2が3つのプラットフォームでベータ版としてリリース
- マルチプラットフォームに対応しています - マルチプラットフォームに対応しています
- ネイティブなレンダリングエンジンを使用しています - _つまりブラウザを埋め込んでいるわけではありません_ - ネイティブなレンダリングエンジンを使用しています - _つまりブラウザを埋め込んでいるわけではありません_
## スポンサー ## スポンサー
このプロジェクトは、以下の方々・企業によって支えられています。 このプロジェクトは、以下の方々・企業によって支えられています。

View File

@ -1,17 +1,21 @@
<h1 align="center">Wails</h1>
<p align="center" style="text-align: center"> <p align="center" style="text-align: center">
<img src="./assets/images/logo-universal.png" width="55%"><br/> <img src="./assets/images/logo-universal.png" width="55%"><br/>
</p> </p>
<p align="center"> <p align="center">
Build desktop applications using Go & Web Technologies.<br/><br/> Build desktop applications using Go & Web Technologies.
<br/>
<br/>
<a href="https://github.com/wailsapp/wails/blob/master/LICENSE"> <a href="https://github.com/wailsapp/wails/blob/master/LICENSE">
<img src="https://img.shields.io/badge/License-MIT-blue.svg" /> <img alt="GitHub" src="https://img.shields.io/github/license/wailsapp/wails"/>
</a> </a>
<a href="https://goreportcard.com/report/github.com/wailsapp/wails"> <a href="https://goreportcard.com/report/github.com/wailsapp/wails">
<img src="https://goreportcard.com/badge/github.com/wailsapp/wails" /> <img src="https://goreportcard.com/badge/github.com/wailsapp/wails" />
</a> </a>
<a href="http://godoc.org/github.com/wailsapp/wails"> <a href="https://pkg.go.dev/github.com/wailsapp/wails">
<img src="https://img.shields.io/badge/godoc-reference-blue.svg" /> <img src="https://pkg.go.dev/badge/github.com/wailsapp/wails.svg" alt="Go Reference"/>
</a> </a>
<a href="https://www.codefactor.io/repository/github/wailsapp/wails"> <a href="https://www.codefactor.io/repository/github/wailsapp/wails">
<img src="https://www.codefactor.io/repository/github/wailsapp/wails/badge" alt="CodeFactor" /> <img src="https://www.codefactor.io/repository/github/wailsapp/wails/badge" alt="CodeFactor" />
@ -25,11 +29,25 @@
<a href="https://github.com/avelino/awesome-go" rel="nofollow"> <a href="https://github.com/avelino/awesome-go" rel="nofollow">
<img src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg" alt="Awesome" /> <img src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg" alt="Awesome" />
</a> </a>
<a href="https://github.com/wailsapp/wails/workflows/release/badge.svg?branch=master" rel="nofollow"> <br/>
<img src="https://github.com/wailsapp/wails/workflows/release/badge.svg?branch=master" alt="Release Pipelines" /> <a href="https://github.com/wailsapp/wails/actions/workflows/build.yml" rel="nofollow">
<img src="https://img.shields.io/github/workflow/status/wailsapp/wails/Build?logo=github" alt="Build" />
</a>
<a href="https://github.com/wailsapp/wails/tags" rel="nofollow">
<img alt="GitHub tag (latest SemVer pre-release)" src="https://img.shields.io/github/v/tag/wailsapp/wails?include_prereleases&label=version"/>
</a> </a>
</p> </p>
<div align="center">
<strong>
<samp>
[English](README.md) · [简体中文](README.zh-Hans.md) · [日本語](README.ja.md)
</samp>
</strong>
</div>
<hr/> <hr/>
<h3 align="center"> <h3 align="center">
<strong> <strong>
@ -38,28 +56,23 @@ PLEASE NOTE: As we are approaching the v2 release, we are not accepting any new
</h3> </h3>
<hr/> <hr/>
## Internationalization
[English](README.md) | [简体中文](README.zh-Hans.md) | [日本語](README.ja.md)
## Table of Contents ## Table of Contents
<details> <details>
<summary>Click me to Open/Close the directory listing</summary> <summary>Click me to Open/Close the directory listing</summary>
- [1. Internationalization](#internationalization) - [Table of Contents](#table-of-contents)
- [2. Table of Contents](#table-of-contents) - [Introduction](#introduction)
- [3. Introduction](#introduction) - [Official Website](#official-website)
- [3.1 Official Website](#official-website) - [Roadmap](#roadmap)
- [3.2 Roadmap](#roadmap) - [Features](#features)
- [4. Features](#features) - [Sponsors](#sponsors)
- [5. Sponsors](#sponsors) - [Getting Started](#getting-started)
- [6. Getting Started](#getting-started) - [FAQ](#faq)
- [7. FAQ](#faq) - [Contributors](#contributors)
- [8. Contributors](#contributors) - [Special Mentions](#special-mentions)
- [9. Special Mentions](#special-mentions) - [Special Thanks](#special-thanks)
- [10. Special Thanks](#special-thanks) - [License](#license)
- [11. License](#license)
</details> </details>

View File

@ -1,17 +1,21 @@
<h1 align="center">Wails</h1>
<p align="center" style="text-align: center"> <p align="center" style="text-align: center">
<img src="./assets/images/logo-universal.png" width="55%"><br/> <img src="./assets/images/logo-universal.png" width="55%"><br/>
</p> </p>
<p align="center"> <p align="center">
使用 Go 和 Web 技术构建桌面应用程序。<br/><br/> 使用 Go 和 Web 技术构建桌面应用程序。
<br/>
<br/>
<a href="https://github.com/wailsapp/wails/blob/master/LICENSE"> <a href="https://github.com/wailsapp/wails/blob/master/LICENSE">
<img src="https://img.shields.io/badge/License-MIT-blue.svg" /> <img alt="GitHub" src="https://img.shields.io/github/license/wailsapp/wails"/>
</a> </a>
<a href="https://goreportcard.com/report/github.com/wailsapp/wails"> <a href="https://goreportcard.com/report/github.com/wailsapp/wails">
<img src="https://goreportcard.com/badge/github.com/wailsapp/wails" /> <img src="https://goreportcard.com/badge/github.com/wailsapp/wails" />
</a> </a>
<a href="http://godoc.org/github.com/wailsapp/wails"> <a href="https://pkg.go.dev/github.com/wailsapp/wails">
<img src="https://img.shields.io/badge/godoc-reference-blue.svg" /> <img src="https://pkg.go.dev/badge/github.com/wailsapp/wails.svg" alt="Go Reference"/>
</a> </a>
<a href="https://www.codefactor.io/repository/github/wailsapp/wails"> <a href="https://www.codefactor.io/repository/github/wailsapp/wails">
<img src="https://www.codefactor.io/repository/github/wailsapp/wails/badge" alt="CodeFactor" /> <img src="https://www.codefactor.io/repository/github/wailsapp/wails/badge" alt="CodeFactor" />
@ -25,11 +29,25 @@
<a href="https://github.com/avelino/awesome-go" rel="nofollow"> <a href="https://github.com/avelino/awesome-go" rel="nofollow">
<img src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg" alt="Awesome" /> <img src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg" alt="Awesome" />
</a> </a>
<a href="https://github.com/wailsapp/wails/workflows/release/badge.svg?branch=master" rel="nofollow"> <br/>
<img src="https://github.com/wailsapp/wails/workflows/release/badge.svg?branch=master" alt="Release Pipelines" /> <a href="https://github.com/wailsapp/wails/actions/workflows/build.yml" rel="nofollow">
<img src="https://img.shields.io/github/workflow/status/wailsapp/wails/Build?logo=github" alt="Build" />
</a>
<a href="https://github.com/wailsapp/wails/tags" rel="nofollow">
<img alt="GitHub tag (latest SemVer pre-release)" src="https://img.shields.io/github/v/tag/wailsapp/wails?include_prereleases&label=version"/>
</a> </a>
</p> </p>
<div align="center">
<strong>
<samp>
[English](README.md) · [简体中文](README.zh-Hans.md) · [日本語](README.ja.md)
</samp>
</strong>
</div>
<hr/> <hr/>
<h3 align="center"> <h3 align="center">
<strong> <strong>
@ -38,28 +56,23 @@
</h3> </h3>
<hr/> <hr/>
## 国际化
[English](README.md) | [简体中文](README.zh-Hans.md) | [日本語](README.ja.md)
## 内容目录 ## 内容目录
<details> <details>
<summary>点我 打开/关闭 目录列表</summary> <summary>点我 打开/关闭 目录列表</summary>
- [1. 国际化](#国际化) - [内容目录](#内容目录)
- [2. 内容目录](#内容目录) - [项目介绍](#项目介绍)
- [3. 项目介绍](#项目介绍) - [官方网站](#官方网站)
- [3.1 官方网站](#官方网站) - [路线图](#路线图)
- [3.2 路线图](#路线图) - [功能](#功能)
- [4. 功能](#功能) - [赞助商](#赞助商)
- [5. 赞助商](#赞助商) - [快速入门](#快速入门)
- [6. 快速入门](#快速入门) - [常见问题](#常见问题)
- [7. 常见问题](#常见问题) - [贡献者](#贡献者)
- [8. 贡献者](#贡献者) - [特别提及](#特别提及)
- [9. 特别提及](#特别提及) - [特别感谢](#特别感谢)
- [10. 特别感谢](#特别感谢) - [许可证](#许可证)
- [11. 许可证](#许可证)
</details> </details>

View File

@ -1,16 +0,0 @@
project_id: 531392
api_token_env: CROWDIN_PERSONAL_TOKEN
preserve_hierarchy: true
commit_message: '[ci skip]'
files:
- source: /website/docs/**/*
translation: /website/i18n/%two_letters_code%/docusaurus-plugin-content-docs/current/**/%original_file_name%
- source: /website/blog/**/*
translation: /website/i18n/%two_letters_code%/docusaurus-plugin-content-blog/**/%original_file_name%
- source: /website/src/pages/**/*
ignore:
- '*.js'
- '*.css'
translation: /website/i18n/%two_letters_code%/docusaurus-plugin-content-pages/**/%original_file_name%
- source: /website/i18n/en/**/*.json
translation: /website/i18n/%two_letters_code%/**/%original_file_name%