🔖 CLI 2.1.9

This commit is contained in:
Tw93
2023-06-28 15:29:49 +08:00
parent 481537624d
commit d99c146877
2 changed files with 9 additions and 9 deletions

16
dist/cli.js vendored
View File

@@ -20,7 +20,7 @@ import isUrl from 'is-url';
import fs from 'fs'; import fs from 'fs';
var name = "pake-cli"; var name = "pake-cli";
var version = "2.1.8"; var version = "2.1.9";
var description = "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 很简单的用 Rust 打包网页生成很小的桌面 App。"; var description = "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 很简单的用 Rust 打包网页生成很小的桌面 App。";
var engines = { var engines = {
node: ">=16.0.0" node: ">=16.0.0"
@@ -205,7 +205,7 @@ var tauri$2 = {
"png/weread_256.ico", "png/weread_256.ico",
"png/weread_32.ico" "png/weread_32.ico"
], ],
identifier: "com.tw93.weread", identifier: "com.pake.weread",
active: true, active: true,
category: "DeveloperTool", category: "DeveloperTool",
copyright: "", copyright: "",
@@ -241,7 +241,7 @@ var tauri$1 = {
icon: [ icon: [
"icons/weread.icns" "icons/weread.icns"
], ],
identifier: "com.tw93.weread", identifier: "com.pake.weread",
active: true, active: true,
category: "DeveloperTool", category: "DeveloperTool",
copyright: "", copyright: "",
@@ -273,7 +273,7 @@ var tauri = {
icon: [ icon: [
"png/weread_512.png" "png/weread_512.png"
], ],
identifier: "com.tw93.weread", identifier: "com.pake.weread",
active: true, active: true,
category: "DeveloperTool", category: "DeveloperTool",
copyright: "", copyright: "",
@@ -283,7 +283,7 @@ var tauri = {
"wget" "wget"
], ],
files: { files: {
"/usr/share/applications/com-tw93-weread.desktop": "assets/com-tw93-weread.desktop" "/usr/share/applications/com-pake-weread.desktop": "assets/com-pake-weread.desktop"
} }
}, },
externalBin: [ externalBin: [
@@ -323,7 +323,7 @@ let tauriConfig = {
// Generates an identifier based on the given URL. // Generates an identifier based on the given URL.
function getIdentifier(url) { function getIdentifier(url) {
const postFixHash = crypto.createHash('md5').update(url).digest('hex').substring(0, 6); const postFixHash = crypto.createHash('md5').update(url).digest('hex').substring(0, 6);
return `pake-${postFixHash}`; return `com.pake.${postFixHash}`;
} }
async function promptText(message, initial) { async function promptText(message, initial) {
const response = await prompts({ const response = await prompts({
@@ -617,8 +617,8 @@ class BaseBuilder {
const tauriTargetPath = path.join(tauriSrcPath, 'target'); const tauriTargetPath = path.join(tauriSrcPath, 'target');
const tauriTargetPathExists = await fsExtra.pathExists(tauriTargetPath); const tauriTargetPathExists = await fsExtra.pathExists(tauriTargetPath);
if (!IS_MAC && !tauriTargetPathExists) { if (!IS_MAC && !tauriTargetPathExists) {
logger.info(' The first use requires installing system dependencies.'); logger.warn(' The first use requires installing system dependencies.');
logger.info(' See more in https://tauri.app/v1/guides/getting-started/prerequisites.'); logger.warn(' See more in https://tauri.app/v1/guides/getting-started/prerequisites.');
} }
if (!checkRustInstalled()) { if (!checkRustInstalled()) {
const res = await prompts({ const res = await prompts({

View File

@@ -1,6 +1,6 @@
{ {
"name": "pake-cli", "name": "pake-cli",
"version": "2.1.8", "version": "2.1.9",
"description": "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 很简单的用 Rust 打包网页生成很小的桌面 App。", "description": "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 很简单的用 Rust 打包网页生成很小的桌面 App。",
"engines": { "engines": {
"node": ">=16.0.0" "node": ">=16.0.0"