Skip to content

Commit fda004f

Browse files
committed
🐛 Upgrade version/reduce iP time
1 parent 750efe9 commit fda004f

File tree

5 files changed

+204
-154
lines changed

5 files changed

+204
-154
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dist
3434
!dist/about_pake.html
3535
!dist/cli.js
3636
!dist/.gitkeep
37-
src-tauri/.cargo/config
37+
src-tauri/.cargo/config.toml
3838
src-tauri/.cargo/
3939
.next
40-
src-tauri/.pake/
40+
src-tauri/.pake/

bin/utils/ip.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async function isChinaIP(ip: string, domain: string): Promise<boolean> {
4747
try {
4848
const delay = await ping(ip);
4949
logger.debug(`${domain} latency is ${delay} ms`);
50-
return delay > 1000;
50+
return delay > 500;
5151
} catch (error) {
5252
logger.debug(`ping ${domain} failed!`);
5353
return true;

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pake-cli",
3-
"version": "2.3.7",
3+
"version": "2.3.8",
44
"description": "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。",
55
"engines": {
66
"node": ">=16.0.0"
@@ -48,7 +48,7 @@
4848
"license": "MIT",
4949
"dependencies": {
5050
"@tauri-apps/api": "^1.5.4",
51-
"@tauri-apps/cli": "^1.5.12",
51+
"@tauri-apps/cli": "^1.5.13",
5252
"axios": "^1.6.8",
5353
"chalk": "^5.3.0",
5454
"commander": "^11.1.0",
@@ -79,7 +79,7 @@
7979
"@types/update-notifier": "^6.0.8",
8080
"app-root-path": "^3.1.0",
8181
"cross-env": "^7.0.3",
82-
"rollup": "^4.17.0",
82+
"rollup": "^4.17.2",
8383
"rollup-plugin-typescript2": "^0.36.0",
8484
"tslib": "^2.6.2",
8585
"typescript": "^5.4.5"

0 commit comments

Comments
 (0)