pake-cli 1.2.6 โ 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -15
- package/dist/cli.js +10 -10
- package/package.json +1 -1
- package/src-tauri/icons/chatgpt.icns +0 -0
- package/src-tauri/src/pake.js +6 -6
package/README.md
CHANGED
|
@@ -51,21 +51,21 @@
|
|
|
51
51
|
<a href="https://github.com/tw93/Pake/releases/latest/download/LiZhi_x64.msi">Windows</a>
|
|
52
52
|
<a href="https://github.com/tw93/Pake/releases/latest/download/LiZhi_x86_64.deb">Linux</a>
|
|
53
53
|
</td>
|
|
54
|
-
|
|
55
|
-
<a href="https://github.com/tw93/Pake/releases/latest/download/
|
|
56
|
-
<a href="https://github.com/tw93/Pake/releases/latest/download/
|
|
57
|
-
<a href="https://github.com/tw93/Pake/releases/latest/download/
|
|
54
|
+
<td>ChatGPT
|
|
55
|
+
<a href="https://github.com/tw93/Pake/releases/latest/download/ChatGPT.dmg">Mac</a>
|
|
56
|
+
<a href="https://github.com/tw93/Pake/releases/latest/download/ChatGPT_x64.msi">Windows</a>
|
|
57
|
+
<a href="https://github.com/tw93/Pake/releases/latest/download/ChatGPT_x86_64.deb">Linux</a>
|
|
58
58
|
</td>
|
|
59
59
|
</tr>
|
|
60
60
|
<tr>
|
|
61
61
|
<td><img src=https://cdn.fliggy.com/upic/DX3dfG.png width=600/></td>
|
|
62
|
-
<td><img src=https://cdn.fliggy.com/upic/
|
|
62
|
+
<td><img src=https://cdn.fliggy.com/upic/l5aC7R.png width=600/></td>
|
|
63
63
|
</tr>
|
|
64
64
|
<tr>
|
|
65
|
-
|
|
66
|
-
<a href="https://github.com/tw93/Pake/releases/latest/download/
|
|
67
|
-
<a href="https://github.com/tw93/Pake/releases/latest/download/
|
|
68
|
-
<a href="https://github.com/tw93/Pake/releases/latest/download/
|
|
65
|
+
<td>YouTube
|
|
66
|
+
<a href="https://github.com/tw93/Pake/releases/latest/download/YouTube.dmg">Mac</a>
|
|
67
|
+
<a href="https://github.com/tw93/Pake/releases/latest/download/YouTube_x64.msi">Windows</a>
|
|
68
|
+
<a href="https://github.com/tw93/Pake/releases/latest/download/YouTube_x86_64.deb">Linux</a>
|
|
69
69
|
</td>
|
|
70
70
|
<td>Reference
|
|
71
71
|
<a href="https://github.com/tw93/Pake/releases/latest/download/Reference.dmg">Mac</a>
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
</td>
|
|
75
75
|
</tr>
|
|
76
76
|
<tr>
|
|
77
|
-
<td><img src=https://cdn.fliggy.com/upic/
|
|
77
|
+
<td><img src=https://cdn.fliggy.com/upic/Ea5ZRw.png width=600/></td>
|
|
78
78
|
<td><img src=https://cdn.fliggy.com/upic/KFsZIY.png width=600/></td>
|
|
79
79
|
</tr>
|
|
80
80
|
<tr>
|
|
@@ -83,15 +83,15 @@
|
|
|
83
83
|
<a href="https://github.com/tw93/Pake/releases/latest/download/Flomo_x64.msi">Windows</a>
|
|
84
84
|
<a href="https://github.com/tw93/Pake/releases/latest/download/Flomo_x86_64.deb">Linux</a>
|
|
85
85
|
</td>
|
|
86
|
-
<td>
|
|
87
|
-
<a href="https://github.com/tw93/Pake/releases/latest/download/
|
|
88
|
-
<a href="https://github.com/tw93/Pake/releases/latest/download/
|
|
89
|
-
<a href="https://github.com/tw93/Pake/releases/latest/download/
|
|
86
|
+
<td>Qwerty
|
|
87
|
+
<a href="https://github.com/tw93/Pake/releases/latest/download/Qwerty.dmg">Mac</a>
|
|
88
|
+
<a href="https://github.com/tw93/Pake/releases/latest/download/Qwerty_x64.msi">Windows</a>
|
|
89
|
+
<a href="https://github.com/tw93/Pake/releases/latest/download/Qwerty_x86_64.deb">Linux</a>
|
|
90
90
|
</td>
|
|
91
91
|
</tr>
|
|
92
92
|
<tr>
|
|
93
93
|
<td><img src=https://gw.alipayobjects.com/zos/k/30/RoUSUf.png width=600/></td>
|
|
94
|
-
<td><img src=https://cdn.fliggy.com/upic/
|
|
94
|
+
<td><img src=https://cdn.fliggy.com/upic/CJjagn.jpg width=600/></td>
|
|
95
95
|
</tr>
|
|
96
96
|
</table>
|
|
97
97
|
|
package/dist/cli.js
CHANGED
|
@@ -1572,14 +1572,14 @@ function normalizeUrl(urlToNormalize) {
|
|
|
1572
1572
|
return urlWithProtocol;
|
|
1573
1573
|
}
|
|
1574
1574
|
else {
|
|
1575
|
-
throw new Error(`
|
|
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('
|
|
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
|
|
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('
|
|
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('
|
|
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.
|
|
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
|
|
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
|
|
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', '
|
|
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', "
|
|
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) {
|
package/package.json
CHANGED
|
Binary file
|
package/src-tauri/src/pake.js
CHANGED
|
@@ -65,16 +65,16 @@ window.addEventListener("DOMContentLoaded", (_event) => {
|
|
|
65
65
|
padding-top: 10px;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
#__next .overflow-hidden .
|
|
69
|
-
|
|
68
|
+
#__next .overflow-hidden>.hidden.bg-gray-900 span.rounded-md.bg-yellow-200 {
|
|
69
|
+
display: none;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
#__next .overflow-hidden>.hidden.bg-gray-900 {
|
|
73
|
-
|
|
72
|
+
#__next .overflow-hidden>.hidden.bg-gray-900 .scrollbar-trigger{
|
|
73
|
+
padding-top: 20px;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
#__next .
|
|
77
|
-
|
|
76
|
+
#__next .absolute .px-3.pt-2.pb-3.text-center {
|
|
77
|
+
visibility: hidden;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.lark > .dashboard-sidebar, .lark > .dashboard-sidebar > .sidebar-user-info , .lark > .dashboard-sidebar .index-module_wrapper_F-Wbq{
|