✨ pake最新版本
This commit is contained in:
4
bin/README.md
vendored
4
bin/README.md
vendored
@@ -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
4
bin/README_EN.md
vendored
@@ -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
4
bin/defaults.ts
vendored
@@ -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
4
bin/types.ts
vendored
@@ -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 */
|
||||||
|
|||||||
72
dist/cli.js
vendored
72
dist/cli.js
vendored
@@ -15,35 +15,35 @@ import ora from 'ora';
|
|||||||
import shelljs from 'shelljs';
|
import shelljs from 'shelljs';
|
||||||
import updateNotifier from 'update-notifier';
|
import updateNotifier from 'update-notifier';
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
Copyright (c) Microsoft Corporation.
|
Copyright (c) Microsoft Corporation.
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
purpose with or without fee is hereby granted.
|
purpose with or without fee is hereby granted.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
PERFORMANCE OF THIS SOFTWARE.
|
PERFORMANCE OF THIS SOFTWARE.
|
||||||
***************************************************************************** */
|
***************************************************************************** */
|
||||||
|
|
||||||
function __awaiter(thisArg, _arguments, P, generator) {
|
function __awaiter(thisArg, _arguments, P, generator) {
|
||||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
return new (P || (P = Promise))(function (resolve, reject) {
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
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,
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user