Skip to content

Commit 3fbf344

Browse files
committed
Merge branch 'experimental'
2 parents 1ab2158 + 52dc6ff commit 3fbf344

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2492
-2993
lines changed

.github/workflows/docker-publish.yml

+49-49
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
1-
name: Build and Publish Docker Image
2-
3-
on:
4-
workflow_dispatch: # Manual
5-
6-
env:
7-
REGISTRY: ghcr.io
8-
IMAGE_NAME: ${{ github.repository }}
9-
10-
jobs:
11-
build-and-push-image:
12-
runs-on: ubuntu-22.04
13-
permissions:
14-
contents: read
15-
packages: write
16-
17-
steps:
18-
- name: Checkout repository
19-
uses: actions/checkout@v3
20-
21-
- name: Set up Docker Buildx
22-
uses: docker/setup-buildx-action@v2
23-
24-
- name: Log in to the Container registry
25-
uses: docker/login-action@v2
26-
with:
27-
registry: ${{ env.REGISTRY }}
28-
username: ${{ github.actor }}
29-
password: ${{ secrets.GITHUB_TOKEN }}
30-
31-
- name: Extract metadata (tags, labels) for Docker
32-
id: meta
33-
uses: docker/metadata-action@v4
34-
with:
35-
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
36-
tags: |
37-
type=raw,value=latest,enable={{is_default_branch}}
38-
type=sha
39-
40-
- name: Build and push Docker image
41-
uses: docker/build-push-action@v4
42-
with:
43-
context: .
44-
push: true
45-
tags: ${{ steps.meta.outputs.tags }}
46-
labels: ${{ steps.meta.outputs.labels }}
47-
cache-from: type=gha
48-
cache-to: type=gha,mode=max
49-
platforms: linux/amd64
1+
name: Build and Publish Docker Image
2+
3+
on:
4+
workflow_dispatch: # Manual
5+
6+
env:
7+
REGISTRY: ghcr.io
8+
IMAGE_NAME: ${{ github.repository }}
9+
10+
jobs:
11+
build-and-push-image:
12+
runs-on: ubuntu-22.04
13+
permissions:
14+
contents: read
15+
packages: write
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v3
20+
21+
- name: Set up Docker Buildx
22+
uses: docker/setup-buildx-action@v2
23+
24+
- name: Log in to the Container registry
25+
uses: docker/login-action@v2
26+
with:
27+
registry: ${{ env.REGISTRY }}
28+
username: ${{ github.actor }}
29+
password: ${{ secrets.GITHUB_TOKEN }}
30+
31+
- name: Extract metadata (tags, labels) for Docker
32+
id: meta
33+
uses: docker/metadata-action@v4
34+
with:
35+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
36+
tags: |
37+
type=raw,value=latest,enable={{is_default_branch}}
38+
type=sha
39+
40+
- name: Build and push Docker image
41+
uses: docker/build-push-action@v4
42+
with:
43+
context: .
44+
push: true
45+
tags: ${{ steps.meta.outputs.tags }}
46+
labels: ${{ steps.meta.outputs.labels }}
47+
cache-from: type=gha
48+
cache-to: type=gha,mode=max
49+
platforms: linux/amd64

.github/workflows/pake-cli.yaml

+1-5
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ on:
2828
description: '[Height, Optional]'
2929
required: false
3030
default: '780'
31-
safe_domain:
32-
description: '[Safe Domain, Optional]'
33-
required: false
3431
hide_title_bar:
3532
description: '[Hide TitleBar, Optional, MacOS only]'
3633
required: false
@@ -92,7 +89,7 @@ jobs:
9289
if: inputs.platform == 'ubuntu-20.04'
9390
uses: awalsh128/cache-apt-pkgs-action@latest
9491
with:
95-
packages: libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev gnome-video-effects gnome-video-effects-extra
92+
packages: libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev gnome-video-effects gnome-video-effects-extra
9693
version: 1.1
9794

9895
- name: Install pake-cli local
@@ -132,7 +129,6 @@ jobs:
132129
RESIZE: ${{ inputs.resize }}
133130
MULTI_ARCH: ${{ inputs.multi_arch }}
134131
TARGETS: ${{ inputs.targets }}
135-
SAFE_DOMAIN: ${{ inputs.safe_domain }}
136132

137133
- name: Upload archive
138134
uses: actions/upload-artifact@v3

