@bghitcode/bghitapp 1.0.3 → 1.0.5

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
@@ -20,7 +20,7 @@ import { InvalidArgumentError, program as program$1, Option } from 'commander';
20
20
  import fs$1 from 'fs';
21
21
 
22
22
  var name = "@bghitcode/bghitapp";
23
- var version = "1.0.3";
23
+ var version = "1.0.5";
24
24
  var description = "🤱🏻 Turn any webpage into a desktop app with one command — by BghitCode.";
25
25
  var engines = {
26
26
  node: ">=18.0.0"
@@ -2771,14 +2771,15 @@ function validateUrlInput(url) {
2771
2771
  return url;
2772
2772
  }
2773
2773
 
2774
- function getCliProgram() {
2775
- const { green, yellow } = chalk;
2776
- const logo = `${chalk.green(' ____ _')}
2777
- ${green('| _ \\ __ _| | _____')}
2778
- ${green('| |_) / _` | |/ / _ \\')}
2779
- ${green('| __/ (_| | < __/')} ${yellow('https://github.com/BghitCode/bghitapp')}
2780
- ${green('|_| \\__,_|_|\\_\\___| can turn any webpage into a desktop app with Rust.')}
2774
+ const { green, yellow, cyan } = chalk;
2775
+ const logo = `
2776
+ ${cyan('╔══════════════════════════════════════════════════════════╗')}
2777
+ ${cyan('║')} ${green('BghitApp')} v${packageJson.version}${' '.repeat(29 - packageJson.version.length)}${cyan('║')}
2778
+ ${cyan('║')} ${yellow('Turn any webpage into a desktop app with Rust')} ${cyan('║')}
2779
+ ${cyan('')} ${yellow('https://github.com/BghitCode/bghitapp')} ${cyan('║')}
2780
+ ${cyan('╚══════════════════════════════════════════════════════════╝')}
2781
2781
  `;
2782
+ function getCliProgram() {
2782
2783
  return program$1
2783
2784
  .addHelpText('beforeAll', logo)
2784
2785
  .usage(`[url] [options]`)
@@ -2951,6 +2952,7 @@ async function checkUpdateTips() {
2951
2952
  }
2952
2953
  program.action(async (url, options) => {
2953
2954
  try {
2955
+ console.log(logo);
2954
2956
  await checkUpdateTips();
2955
2957
  if (!url) {
2956
2958
  program.help({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bghitcode/bghitapp",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "🤱🏻 Turn any webpage into a desktop app with one command — by BghitCode.",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -53,7 +53,6 @@ custom-protocol = ["tauri/custom-protocol"]
53
53
 
54
54
  [profile.release]
55
55
  panic = "abort"
56
- codegen-units = 1
57
56
  lto = "thin"
58
- opt-level = "z"
57
+ opt-level = 2
59
58
  strip = true