@bghitcode/bghitapp 1.1.0 → 1.1.2

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.1.0";
23
+ var version = "1.1.2";
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"
@@ -167,9 +167,9 @@ let tauriConfig = {
167
167
  bundle: platformConfig.bundle,
168
168
  app: {
169
169
  ...CommonConf.app,
170
- trayIcon: {
171
- ...(platformConfig?.app?.trayIcon ?? {}),
172
- },
170
+ ...(platformConfig?.app?.trayIcon
171
+ ? { trayIcon: { ...platformConfig.app.trayIcon } }
172
+ : {}),
173
173
  },
174
174
  build: CommonConf.build,
175
175
  bghitapp: bghitappConf,
@@ -2954,7 +2954,6 @@ async function checkUpdateTips() {
2954
2954
  }
2955
2955
  program.action(async (url, options) => {
2956
2956
  try {
2957
- console.log(logo);
2958
2957
  await checkUpdateTips();
2959
2958
  if (!url) {
2960
2959
  program.help({
@@ -2962,6 +2961,7 @@ program.action(async (url, options) => {
2962
2961
  });
2963
2962
  return;
2964
2963
  }
2964
+ console.log(logo);
2965
2965
  log.setDefaultLevel('info');
2966
2966
  log.setLevel('info');
2967
2967
  if (options.debug) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bghitcode/bghitapp",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "🤱🏻 Turn any webpage into a desktop app with one command — by BghitCode.",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -4,11 +4,6 @@
4
4
  "version": "1.0.0",
5
5
  "app": {
6
6
  "withGlobalTauri": true,
7
- "trayIcon": {
8
- "iconPath": "images/icon.png",
9
- "iconAsTemplate": false,
10
- "id": "bghitapp-tray"
11
- },
12
7
  "security": {
13
8
  "headers": {},
14
9
  "csp": null