.github/workflows/pake_build_next.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
- name: Get Apps Config
1818
id: read-apps-config
1919
run: |
20-
echo "apps_name=$(jq -c '[.apps| .[] | .name]' apps.conf.json)" >> $GITHUB_OUTPUT
21-
echo "apps_config=$(jq -c '[.apps | .[]]' apps.conf.json)" >> $GITHUB_OUTPUT
20+
echo "apps_name=$(jq -c '[.[] | .name]' default_app_list.json)" >> $GITHUB_OUTPUT
21+
echo "apps_config=$(jq -c '[.[]]' default_app_list.json)" >> $GITHUB_OUTPUT
2222
2323
trigger_build:
2424
needs: read_apps_config

.github/workflows/pake_build_single_app.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
if: matrix.os == 'ubuntu-latest'
7676
uses: awalsh128/cache-apt-pkgs-action@latest
7777
with:
78-
packages: libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev gnome-video-effects gnome-video-effects-extra
78+
packages: libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev gnome-video-effects gnome-video-effects-extra
7979
version: 1.1
8080

8181
- name: Rust cache restore

.github/workflows/rust-code-quality-check.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,11 @@ jobs:
4040
if: matrix.os == 'ubuntu-latest'
4141
uses: awalsh128/cache-apt-pkgs-action@latest
4242
with:
43-
packages: libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev gnome-video-effects gnome-video-effects-extra
43+
packages: libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev gnome-video-effects gnome-video-effects-extra
4444
version: 1.0
4545
- name: Run unit & integration tests with nextest
46-
run: cargo hack --feature-powerset --exclude-features cli-build nextest run
47-
# - name: Run documentation tests with cargo test
48-
# run: cargo hack --feature-powerset test --doc
46+
run: cargo hack --feature-powerset --exclude-features cli-build nextest run --no-tests=pass
47+
4948

5049
cargo-clippy:
5150
name: Check codebase quality (cargo clippy)
@@ -67,7 +66,7 @@ jobs:
6766
if: matrix.os == 'ubuntu-latest'
6867
uses: awalsh128/cache-apt-pkgs-action@latest
6968
with:
70-
packages: libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev gnome-video-effects gnome-video-effects-extra
69+
packages: libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev build-essential curl wget libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev gnome-video-effects gnome-video-effects-extra
7170
version: 1.0
7271
- name: Run all-features code quality checks
7372
run: cargo hack --feature-powerset --exclude-features cli-build --no-dev-deps clippy

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ src-tauri/.cargo/config.toml
3838
src-tauri/.cargo/
3939
.next
4040
src-tauri/.pake/
41+
src-tauri/gen

Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
1818
mkdir -p /cargo-cache && \
1919
cp -R /usr/local/cargo/registry /cargo-cache/ && \
2020
cp -R /usr/local/cargo/git /cargo-cache/
21-
2221
# Verify the content of /cargo-cache && clean unnecessary files
2322
RUN ls -la /cargo-cache/registry && ls -la /cargo-cache/git && rm -rfd /cargo-cache/registry/src
2423

@@ -28,8 +27,8 @@ FROM rust:1.80-slim AS builder
2827
RUN --mount=type=cache,target=/var/cache/apt \
2928
--mount=type=cache,target=/usr/local/cargo/registry \
3029
apt-get update && apt-get install -y --no-install-recommends \
31-
libdbus-1-dev libsoup2.4-dev libjavascriptcoregtk-4.0-dev \
32-
libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev \
30+
libdbus-1-dev libsoup2.4-dev libjavascriptcoregtk-4.1-dev \
31+
libwebkit2gtk-4.1-dev build-essential curl wget libssl-dev \
3332
libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev \
3433
gnome-video-effects
3534

README.md

