pake-cli 3.3.2 โ†’ 3.3.4

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/dist/cli.js CHANGED
@@ -22,7 +22,7 @@ import sharp from 'sharp';
22
22
  import * as psl from 'psl';
23
23
 
24
24
  var name = "pake-cli";
25
- var version = "3.3.2";
25
+ var version = "3.3.4";
26
26
  var description = "๐Ÿคฑ๐Ÿป Turn any webpage into a desktop app with one command. ๐Ÿคฑ๐Ÿป ไธ€้”ฎๆ‰“ๅŒ…็ฝ‘้กต็”Ÿๆˆ่ฝป้‡ๆกŒ้ขๅบ”็”จใ€‚";
27
27
  var engines = {
28
28
  node: ">=18.0.0"
@@ -1588,7 +1588,8 @@ ${green('|_| \\__,_|_|\\_\\___| can turn any webpage into a desktop app with
1588
1588
  program
1589
1589
  .addHelpText('beforeAll', logo)
1590
1590
  .usage(`[url] [options]`)
1591
- .showHelpAfterError();
1591
+ .showHelpAfterError()
1592
+ .helpOption(false);
1592
1593
  program
1593
1594
  .argument('[url]', 'The web URL you want to package', validateUrlInput)
1594
1595
  // Refer to https://github.com/tj/commander.js#custom-option-processing, turn string array into a string connected with custom connectors.
@@ -1661,7 +1662,20 @@ program
1661
1662
  .addOption(new Option('--installer-language <string>', 'Installer language')
1662
1663
  .default(DEFAULT_PAKE_OPTIONS.installerLanguage)
1663
1664
  .hideHelp())
1664
- .version(packageJson.version, '-v, --version', 'Output the current version')
1665
+ .version(packageJson.version, '-v, --version')
1666
+ .configureHelp({
1667
+ sortSubcommands: true,
1668
+ optionTerm: (option) => {
1669
+ if (option.flags === '-v, --version')
1670
+ return '';
1671
+ return option.flags;
1672
+ },
1673
+ optionDescription: (option) => {
1674
+ if (option.flags === '-v, --version')
1675
+ return '';
1676
+ return option.description;
1677
+ },
1678
+ })
1665
1679
  .action(async (url, options) => {
1666
1680
  await checkUpdateTips();
1667
1681
  if (!url) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pake-cli",
3
- "version": "3.3.2",
3
+ "version": "3.3.4",
4
4
  "description": "๐Ÿคฑ๐Ÿป Turn any webpage into a desktop app with one command. ๐Ÿคฑ๐Ÿป ไธ€้”ฎๆ‰“ๅŒ…็ฝ‘้กต็”Ÿๆˆ่ฝป้‡ๆกŒ้ขๅบ”็”จใ€‚",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "windows": [
3
3
  {
4
- "url": "https://github.com",
4
+ "url": "https://weekly.tw93.fun",
5
5
  "url_type": "web",
6
6
  "hide_title_bar": false,
7
7
  "fullscreen": false,
@@ -1,6 +1,6 @@
1
1
  {
2
- "productName": "GitHubAutoIconTest",
3
- "identifier": "com.pake.3097fc",
2
+ "productName": "TestWorkflow",
3
+ "identifier": "com.pake.33f03a",
4
4
  "version": "1.0.0",
5
5
  "app": {
6
6
  "withGlobalTauri": true,
@@ -13,14 +13,14 @@
13
13
  },
14
14
  "bundle": {
15
15
  "icon": [
16
- "icons/githubautoicontest.icns"
16
+ "icons/testworkflow.icns"
17
17
  ],
18
18
  "active": true,
19
19
  "targets": [
20
- "app"
20
+ "dmg"
21
21
  ],
22
22
  "resources": [
23
- "icons/githubautoicontest.icns"
23
+ "icons/testworkflow.icns"
24
24
  ]
25
25
  }
26
26
  }
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "bundle": {
3
3
  "icon": [
4
- "icons/githubautoicontest.icns"
4
+ "icons/testworkflow.icns"
5
5
  ],
6
6
  "active": true,
7
7
  "targets": [
8
- "app"
8
+ "dmg"
9
9
  ],
10
10
  "resources": [
11
- "icons/githubautoicontest.icns"
11
+ "icons/testworkflow.icns"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,7 +6,7 @@ authors = ["Tw93"]
6
6
  license = "MIT"
7
7
  repository = "https://github.com/tw93/Pake"
8
8
  edition = "2021"
9
- rust-version = "1.78.0"
9
+ rust-version = "1.85.0"
10
10
 
11
11
  [lib]
12
12
  name = "app_lib"
@@ -16,7 +16,6 @@ window.addEventListener("DOMContentLoaded", (_event) => {
16
16
  #masthead-ad,
17
17
  #app > header > div > div.menu,
18
18
  #root > div > div.fixed.top-0.left-0.w-64.h-screen.p-10.pb-0.flex.flex-col.justify-between > div > div.space-y-4 > a:nth-child(3),
19
- #app > div.layout > div.main-container > div.side-bar > div,
20
19
  #app > div.layout > div.main-container > div.side-bar > li.divider,
21
20
  #Rightbar > div:nth-child(6) > div.sidebar_compliance,
22
21
  #__next > div.PageWithSidebarLayout_centeringDiv___L9br > aside > div > div > a.ChatPageFollowTwitterLink_followLink__Gl2tt,