🔧 Global formatting and update formatting
This commit is contained in:
332
dist/cli.js
vendored
332
dist/cli.js
vendored
@@ -23,232 +23,232 @@ var name = "pake-cli";
|
||||
var version$1 = "3.1.2";
|
||||
var description = "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。";
|
||||
var engines = {
|
||||
node: ">=16.0.0"
|
||||
node: ">=16.0.0"
|
||||
};
|
||||
var bin = {
|
||||
pake: "./cli.js"
|
||||
pake: "./cli.js"
|
||||
};
|
||||
var repository = {
|
||||
type: "git",
|
||||
url: "https://github.com/tw93/pake.git"
|
||||
type: "git",
|
||||
url: "https://github.com/tw93/pake.git"
|
||||
};
|
||||
var author = {
|
||||
name: "Tw93",
|
||||
email: "tw93@qq.com"
|
||||
name: "Tw93",
|
||||
email: "tw93@qq.com"
|
||||
};
|
||||
var keywords = [
|
||||
"pake",
|
||||
"pake-cli",
|
||||
"rust",
|
||||
"tauri",
|
||||
"no-electron",
|
||||
"productivity"
|
||||
"pake",
|
||||
"pake-cli",
|
||||
"rust",
|
||||
"tauri",
|
||||
"no-electron",
|
||||
"productivity"
|
||||
];
|
||||
var files = [
|
||||
"dist",
|
||||
"src-tauri",
|
||||
"cli.js"
|
||||
"dist",
|
||||
"src-tauri",
|
||||
"cli.js"
|
||||
];
|
||||
var scripts = {
|
||||
start: "npm run dev",
|
||||
dev: "npm run tauri dev",
|
||||
build: "npm run tauri build --release",
|
||||
"build:debug": "npm run tauri build -- --debug",
|
||||
"build:mac": "npm run tauri build -- --target universal-apple-darwin",
|
||||
"build:config": "chmod +x script/app_config.mjs && node script/app_config.mjs",
|
||||
analyze: "cd src-tauri && cargo bloat --release --crates",
|
||||
tauri: "tauri",
|
||||
cli: "rollup -c rollup.config.js --watch",
|
||||
"cli:dev": "cross-env NODE_ENV=development rollup -c rollup.config.js -w",
|
||||
"cli:build": "cross-env NODE_ENV=production rollup -c rollup.config.js",
|
||||
prepublishOnly: "npm run cli:build"
|
||||
start: "npm run dev",
|
||||
dev: "npm run tauri dev",
|
||||
build: "npm run tauri build --release",
|
||||
"build:debug": "npm run tauri build -- --debug",
|
||||
"build:mac": "npm run tauri build -- --target universal-apple-darwin",
|
||||
"build:config": "chmod +x script/app_config.mjs && node script/app_config.mjs",
|
||||
analyze: "cd src-tauri && cargo bloat --release --crates",
|
||||
tauri: "tauri",
|
||||
cli: "rollup -c rollup.config.js --watch",
|
||||
"cli:dev": "cross-env NODE_ENV=development rollup -c rollup.config.js -w",
|
||||
"cli:build": "cross-env NODE_ENV=production rollup -c rollup.config.js",
|
||||
prepublishOnly: "npm run cli:build"
|
||||
};
|
||||
var type = "module";
|
||||
var exports = "./dist/pake.js";
|
||||
var license = "MIT";
|
||||
var dependencies = {
|
||||
"@tauri-apps/api": "^2.2.0",
|
||||
"@tauri-apps/cli": "^2.2.5",
|
||||
axios: "^1.7.9",
|
||||
chalk: "^5.4.1",
|
||||
commander: "^13.1.0",
|
||||
execa: "^9.5.2",
|
||||
"file-type": "^20.0.0",
|
||||
"fs-extra": "^11.3.0",
|
||||
"is-url": "^1.2.4",
|
||||
loglevel: "^1.9.2",
|
||||
ora: "^8.1.1",
|
||||
prompts: "^2.4.2",
|
||||
psl: "^1.15.0",
|
||||
"tmp-promise": "^3.0.3",
|
||||
"update-notifier": "^7.3.1"
|
||||
"@tauri-apps/api": "^2.2.0",
|
||||
"@tauri-apps/cli": "^2.2.5",
|
||||
axios: "^1.7.9",
|
||||
chalk: "^5.4.1",
|
||||
commander: "^13.1.0",
|
||||
execa: "^9.5.2",
|
||||
"file-type": "^20.0.0",
|
||||
"fs-extra": "^11.3.0",
|
||||
"is-url": "^1.2.4",
|
||||
loglevel: "^1.9.2",
|
||||
ora: "^8.1.1",
|
||||
prompts: "^2.4.2",
|
||||
psl: "^1.15.0",
|
||||
"tmp-promise": "^3.0.3",
|
||||
"update-notifier": "^7.3.1"
|
||||
};
|
||||
var devDependencies = {
|
||||
"@rollup/plugin-alias": "^5.1.1",
|
||||
"@rollup/plugin-commonjs": "^28.0.2",
|
||||
"@rollup/plugin-json": "^6.1.0",
|
||||
"@rollup/plugin-replace": "^6.0.2",
|
||||
"@rollup/plugin-terser": "^0.4.4",
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/is-url": "^1.2.32",
|
||||
"@types/node": "^22.10.8",
|
||||
"@types/page-icon": "^0.3.6",
|
||||
"@types/prompts": "^2.4.9",
|
||||
"@types/psl": "^1.1.3",
|
||||
"@types/tmp": "^0.2.6",
|
||||
"@types/update-notifier": "^6.0.8",
|
||||
"app-root-path": "^3.1.0",
|
||||
"cross-env": "^7.0.3",
|
||||
rollup: "^4.31.0",
|
||||
"rollup-plugin-typescript2": "^0.36.0",
|
||||
tslib: "^2.8.1",
|
||||
typescript: "^5.7.3"
|
||||
"@rollup/plugin-alias": "^5.1.1",
|
||||
"@rollup/plugin-commonjs": "^28.0.2",
|
||||
"@rollup/plugin-json": "^6.1.0",
|
||||
"@rollup/plugin-replace": "^6.0.2",
|
||||
"@rollup/plugin-terser": "^0.4.4",
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/is-url": "^1.2.32",
|
||||
"@types/node": "^22.10.8",
|
||||
"@types/page-icon": "^0.3.6",
|
||||
"@types/prompts": "^2.4.9",
|
||||
"@types/psl": "^1.1.3",
|
||||
"@types/tmp": "^0.2.6",
|
||||
"@types/update-notifier": "^6.0.8",
|
||||
"app-root-path": "^3.1.0",
|
||||
"cross-env": "^7.0.3",
|
||||
rollup: "^4.31.0",
|
||||
"rollup-plugin-typescript2": "^0.36.0",
|
||||
tslib: "^2.8.1",
|
||||
typescript: "^5.7.3"
|
||||
};
|
||||
var packageJson = {
|
||||
name: name,
|
||||
version: version$1,
|
||||
description: description,
|
||||
engines: engines,
|
||||
bin: bin,
|
||||
repository: repository,
|
||||
author: author,
|
||||
keywords: keywords,
|
||||
files: files,
|
||||
scripts: scripts,
|
||||
type: type,
|
||||
exports: exports,
|
||||
license: license,
|
||||
dependencies: dependencies,
|
||||
devDependencies: devDependencies
|
||||
name: name,
|
||||
version: version$1,
|
||||
description: description,
|
||||
engines: engines,
|
||||
bin: bin,
|
||||
repository: repository,
|
||||
author: author,
|
||||
keywords: keywords,
|
||||
files: files,
|
||||
scripts: scripts,
|
||||
type: type,
|
||||
exports: exports,
|
||||
license: license,
|
||||
dependencies: dependencies,
|
||||
devDependencies: devDependencies
|
||||
};
|
||||
|
||||
var windows = [
|
||||
{
|
||||
url: "https://weread.qq.com/",
|
||||
url_type: "web",
|
||||
hide_title_bar: true,
|
||||
fullscreen: false,
|
||||
width: 1200,
|
||||
height: 780,
|
||||
resizable: true,
|
||||
always_on_top: false,
|
||||
dark_mode: false,
|
||||
activation_shortcut: "",
|
||||
disabled_web_shortcuts: false,
|
||||
hide_on_close: true
|
||||
}
|
||||
{
|
||||
url: "https://weread.qq.com/",
|
||||
url_type: "web",
|
||||
hide_title_bar: true,
|
||||
fullscreen: false,
|
||||
width: 1200,
|
||||
height: 780,
|
||||
resizable: true,
|
||||
always_on_top: false,
|
||||
dark_mode: false,
|
||||
activation_shortcut: "",
|
||||
disabled_web_shortcuts: false,
|
||||
hide_on_close: true
|
||||
}
|
||||
];
|
||||
var user_agent = {
|
||||
macos: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15",
|
||||
linux: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36",
|
||||
windows: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
|
||||
macos: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15",
|
||||
linux: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36",
|
||||
windows: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
|
||||
};
|
||||
var system_tray = {
|
||||
macos: false,
|
||||
linux: true,
|
||||
windows: true
|
||||
macos: false,
|
||||
linux: true,
|
||||
windows: true
|
||||
};
|
||||
var system_tray_path = "icons/icon.png";
|
||||
var inject = [
|
||||
];
|
||||
var proxy_url = "";
|
||||
var pakeConf = {
|
||||
windows: windows,
|
||||
user_agent: user_agent,
|
||||
system_tray: system_tray,
|
||||
system_tray_path: system_tray_path,
|
||||
inject: inject,
|
||||
proxy_url: proxy_url
|
||||
windows: windows,
|
||||
user_agent: user_agent,
|
||||
system_tray: system_tray,
|
||||
system_tray_path: system_tray_path,
|
||||
inject: inject,
|
||||
proxy_url: proxy_url
|
||||
};
|
||||
|
||||
var productName$1 = "WeRead";
|
||||
var identifier = "com.pake.weread";
|
||||
var version = "1.0.0";
|
||||
var app = {
|
||||
withGlobalTauri: true,
|
||||
trayIcon: {
|
||||
iconPath: "png/weread_512.png",
|
||||
iconAsTemplate: false,
|
||||
id: "pake-tray"
|
||||
}
|
||||
withGlobalTauri: true,
|
||||
trayIcon: {
|
||||
iconPath: "png/weread_512.png",
|
||||
iconAsTemplate: false,
|
||||
id: "pake-tray"
|
||||
}
|
||||
};
|
||||
var build = {
|
||||
frontendDist: "../dist"
|
||||
frontendDist: "../dist"
|
||||
};
|
||||
var CommonConf = {
|
||||
productName: productName$1,
|
||||
identifier: identifier,
|
||||
version: version,
|
||||
app: app,
|
||||
build: build
|
||||
productName: productName$1,
|
||||
identifier: identifier,
|
||||
version: version,
|
||||
app: app,
|
||||
build: build
|
||||
};
|
||||
|
||||
var bundle$2 = {
|
||||
icon: [
|
||||
"png/weread_256.ico",
|
||||
"png/weread_32.ico"
|
||||
],
|
||||
active: true,
|
||||
resources: [
|
||||
"png/weread_32.ico"
|
||||
],
|
||||
targets: [
|
||||
"msi"
|
||||
],
|
||||
windows: {
|
||||
digestAlgorithm: "sha256",
|
||||
wix: {
|
||||
language: [
|
||||
"en-US"
|
||||
],
|
||||
template: "assets/main.wxs"
|
||||
}
|
||||
}
|
||||
icon: [
|
||||
"png/weread_256.ico",
|
||||
"png/weread_32.ico"
|
||||
],
|
||||
active: true,
|
||||
resources: [
|
||||
"png/weread_32.ico"
|
||||
],
|
||||
targets: [
|
||||
"msi"
|
||||
],
|
||||
windows: {
|
||||
digestAlgorithm: "sha256",
|
||||
wix: {
|
||||
language: [
|
||||
"en-US"
|
||||
],
|
||||
template: "assets/main.wxs"
|
||||
}
|
||||
}
|
||||
};
|
||||
var WinConf = {
|
||||
bundle: bundle$2
|
||||
bundle: bundle$2
|
||||
};
|
||||
|
||||
var bundle$1 = {
|
||||
icon: [
|
||||
"icons/weread.icns"
|
||||
],
|
||||
active: true,
|
||||
macOS: {
|
||||
},
|
||||
targets: [
|
||||
"dmg"
|
||||
]
|
||||
icon: [
|
||||
"icons/weread.icns"
|
||||
],
|
||||
active: true,
|
||||
macOS: {
|
||||
},
|
||||
targets: [
|
||||
"dmg"
|
||||
]
|
||||
};
|
||||
var MacConf = {
|
||||
bundle: bundle$1
|
||||
bundle: bundle$1
|
||||
};
|
||||
|
||||
var productName = "we-read";
|
||||
var bundle = {
|
||||
icon: [
|
||||
"png/weread_512.png"
|
||||
],
|
||||
active: true,
|
||||
linux: {
|
||||
deb: {
|
||||
depends: [
|
||||
"curl",
|
||||
"wget"
|
||||
],
|
||||
files: {
|
||||
"/usr/share/applications/com-pake-weread.desktop": "assets/com-pake-weread.desktop"
|
||||
}
|
||||
}
|
||||
},
|
||||
targets: [
|
||||
"deb",
|
||||
"appimage"
|
||||
]
|
||||
icon: [
|
||||
"png/weread_512.png"
|
||||
],
|
||||
active: true,
|
||||
linux: {
|
||||
deb: {
|
||||
depends: [
|
||||
"curl",
|
||||
"wget"
|
||||
],
|
||||
files: {
|
||||
"/usr/share/applications/com-pake-weread.desktop": "assets/com-pake-weread.desktop"
|
||||
}
|
||||
}
|
||||
},
|
||||
targets: [
|
||||
"deb",
|
||||
"appimage"
|
||||
]
|
||||
};
|
||||
var LinuxConf = {
|
||||
productName: productName,
|
||||
bundle: bundle
|
||||
productName: productName,
|
||||
bundle: bundle
|
||||
};
|
||||
|
||||
const platformConfigs = {
|
||||
|
||||
Reference in New Issue
Block a user