+7-23
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@
5353
<a href="https://github.com/tw93/Pake/releases/latest/download/ChatGPT_x64.msi">Windows</a>
5454
<a href="https://github.com/tw93/Pake/releases/latest/download/ChatGPT_x86_64.deb">Linux</a>
5555
</td>
56-
<td>Poe
57-
<a href="https://github.com/tw93/Pake/releases/latest/download/Poe.dmg">Mac</a>
58-
<a href="https://github.com/tw93/Pake/releases/latest/download/Poe_x64.msi">Windows</a>
59-
<a href="https://github.com/tw93/Pake/releases/latest/download/Poe_x86_64.deb">Linux</a>
56+
<td>Qwerty
57+
<a href="https://github.com/tw93/Pake/releases/latest/download/Qwerty.dmg">Mac</a>
58+
<a href="https://github.com/tw93/Pake/releases/latest/download/Qwerty_x64.msi">Windows</a>
59+
<a href="https://github.com/tw93/Pake/releases/latest/download/Qwerty_x86_64.deb">Linux</a>
6060
</td>
6161
</tr>
6262
<tr>
6363
<td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/ChatGPT.png width=600/></td>
64-
<td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/Poe.png width=600/></td>
64+
<td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/Qwerty.png width=600/></td>
6565
</tr>
6666
<tr>
6767
<td>YouTube Music
@@ -96,22 +96,6 @@
9696
<td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/ProgramMusic.jpg width=600/></td>
9797
</tr>
9898
<tr>
99-
<td>Qwerty
100-
<a href="https://github.com/tw93/Pake/releases/latest/download/Qwerty.dmg">Mac</a>
101-
<a href="https://github.com/tw93/Pake/releases/latest/download/Qwerty_x64.msi">Windows</a>
102-
<a href="https://github.com/tw93/Pake/releases/latest/download/Qwerty_x86_64.deb">Linux</a>
103-
</td>
104-
<td>CodeRunner
105-
<a href="https://github.com/tw93/Pake/releases/latest/download/CodeRunner.dmg">Mac</a>
106-
<a href="https://github.com/tw93/Pake/releases/latest/download/CodeRunner_x64.msi">Windows</a>
107-
<a href="https://github.com/tw93/Pake/releases/latest/download/CodeRunner_x86_64.deb">Linux</a>
108-
</td>
109-
</tr>
110-
<tr>
111-
<td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/Qwerty.png width=600/></td>
112-
<td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/CodeRunner.jpg width=600/></td>
113-
</tr>
114-
<tr>
11599
<td>Flomo
116100
<a href="https://github.com/tw93/Pake/releases/latest/download/Flomo.dmg">Mac</a>
117101
<a href="https://github.com/tw93/Pake/releases/latest/download/Flomo_x64.msi">Windows</a>
@@ -154,7 +138,7 @@ In addition, double-click the title bar to switch to full-screen mode. For Mac u
154138
## Before starting
155139

