@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 +10 -8
- package/package.json +1 -1
- package/src-tauri/Cargo.toml +1 -2
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.
|
|
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
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
${green('
|
|
2778
|
-
${
|
|
2779
|
-
${
|
|
2780
|
-
${
|
|
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