pake最新版本

This commit is contained in:
Tw93
2022-12-21 19:42:17 +08:00
parent 043c472013
commit 737022fa2b
6 changed files with 54 additions and 38 deletions

4
bin/README.md vendored
View File

@@ -51,7 +51,7 @@ url 为你需要打包的网页链接 🔗,必须提供。
#### [height] #### [height]
打包后的应用窗口高度,默认 `800px` 打包后的应用窗口高度,默认 `780px`
```shell ```shell
--height <number> --height <number>
@@ -59,7 +59,7 @@ url 为你需要打包的网页链接 🔗,必须提供。
#### [width] #### [width]
打包后的应用窗口宽度,默认 `1280px` 打包后的应用窗口宽度,默认 `1200px`
```shell ```shell
--width <number> --width <number>

4
bin/README_EN.md vendored
View File

@@ -50,7 +50,7 @@ The application icon, support local and remote files, the default is brand icon
#### [height] #### [height]
The height of the packaged application window. The default is `800px`. The height of the packaged application window. The default is `780px`.
```shell ```shell
--height <number> --height <number>
@@ -58,7 +58,7 @@ The height of the packaged application window. The default is `800px`.
#### [width] #### [width]
The width of the packaged application window. The default is `1280px`. The width of the packaged application window. The default is `1200px`.
```shell ```shell
--width <number> --width <number>

4
bin/defaults.ts vendored
View File

@@ -2,8 +2,8 @@ import { PakeCliOptions } from './types.js';
export const DEFAULT_PAKE_OPTIONS: PakeCliOptions = { export const DEFAULT_PAKE_OPTIONS: PakeCliOptions = {
icon: '', icon: '',
height: 800, height: 780,
width: 1280, width: 1200,
fullscreen: false, fullscreen: false,
resizable: true, resizable: true,
transparent: false, transparent: false,

4
bin/types.ts vendored
View File

@@ -5,10 +5,10 @@ export interface PakeCliOptions {
/** 应用icon */ /** 应用icon */
icon: string; icon: string;
/** 应用窗口宽度,默认 1280px */ /** 应用窗口宽度,默认 1200px */
width: number; width: number;
/** 应用窗口高度,默认 800px */ /** 应用窗口高度,默认 780px */
height: number; height: number;
/** 是否可以拖动默认true */ /** 是否可以拖动默认true */

26
dist/cli.js vendored
View File

@@ -42,8 +42,8 @@ function __awaiter(thisArg, _arguments, P, generator) {
const DEFAULT_PAKE_OPTIONS = { const DEFAULT_PAKE_OPTIONS = {
icon: '', icon: '',
height: 800, height: 780,
width: 1280, width: 1200,
fullscreen: false, fullscreen: false,
resizable: true, resizable: true,
transparent: false, transparent: false,
@@ -1961,7 +1961,9 @@ var tauri = {
"libssl-dev", "libssl-dev",
"libgtk-3-dev", "libgtk-3-dev",
"libayatana-appindicator3-dev", "libayatana-appindicator3-dev",
"librsvg2-dev" "librsvg2-dev",
"gnome-video-effects",
"gnome-video-effects-extra"
], ],
files: { files: {
"/usr/share/applications/com-tw93-weread.desktop": "assets/com-tw93-weread.desktop" "/usr/share/applications/com-tw93-weread.desktop": "assets/com-tw93-weread.desktop"
@@ -2167,8 +2169,11 @@ class BuilderFactory {
} }
var name = "pake-cli"; var name = "pake-cli";
var version = "0.1.2"; var version = "1.0.1";
var description = "🤱🏻 很简单的用 Rust 打包网页生成很小的桌面 App 🤱🏻 A simple way to make any web page a desktop application using Rust."; var description = "🤱🏻 很简单的用 Rust 打包网页生成很小的桌面 App 🤱🏻 A simple way to make any web page a desktop application using Rust.";
var engines = {
node: "^14.13 || >=16.0.0"
};
var bin = { var bin = {
pake: "./cli.js" pake: "./cli.js"
}; };
@@ -2180,6 +2185,14 @@ var author = {
name: "Tw93", name: "Tw93",
email: "tw93@qq.com" email: "tw93@qq.com"
}; };
var keywords = [
"pake",
"pake-cli",
"rust",
"tauri",
"no-electron",
"productivity"
];
var files = [ var files = [
"dist", "dist",
"src-tauri", "src-tauri",
@@ -2190,6 +2203,7 @@ var scripts = {
dev: "npm run tauri dev", dev: "npm run tauri dev",
"dev:debug": "npm run tauri dev -- --features devtools", "dev:debug": "npm run tauri dev -- --features devtools",
build: "npm run tauri build --release", build: "npm run tauri build --release",
"build:mac": "npm run tauri build -- --target universal-apple-darwin",
"build:all-unix": "chmod +x ./script/build.sh && ./script/build.sh", "build:all-unix": "chmod +x ./script/build.sh && ./script/build.sh",
"build:all-windows": ".\\script\\build.bat", "build:all-windows": ".\\script\\build.bat",
tauri: "tauri", tauri: "tauri",
@@ -2202,7 +2216,7 @@ var exports = "./dist/pake.js";
var license = "MIT"; var license = "MIT";
var dependencies = { var dependencies = {
"@tauri-apps/api": "^1.2.0", "@tauri-apps/api": "^1.2.0",
"@tauri-apps/cli": "^1.2.1", "@tauri-apps/cli": "^1.2.2",
axios: "^1.1.3", axios: "^1.1.3",
chalk: "^5.1.2", chalk: "^5.1.2",
commander: "^9.4.1", commander: "^9.4.1",
@@ -2238,9 +2252,11 @@ var packageJson = {
name: name, name: name,
version: version, version: version,
description: description, description: description,
engines: engines,
bin: bin, bin: bin,
repository: repository, repository: repository,
author: author, author: author,
keywords: keywords,
files: files, files: files,
scripts: scripts, scripts: scripts,
type: type, type: type,

View File

@@ -1,6 +1,6 @@
{ {
"name": "pake-cli", "name": "pake-cli",
"version": "1.0.0", "version": "1.0.1",
"description": "🤱🏻 很简单的用 Rust 打包网页生成很小的桌面 App 🤱🏻 A simple way to make any web page a desktop application using Rust.", "description": "🤱🏻 很简单的用 Rust 打包网页生成很小的桌面 App 🤱🏻 A simple way to make any web page a desktop application using Rust.",
"engines": { "engines": {
"node": "^14.13 || >=16.0.0" "node": "^14.13 || >=16.0.0"
@@ -40,7 +40,7 @@
"tauri": "tauri", "tauri": "tauri",
"cli": "rollup -c rollup.config.js --watch", "cli": "rollup -c rollup.config.js --watch",
"cli:build": "cross-env NODE_ENV=production rollup -c rollup.config.js", "cli:build": "cross-env NODE_ENV=production rollup -c rollup.config.js",
"cli:publish": "npm run cli:build && npm publish" "prepublishOnly": "npm run cli:build"
}, },
"type": "module", "type": "module",
"exports": "./dist/pake.js", "exports": "./dist/pake.js",