@@ -1572,14 +1572,14 @@ function normalizeUrl(urlToNormalize) {
1572
1572
return urlWithProtocol ;
1573
1573
}
1574
1574
else {
1575
- throw new Error ( `Your url "${ urlWithProtocol } " is invalid` ) ;
1575
+ throw new Error ( `The URL "${ urlWithProtocol } " you provided is invalid. ` ) ;
1576
1576
}
1577
1577
}
1578
1578
1579
1579
function validateNumberInput ( value ) {
1580
1580
const parsedValue = Number ( value ) ;
1581
1581
if ( isNaN ( parsedValue ) ) {
1582
- throw new Commander . InvalidArgumentError ( 'Not a number.' ) ;
1582
+ throw new Commander . InvalidArgumentError ( 'The input cannot be a number.' ) ;
1583
1583
}
1584
1584
return parsedValue ;
1585
1585
}
@@ -1742,7 +1742,7 @@ function handleIcon(options, url) {
1742
1742
}
1743
1743
function getDefaultIcon ( ) {
1744
1744
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. ' ) ;
1746
1746
let iconPath = 'src-tauri/icons/icon.icns' ;
1747
1747
if ( IS_WIN ) {
1748
1748
iconPath = 'src-tauri/png/icon_256.ico' ;
@@ -1786,7 +1786,7 @@ function handleOptions(options, url) {
1786
1786
return __awaiter ( this , void 0 , void 0 , function * ( ) {
1787
1787
const appOptions = Object . assign ( Object . assign ( { } , options ) , { identifier : '' } ) ;
1788
1788
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 ) ) ;
1790
1790
}
1791
1791
appOptions . identifier = getIdentifier ( appOptions . name , url ) ;
1792
1792
appOptions . icon = yield handleIcon ( appOptions ) ;
@@ -1817,7 +1817,7 @@ function installRust() {
1817
1817
spinner . succeed ( ) ;
1818
1818
}
1819
1819
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 ) ;
1821
1821
spinner . fail ( ) ;
1822
1822
process . exit ( 1 ) ;
1823
1823
}
@@ -2170,7 +2170,7 @@ class BuilderFactory {
2170
2170
}
2171
2171
2172
2172
var name = "pake-cli" ;
2173
- var version = "1.2.6 " ;
2173
+ var version = "1.2.7 " ;
2174
2174
var description = "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 很简单的用 Rust 打包网页生成很小的桌面 App。" ;
2175
2175
var engines = {
2176
2176
node : ">=16.0.0"
@@ -2273,19 +2273,19 @@ function checkUpdateTips() {
2273
2273
} ) ;
2274
2274
}
2275
2275
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 .' ) ;
2277
2277
program
2278
2278
. showHelpAfterError ( )
2279
- . argument ( '[url]' , 'the web url you want to package' , validateUrlInput )
2279
+ . argument ( '[url]' , 'the web URL you want to package' , validateUrlInput )
2280
2280
. option ( '-n, --name <string>' , 'application name' )
2281
2281
. option ( '-i, --icon <string>' , 'application icon' , DEFAULT_PAKE_OPTIONS . icon )
2282
2282
. option ( '-w, --width <number>' , 'window width' , validateNumberInput , DEFAULT_PAKE_OPTIONS . width )
2283
2283
. 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 )
2285
2285
. option ( '-t, --transparent' , 'transparent title bar' , DEFAULT_PAKE_OPTIONS . transparent )
2286
2286
. option ( '-r, --no-resizable' , 'whether the window can be resizable' , DEFAULT_PAKE_OPTIONS . resizable )
2287
2287
. 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 )
2289
2289
. action ( ( url , options ) => __awaiter ( void 0 , void 0 , void 0 , function * ( ) {
2290
2290
yield checkUpdateTips ( ) ;
2291
2291
if ( ! url ) {
0 commit comments