156140
1. **For beginners**: Play with Popular Packages to find out Pake's capabilities, or try to pack your application with [GitHub Actions](<https://github.com/tw93/Pake/wiki/Online-Compilation-(used-by-ordinary-users)>). Don't hesitate to reach for assistance at [Discussion](https://github.com/tw93/Pake/discussions)!
157-
2. **For developers**: “Command-Line Packaging” supports macOS fully. For Windows/Linux users, it requires some tinkering. [Configure your environment](https://tauri.app/v1/guides/getting-started/prerequisites) before getting started.
141+
2. **For developers**: “Command-Line Packaging” supports macOS fully. For Windows/Linux users, it requires some tinkering. [Configure your environment](https://tauri.app/start/prerequisites/) before getting started.
158142
3. **For hackers**: For people who are good at both front-end development and Rust, how about customizing your apps' function more with the following [Customized Development](#development)?
159143

160144
## Command-Line Packaging
@@ -179,7 +163,7 @@ If you are new to the command line, you can compile packages online with _GitHub
179163

180164
## Development
181165

182-
Prepare your environment before starting. Make sure you have Rust `>=1.63` and Node `>=16` (e.g., `16.18.1`) installed on your computer. For installation guidance, see [Tauri documentation](https://tauri.app/v1/guides/getting-started/prerequisites).
166+
Prepare your environment before starting. Make sure you have Rust `>=1.63` and Node `>=16` (e.g., `16.18.1`) installed on your computer. For installation guidance, see [Tauri documentation](https://tauri.app/start/prerequisites/).
183167

184168
If you are unfamiliar with these, it is better to try out the above tool to pack with one click.
185169

README_CN.md

+7-23
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@
5252
<a href="https://github.com/tw93/Pake/releases/latest/download/ChatGPT_x64.msi">Windows</a>
5353
<a href="https://github.com/tw93/Pake/releases/latest/download/ChatGPT_x86_64.deb">Linux</a>
5454
</td>
55-
<td>Poe
56-
<a href="https://github.com/tw93/Pake/releases/latest/download/Poe.dmg">Mac</a>
57-
<a href="https://github.com/tw93/Pake/releases/latest/download/Poe_x64.msi">Windows</a>
58-
<a href="https://github.com/tw93/Pake/releases/latest/download/Poe_x86_64.deb">Linux</a>
55+
<td>Qwerty
56+
<a href="https://github.com/tw93/Pake/releases/latest/download/Qwerty.dmg">Mac</a>
57+
<a href="https://github.com/tw93/Pake/releases/latest/download/Qwerty_x64.msi">Windows</a>
58+
<a href="https://github.com/tw93/Pake/releases/latest/download/Qwerty_x86_64.deb">Linux</a>
5959
</td>
6060
</tr>
6161
<tr>
6262
<td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/ChatGPT.png width=600/></td>
63-
<td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/Poe.png width=600/></td>
63+
<td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/Qwerty.png width=600/></td>
6464
</tr>
6565
<tr>
6666
<td>YouTube Music
@@ -95,22 +95,6 @@
9595
<td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/ProgramMusic.jpg width=600/></td>
9696
</tr>
9797
<tr>
98-
<td>Qwerty
99-
<a href="https://github.com/tw93/Pake/releases/latest/download/Qwerty.dmg">Mac</a>
100-
<a href="https://github.com/tw93/Pake/releases/latest/download/Qwerty_x64.msi">Windows</a>
101-
<a href="https://github.com/tw93/Pake/releases/latest/download/Qwerty_x86_64.deb">Linux</a>
102-
</td>
103-
<td>CodeRunner
104-
<a href="https://github.com/tw93/Pake/releases/latest/download/CodeRunner.dmg">Mac</a>
105-
<a href="https://github.com/tw93/Pake/releases/latest/download/CodeRunner_x64.msi">Windows</a>
106-
<a href="https://github.com/tw93/Pake/releases/latest/download/CodeRunner_x86_64.deb">Linux</a>
107-
</td>
108-
</tr>
109-
<tr>
110-
<td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/Qwerty.png width=600/></td>
111-
<td><img src=https://raw.githubusercontent.com/tw93/static/main/pake/CodeRunner.jpg width=600/></td>
112-
</tr>
113-
<tr>
11498
<td>Flomo
11599
<a href="https://github.com/tw93/Pake/releases/latest/download/Flomo.dmg">Mac</a>
116100
<a href="https://github.com/tw93/Pake/releases/latest/download/Flomo_x64.msi">Windows</a>
@@ -154,7 +138,7 @@
154138
## 开始之前
155139

156140
1. **小白用户**:使用 「常用包下载」 方式来把玩 Pake 的能力,可去 [讨论群](https://github.com/tw93/Pake/discussions) 寻求帮助,也可试试 [Action](https://github.com/tw93/Pake/wiki/%E5%9C%A8%E7%BA%BF%E7%BC%96%E8%AF%91%EF%BC%88%E6%99%AE%E9%80%9A%E7%94%A8%E6%88%B7%E4%BD%BF%E7%94%A8%EF%BC%89) 方式。
157-
2. **开发用户**:使用 「命令行一键打包」,对 Mac 比较友好,Windows / Linux 需折腾下 [环境配置](https://tauri.app/v1/guides/getting-started/prerequisites)
141+
2. **开发用户**:使用 「命令行一键打包」,对 Mac 比较友好,Windows / Linux 需折腾下 [环境配置](https://tauri.app/start/prerequisites/)
158142
3. **折腾用户**:假如你前端和 Rust 都会,那可试试下面的 「[定制开发](#定制开发)」,可深度二次开发定制你的功能。
159143

160144
## 命令行一键打包
@@ -178,7 +162,7 @@ pake https://weekly.tw93.fun --name Weekly --hide-title-bar
178162

179163
## 定制开发
180164

181-
开始前请确保电脑已经安装了 Rust `>=1.63` 和 Node `>=16 如 16.18.1` 的环境,此外需参考 [Tauri 文档](https://tauri.app/v1/guides/getting-started/prerequisites) 快速配置好环境才可以开始使用,假如你太不懂,使用上面的命令行打包会更加合适。
165+
开始前请确保电脑已经安装了 Rust `>=1.63` 和 Node `>=16 如 16.18.1` 的环境,此外需参考 [Tauri 文档](https://tauri.app/start/prerequisites/) 快速配置好环境才可以开始使用,假如你太不懂,使用上面的命令行打包会更加合适。
182166

183167
```sh
184168
# 安装依赖

0 commit comments

Comments
 (0)