Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

chore: bump version to 3.10.0 and add --internal-url-regex test coverage

tw934fade56b5d13
diff --git a/dist/cli.js b/dist/cli.js
index c64f7a27..1bb9cf04 100644
--- a/dist/cli.js
+++ b/dist/cli.js
@@ -22,7 +22,7 @@ import * as psl from 'psl';
import { InvalidArgumentError, program as program$1, Option } from 'commander';
var name = "pake-cli";
-var version = "3.8.0";
+var version = "3.10.0";
var description = "🤱🏻 Turn any webpage into a desktop app with one command. 🤱🏻 一键打包网页生成轻量桌面应用。";
var engines = {
node: ">=18.0.0"
@@ -94,7 +94,7 @@ var devDependencies = {
"@rollup/plugin-replace": "^6.0.3",
"@rollup/plugin-terser": "^0.4.4",
"@types/fs-extra": "^11.0.4",
- "@types/node": "^25.3.0",
+ "@types/node": "^25.3.2",
"@types/page-icon": "^0.3.6",
"@types/prompts": "^2.4.9",
"@types/tmp": "^0.2.6",
@@ -102,7 +102,7 @@ var devDependencies = {
"app-root-path": "^3.1.0",
"cross-env": "^10.1.0",
prettier: "^3.8.1",
- rollup: "^4.58.0",
+ rollup: "^4.59.0",
"rollup-plugin-typescript2": "^0.36.0",
tslib: "^2.8.1",
typescript: "^5.9.3",
diff --git a/package.json b/package.json
index d54d8caf..79928d4b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "pake-cli",
- "version": "3.8.0",
+ "version": "3.10.0",
"description": "🤱🏻 Turn any webpage into a desktop app with one command. 🤱🏻 一键打包网页生成轻量桌面应用。",
"engines": {
"node": ">=18.0.0"
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index a89420cc..1bbeff39 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -2564,7 +2564,7 @@ dependencies = [
[[package]]
name = "pake"
-version = "3.8.0"
+version = "3.10.0"
dependencies = [
"serde",
"serde_json",
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index df424681..dc4afb34 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "pake"
-version = "3.8.0"
+version = "3.10.0"
description = "🤱🏻 Turn any webpage into a desktop app with Rust."
authors = ["Tw93"]
license = "MIT"
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index 5c95e07f..3e0b1045 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -1,7 +1,7 @@
{
"productName": "Weekly",
"identifier": "com.pake.weekly",
- "version": "1.0.0",
+ "version": "3.10.0",
"app": {
"withGlobalTauri": true,
"trayIcon": {
diff --git a/tests/unit/cli-options.test.ts b/tests/unit/cli-options.test.ts
index 81b52b65..bb1870bf 100644
--- a/tests/unit/cli-options.test.ts
+++ b/tests/unit/cli-options.test.ts
@@ -2,8 +2,9 @@ import { describe, expect, it } from 'vitest';
import { getCliProgram } from '../../bin/helpers/cli-program.js';
describe('CLI options', () => {
+ const program = getCliProgram();
+
it('registers hidden --multi-window option', () => {
- const program = getCliProgram();
const option = program.options.find(
(item) => item.long === '--multi-window',
);
@@ -11,4 +12,13 @@ describe('CLI options', () => {
expect(option).toBeDefined();
expect(option?.defaultValue).toBe(false);
});
+
+ it('registers hidden --internal-url-regex option', () => {
+ const option = program.options.find(
+ (item) => item.long === '--internal-url-regex',
+ );
+
+ expect(option).toBeDefined();
+ expect(option?.defaultValue).toBe('');
+ });
});