From 22cacfa6ff2898e0092445f356148281b30b6723 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Tue, 7 Jan 2025 10:18:05 +0800 Subject: [PATCH 1/4] :wrench: update rust code --- src-tauri/src/app/setup.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/app/setup.rs b/src-tauri/src/app/setup.rs index 9d3eba5..a66a427 100644 --- a/src-tauri/src/app/setup.rs +++ b/src-tauri/src/app/setup.rs @@ -67,7 +67,9 @@ pub fn set_global_shortcut(app: &AppHandle, shortcut: String) -> tauri::Result<( let last_triggered = Arc::clone(&last_triggered); move |app, event, _shortcut| { let mut last_triggered = last_triggered.lock().unwrap(); - if Instant::now().duration_since(*last_triggered) < Duration::from_millis(300) { + if Instant::now().duration_since(*last_triggered) + < Duration::from_millis(300) + { return; } *last_triggered = Instant::now(); From 6f105ca9461a5fb8c0fdb06bf35bd220a69186fe Mon Sep 17 00:00:00 2001 From: GoodbyeNJN Date: Tue, 14 Jan 2025 04:48:37 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=90=9B=20Update=20`inject`=20definiti?= =?UTF-8?q?on=20in=20command=20line=20options.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cli.ts b/bin/cli.ts index 4dd8418..dd8a369 100644 --- a/bin/cli.ts +++ b/bin/cli.ts @@ -30,7 +30,7 @@ program .option('--fullscreen', 'Start in full screen', DEFAULT.fullscreen) .option('--hide-title-bar', 'For Mac, hide title bar', DEFAULT.hideTitleBar) .option('--multi-arch', 'For Mac, both Intel and M1', DEFAULT.multiArch) - .option('--inject ', 'Injection of .js or .css files', DEFAULT.inject) + .option('--inject ', 'Injection of .js or .css files', DEFAULT.inject) .option('--debug', 'Debug build and more output', DEFAULT.debug) .addOption(new Option('--proxy-url ', 'Proxy URL for all network requests').default(DEFAULT_PAKE_OPTIONS.proxyUrl).hideHelp()) .addOption(new Option('--user-agent ', 'Custom user agent').default(DEFAULT.userAgent).hideHelp()) From b8af95672de1e93edda273228a2503acce67175d Mon Sep 17 00:00:00 2001 From: GoodbyeNJN Date: Fri, 17 Jan 2025 00:17:32 +0800 Subject: [PATCH 3/4] :bug: Fixed `awalsh128/cache-apt-pkgs-action` version in workflow to `v1.4.3` --- .github/workflows/pake-cli.yaml | 2 +- .github/workflows/pake_build_single_app.yaml | 2 +- .github/workflows/rust-code-quality-check.yml | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pake-cli.yaml b/.github/workflows/pake-cli.yaml index 3619471..727514f 100644 --- a/.github/workflows/pake-cli.yaml +++ b/.github/workflows/pake-cli.yaml @@ -92,7 +92,7 @@ jobs: - name: Install dependencies (ubuntu only) if: inputs.platform == 'ubuntu-20.04' - uses: awalsh128/cache-apt-pkgs-action@latest + uses: awalsh128/cache-apt-pkgs-action@v1.4.3 with: 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 version: 1.1 diff --git a/.github/workflows/pake_build_single_app.yaml b/.github/workflows/pake_build_single_app.yaml index d76da69..713604a 100644 --- a/.github/workflows/pake_build_single_app.yaml +++ b/.github/workflows/pake_build_single_app.yaml @@ -73,7 +73,7 @@ jobs: - name: Install dependencies (ubuntu only) if: matrix.os == 'ubuntu-latest' - uses: awalsh128/cache-apt-pkgs-action@latest + uses: awalsh128/cache-apt-pkgs-action@v1.4.3 with: 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 version: 1.1 diff --git a/.github/workflows/rust-code-quality-check.yml b/.github/workflows/rust-code-quality-check.yml index d20382b..51af2ba 100644 --- a/.github/workflows/rust-code-quality-check.yml +++ b/.github/workflows/rust-code-quality-check.yml @@ -38,14 +38,13 @@ jobs: tool: cargo-hack,nextest - name: Install dependencies for Ubuntu if: matrix.os == 'ubuntu-latest' - uses: awalsh128/cache-apt-pkgs-action@latest + uses: awalsh128/cache-apt-pkgs-action@v1.4.3 with: 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 version: 1.0 - name: Run unit & integration tests with nextest run: cargo hack --feature-powerset --exclude-features cli-build nextest run --no-tests=pass - cargo-clippy: name: Check codebase quality (cargo clippy) runs-on: ${{ matrix.os }} @@ -64,7 +63,7 @@ jobs: - uses: taiki-e/install-action@cargo-hack - name: Install dependencies for Ubuntu if: matrix.os == 'ubuntu-latest' - uses: awalsh128/cache-apt-pkgs-action@latest + uses: awalsh128/cache-apt-pkgs-action@v1.4.3 with: 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 version: 1.0 From ba6e84e9498cb70f4df34ca45b817f029f0f4b9d Mon Sep 17 00:00:00 2001 From: Tw93 Date: Wed, 22 Jan 2025 14:24:24 +0800 Subject: [PATCH 4/4] docs(contributor): contrib-readme-action has updated readme --- README.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f9c57ae..7343b87 100644 --- a/README.md +++ b/README.md @@ -386,6 +386,13 @@ Pake's development can not be without these Hackers. They contributed a lot of c Fechin + + + GoodbyeNJN +
+ GoodbyeNJN +
+ ImgBotApp @@ -399,15 +406,15 @@ Pake's development can not be without these Hackers. They contributed a lot of c
Jiaqi Gu
- + + Milo123459
Milo
- - + princemaple @@ -449,15 +456,15 @@ Pake's development can not be without these Hackers. They contributed a lot of c
Liusishan
- + + piaoyidage
Ranger
- - + hetz