🔧 Update dependencies to the latest
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -20,7 +20,6 @@ dist-ssr
|
|||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
.npmrc
|
|
||||||
output
|
output
|
||||||
*.msi
|
*.msi
|
||||||
*.deb
|
*.deb
|
||||||
|
|||||||
9
.npmrc
Normal file
9
.npmrc
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
shamefully-hoist=true
|
||||||
|
packageManager=pnpm@10.15.0
|
||||||
|
|
||||||
|
# Suppress npm funding and audit messages during installation
|
||||||
|
fund=false
|
||||||
|
audit=false
|
||||||
|
|
||||||
|
# Resolve sharp version conflicts
|
||||||
|
prefer-dedupe=true
|
||||||
38
dist/cli.js
vendored
38
dist/cli.js
vendored
@@ -18,6 +18,7 @@ import axios from 'axios';
|
|||||||
import { dir } from 'tmp-promise';
|
import { dir } from 'tmp-promise';
|
||||||
import { fileTypeFromBuffer } from 'file-type';
|
import { fileTypeFromBuffer } from 'file-type';
|
||||||
import icongen from 'icon-gen';
|
import icongen from 'icon-gen';
|
||||||
|
import sharp from 'sharp';
|
||||||
import * as psl from 'psl';
|
import * as psl from 'psl';
|
||||||
|
|
||||||
var name = "pake-cli";
|
var name = "pake-cli";
|
||||||
@@ -64,6 +65,7 @@ var scripts = {
|
|||||||
test: "pnpm run cli:build && cross-env PAKE_CREATE_APP=1 node tests/index.js",
|
test: "pnpm run cli:build && cross-env PAKE_CREATE_APP=1 node tests/index.js",
|
||||||
format: "prettier --write . --ignore-unknown && find tests -name '*.js' -exec sed -i '' 's/[[:space:]]*$//' {} \\; && cd src-tauri && cargo fmt --verbose",
|
format: "prettier --write . --ignore-unknown && find tests -name '*.js' -exec sed -i '' 's/[[:space:]]*$//' {} \\; && cd src-tauri && cargo fmt --verbose",
|
||||||
"format:check": "prettier --check . --ignore-unknown",
|
"format:check": "prettier --check . --ignore-unknown",
|
||||||
|
update: "pnpm update --verbose && cd src-tauri && cargo update",
|
||||||
prepublishOnly: "pnpm run cli:build"
|
prepublishOnly: "pnpm run cli:build"
|
||||||
};
|
};
|
||||||
var type = "module";
|
var type = "module";
|
||||||
@@ -74,7 +76,7 @@ var dependencies = {
|
|||||||
"@tauri-apps/cli": "^2.8.3",
|
"@tauri-apps/cli": "^2.8.3",
|
||||||
axios: "^1.11.0",
|
axios: "^1.11.0",
|
||||||
chalk: "^5.6.0",
|
chalk: "^5.6.0",
|
||||||
commander: "^11.1.0",
|
commander: "^12.1.0",
|
||||||
execa: "^9.6.0",
|
execa: "^9.6.0",
|
||||||
"file-type": "^18.7.0",
|
"file-type": "^18.7.0",
|
||||||
"fs-extra": "^11.3.1",
|
"fs-extra": "^11.3.1",
|
||||||
@@ -83,6 +85,7 @@ var dependencies = {
|
|||||||
ora: "^8.2.0",
|
ora: "^8.2.0",
|
||||||
prompts: "^2.4.2",
|
prompts: "^2.4.2",
|
||||||
psl: "^1.15.0",
|
psl: "^1.15.0",
|
||||||
|
sharp: "^0.34.3",
|
||||||
"tmp-promise": "^3.0.3",
|
"tmp-promise": "^3.0.3",
|
||||||
"update-notifier": "^7.3.1"
|
"update-notifier": "^7.3.1"
|
||||||
};
|
};
|
||||||
@@ -106,9 +109,6 @@ var devDependencies = {
|
|||||||
tslib: "^2.8.1",
|
tslib: "^2.8.1",
|
||||||
typescript: "^5.9.2"
|
typescript: "^5.9.2"
|
||||||
};
|
};
|
||||||
var optionalDependencies = {
|
|
||||||
sharp: "^0.33.5"
|
|
||||||
};
|
|
||||||
var packageJson = {
|
var packageJson = {
|
||||||
name: name,
|
name: name,
|
||||||
version: version,
|
version: version,
|
||||||
@@ -125,8 +125,7 @@ var packageJson = {
|
|||||||
exports: exports,
|
exports: exports,
|
||||||
license: license,
|
license: license,
|
||||||
dependencies: dependencies,
|
dependencies: dependencies,
|
||||||
devDependencies: devDependencies,
|
devDependencies: devDependencies
|
||||||
optionalDependencies: optionalDependencies
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Convert the current module URL to a file path
|
// Convert the current module URL to a file path
|
||||||
@@ -1071,24 +1070,6 @@ async function checkUpdateTips() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lazy load sharp to handle installation issues gracefully
|
|
||||||
let sharp;
|
|
||||||
/**
|
|
||||||
* Safely loads sharp with fallback
|
|
||||||
*/
|
|
||||||
async function loadSharp() {
|
|
||||||
if (sharp)
|
|
||||||
return sharp;
|
|
||||||
try {
|
|
||||||
const sharpModule = await import('sharp');
|
|
||||||
sharp = sharpModule.default || sharpModule;
|
|
||||||
return sharp;
|
|
||||||
}
|
|
||||||
catch (error) {
|
|
||||||
logger.warn('Sharp not available, icon preprocessing will be skipped');
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Constants
|
// Constants
|
||||||
const ICON_CONFIG = {
|
const ICON_CONFIG = {
|
||||||
minFileSize: 100,
|
minFileSize: 100,
|
||||||
@@ -1108,17 +1089,12 @@ const API_TOKENS = {
|
|||||||
*/
|
*/
|
||||||
async function preprocessIcon(inputPath) {
|
async function preprocessIcon(inputPath) {
|
||||||
try {
|
try {
|
||||||
const sharpInstance = await loadSharp();
|
const metadata = await sharp(inputPath).metadata();
|
||||||
if (!sharpInstance) {
|
|
||||||
logger.debug('Sharp not available, skipping icon preprocessing');
|
|
||||||
return inputPath;
|
|
||||||
}
|
|
||||||
const metadata = await sharpInstance(inputPath).metadata();
|
|
||||||
if (metadata.channels !== 4)
|
if (metadata.channels !== 4)
|
||||||
return inputPath; // No transparency
|
return inputPath; // No transparency
|
||||||
const { path: tempDir } = await dir();
|
const { path: tempDir } = await dir();
|
||||||
const outputPath = path.join(tempDir, 'icon-with-background.png');
|
const outputPath = path.join(tempDir, 'icon-with-background.png');
|
||||||
await sharpInstance({
|
await sharp({
|
||||||
create: {
|
create: {
|
||||||
width: metadata.width || 512,
|
width: metadata.width || 512,
|
||||||
height: metadata.height || 512,
|
height: metadata.height || 512,
|
||||||
|
|||||||
11
package.json
11
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "pake-cli",
|
"name": "pake-cli",
|
||||||
"version": "3.2.17",
|
"version": "3.2.18",
|
||||||
"description": "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。",
|
"description": "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0"
|
"node": ">=18.0.0"
|
||||||
@@ -43,6 +43,7 @@
|
|||||||
"test": "pnpm run cli:build && cross-env PAKE_CREATE_APP=1 node tests/index.js",
|
"test": "pnpm run cli:build && cross-env PAKE_CREATE_APP=1 node tests/index.js",
|
||||||
"format": "prettier --write . --ignore-unknown && find tests -name '*.js' -exec sed -i '' 's/[[:space:]]*$//' {} \\; && cd src-tauri && cargo fmt --verbose",
|
"format": "prettier --write . --ignore-unknown && find tests -name '*.js' -exec sed -i '' 's/[[:space:]]*$//' {} \\; && cd src-tauri && cargo fmt --verbose",
|
||||||
"format:check": "prettier --check . --ignore-unknown",
|
"format:check": "prettier --check . --ignore-unknown",
|
||||||
|
"update": "pnpm update --verbose && cd src-tauri && cargo update",
|
||||||
"prepublishOnly": "pnpm run cli:build"
|
"prepublishOnly": "pnpm run cli:build"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@@ -50,10 +51,10 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tauri-apps/api": "^2.8.0",
|
"@tauri-apps/api": "^2.8.0",
|
||||||
"@tauri-apps/cli": "^2.8.1",
|
"@tauri-apps/cli": "^2.8.3",
|
||||||
"axios": "^1.11.0",
|
"axios": "^1.11.0",
|
||||||
"chalk": "^5.6.0",
|
"chalk": "^5.6.0",
|
||||||
"commander": "^11.1.0",
|
"commander": "^12.1.0",
|
||||||
"execa": "^9.6.0",
|
"execa": "^9.6.0",
|
||||||
"file-type": "^18.7.0",
|
"file-type": "^18.7.0",
|
||||||
"fs-extra": "^11.3.1",
|
"fs-extra": "^11.3.1",
|
||||||
@@ -62,7 +63,7 @@
|
|||||||
"ora": "^8.2.0",
|
"ora": "^8.2.0",
|
||||||
"prompts": "^2.4.2",
|
"prompts": "^2.4.2",
|
||||||
"psl": "^1.15.0",
|
"psl": "^1.15.0",
|
||||||
"sharp": "^0.33.5",
|
"sharp": "^0.34.3",
|
||||||
"tmp-promise": "^3.0.3",
|
"tmp-promise": "^3.0.3",
|
||||||
"update-notifier": "^7.3.1"
|
"update-notifier": "^7.3.1"
|
||||||
},
|
},
|
||||||
@@ -81,7 +82,7 @@
|
|||||||
"app-root-path": "^3.1.0",
|
"app-root-path": "^3.1.0",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.6.2",
|
||||||
"rollup": "^4.46.3",
|
"rollup": "^4.49.0",
|
||||||
"rollup-plugin-typescript2": "^0.36.0",
|
"rollup-plugin-typescript2": "^0.36.0",
|
||||||
"tslib": "^2.8.1",
|
"tslib": "^2.8.1",
|
||||||
"typescript": "^5.9.2"
|
"typescript": "^5.9.2"
|
||||||
|
|||||||
601
pnpm-lock.yaml
generated
601
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
629
src-tauri/Cargo.lock
generated
629
src-tauri/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -18,17 +18,17 @@ crate-type = ["staticlib", "cdylib", "lib"]
|
|||||||
tauri-build = { version = "2.4.0", features = [] }
|
tauri-build = { version = "2.4.0", features = [] }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde_json = "1.0.142"
|
serde_json = "1.0.143"
|
||||||
serde = { version = "1.0.219", features = ["derive"] }
|
serde = { version = "1.0.219", features = ["derive"] }
|
||||||
tokio = { version = "1.47.1", features = ["full"] }
|
tokio = { version = "1.47.1", features = ["full"] }
|
||||||
tauri = { version = "2.8.0", features = ["tray-icon", "image-ico", "image-png", "macos-proxy"] }
|
tauri = { version = "2.8.4", features = ["tray-icon", "image-ico", "image-png", "macos-proxy"] }
|
||||||
tauri-plugin-window-state = "2.4.0"
|
tauri-plugin-window-state = "2.4.0"
|
||||||
tauri-plugin-oauth = "2.0.0"
|
tauri-plugin-oauth = "2.0.0"
|
||||||
tauri-plugin-http = "2.5.1"
|
tauri-plugin-http = "2.5.2"
|
||||||
tauri-plugin-global-shortcut = { version = "2.3.0" }
|
tauri-plugin-global-shortcut = { version = "2.3.0" }
|
||||||
tauri-plugin-shell = "2.3.0"
|
tauri-plugin-shell = "2.3.1"
|
||||||
tauri-plugin-single-instance = "2.3.2"
|
tauri-plugin-single-instance = "2.3.3"
|
||||||
tauri-plugin-notification = "2.3.0"
|
tauri-plugin-notification = "2.3.1"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
# this feature is used for development builds from development cli
|
# this feature is used for development builds from development cli
|
||||||
|
|||||||
Reference in New Issue
Block a user