Skip to content

Commit 1a66d88

Browse files
committed
✨ new version
1 parent dadf1c8 commit 1a66d88

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
</tr>
6060
<tr>
6161
<td><img src=https://cdn.fliggy.com/upic/DX3dfG.png width=600/></td>
62-
<td><img src=https://cdn.fliggy.com/upic/iKGVZy.png width=600/></td>
62+
<td><img src=https://cdn.fliggy.com/upic/l5aC7R.png width=600/></td>
6363
</tr>
6464
<tr>
6565
<td>YouTube

README_CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
</tr>
5959
<tr>
6060
<td><img src=https://cdn.fliggy.com/upic/DX3dfG.png width=600/></td>
61-
<td><img src=https://cdn.fliggy.com/upic/iKGVZy.png width=600/></td>
61+
<td><img src=https://cdn.fliggy.com/upic/l5aC7R.png width=600/></td>
6262
</tr>
6363
<tr>
6464
<td>YouTube

dist/cli.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -1572,14 +1572,14 @@ function normalizeUrl(urlToNormalize) {
15721572
return urlWithProtocol;
15731573
}
15741574
else {
1575-
throw new Error(`Your url "${urlWithProtocol}" is invalid`);
1575+
throw new Error(`The URL "${urlWithProtocol}" you provided is invalid.`);
15761576
}
15771577
}
15781578

15791579
function validateNumberInput(value) {
15801580
const parsedValue = Number(value);
15811581
if (isNaN(parsedValue)) {
1582-
throw new Commander.InvalidArgumentError('Not a number.');
1582+
throw new Commander.InvalidArgumentError('The input cannot be a number.');
15831583
}
15841584
return parsedValue;
15851585
}
@@ -1742,7 +1742,7 @@ function handleIcon(options, url) {
17421742
}
17431743
function getDefaultIcon() {
17441744
return __awaiter(this, void 0, void 0, function* () {
1745-
logger.info('You have not provided an app icon, use the default icon.(use --icon option to assign an icon)');
1745+
logger.info('You haven\'t provided an app icon, so the default icon will be used. To assign a custom icon, please use the --icon option.');
17461746
let iconPath = 'src-tauri/icons/icon.icns';
17471747
if (IS_WIN) {
17481748
iconPath = 'src-tauri/png/icon_256.ico';
@@ -1786,7 +1786,7 @@ function handleOptions(options, url) {
17861786
return __awaiter(this, void 0, void 0, function* () {
17871787
const appOptions = Object.assign(Object.assign({}, options), { identifier: '' });
17881788
if (!appOptions.name) {
1789-
appOptions.name = yield promptText('please input your application name', getDomain(url));
1789+
appOptions.name = yield promptText('Please enter the name of your application.', getDomain(url));
17901790
}
17911791
appOptions.identifier = getIdentifier(appOptions.name, url);
17921792
appOptions.icon = yield handleIcon(appOptions);
@@ -1817,7 +1817,7 @@ function installRust() {
18171817
spinner.succeed();
18181818
}
18191819
catch (error) {
1820-
console.error('install rust return code', error.message);
1820+
console.error('Error codes that occur during the Rust installation process.', error.message);
18211821
spinner.fail();
18221822
process.exit(1);
18231823
}
@@ -2170,7 +2170,7 @@ class BuilderFactory {
21702170
}
21712171

21722172
var name = "pake-cli";
2173-
var version = "1.2.6";
2173+
var version = "1.2.7";
21742174
var description = "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 很简单的用 Rust 打包网页生成很小的桌面 App。";
21752175
var engines = {
21762176
node: ">=16.0.0"
@@ -2273,19 +2273,19 @@ function checkUpdateTips() {
22732273
});
22742274
}
22752275

2276-
program.version(packageJson.version).description('A cli application can turn any webpage into a desktop app with Rust.');
2276+
program.version(packageJson.version).description('A command-line tool that can quickly convert a webpage into a desktop application.');
22772277
program
22782278
.showHelpAfterError()
2279-
.argument('[url]', 'the web url you want to package', validateUrlInput)
2279+
.argument('[url]', 'the web URL you want to package', validateUrlInput)
22802280
.option('-n, --name <string>', 'application name')
22812281
.option('-i, --icon <string>', 'application icon', DEFAULT_PAKE_OPTIONS.icon)
22822282
.option('-w, --width <number>', 'window width', validateNumberInput, DEFAULT_PAKE_OPTIONS.width)
22832283
.option('-h, --height <number>', 'window height', validateNumberInput, DEFAULT_PAKE_OPTIONS.height)
2284-
.option('-f, --fullscreen', 'makes the packaged app start in full screen', DEFAULT_PAKE_OPTIONS.fullscreen)
2284+
.option('-f, --fullscreen', 'start in full screen mode', DEFAULT_PAKE_OPTIONS.fullscreen)
22852285
.option('-t, --transparent', 'transparent title bar', DEFAULT_PAKE_OPTIONS.transparent)
22862286
.option('-r, --no-resizable', 'whether the window can be resizable', DEFAULT_PAKE_OPTIONS.resizable)
22872287
.option('-d, --debug', 'debug', DEFAULT_PAKE_OPTIONS.debug)
2288-
.option('-m, --multi-arch', "Supports both Intel and m1 chips, only for Mac.", DEFAULT_PAKE_OPTIONS.multiArch)
2288+
.option('-m, --multi-arch', "available for Mac only, and supports both Intel and M1", DEFAULT_PAKE_OPTIONS.multiArch)
22892289
.action((url, options) => __awaiter(void 0, void 0, void 0, function* () {
22902290
yield checkUpdateTips();
22912291
if (!url) {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pake-cli",
3-
"version": "1.2.6",
3+
"version": "1.2.7",
44
"description": "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 很简单的用 Rust 打包网页生成很小的桌面 App。",
55
"engines": {
66
"node": ">=16.0.0"

src-tauri/icons/wechat.icns

538 KB
Binary file not shown.

0 commit comments

Comments
 (0)