Skip to content

Commit

Permalink
🐛 Upgrade version/reduce iP time
Browse files Browse the repository at this point in the history
  • Loading branch information
tw93 committed May 7, 2024
1 parent 750efe9 commit fda004f
Show file tree
Hide file tree
Showing 5 changed files with 204 additions and 154 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dist
!dist/about_pake.html
!dist/cli.js
!dist/.gitkeep
src-tauri/.cargo/config
src-tauri/.cargo/config.toml
src-tauri/.cargo/
.next
src-tauri/.pake/
src-tauri/.pake/
2 changes: 1 addition & 1 deletion bin/utils/ip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async function isChinaIP(ip: string, domain: string): Promise<boolean> {
try {
const delay = await ping(ip);
logger.debug(`${domain} latency is ${delay} ms`);
return delay > 1000;
return delay > 500;
} catch (error) {
logger.debug(`ping ${domain} failed!`);
return true;
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pake-cli",
"version": "2.3.7",
"version": "2.3.8",
"description": "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。",
"engines": {
"node": ">=16.0.0"
Expand Down Expand Up @@ -48,7 +48,7 @@
"license": "MIT",
"dependencies": {
"@tauri-apps/api": "^1.5.4",
"@tauri-apps/cli": "^1.5.12",
"@tauri-apps/cli": "^1.5.13",
"axios": "^1.6.8",
"chalk": "^5.3.0",
"commander": "^11.1.0",
Expand Down Expand Up @@ -79,7 +79,7 @@
"@types/update-notifier": "^6.0.8",
"app-root-path": "^3.1.0",
"cross-env": "^7.0.3",
"rollup": "^4.17.0",
"rollup": "^4.17.2",
"rollup-plugin-typescript2": "^0.36.0",
"tslib": "^2.6.2",
"typescript": "^5.4.5"
Expand Down
Loading

0 comments on commit fda004f

Please sign in to comment.