@sunshine-star/dsh-access-pc 0.1.5 → 0.1.6

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/main.js CHANGED
@@ -300,7 +300,6 @@ if (args.version) {
300
300
  minWidth: 960,
301
301
  minHeight: 640,
302
302
  title: 'DSH Access',
303
- icon: path.join(__dirname, 'assets', process.platform === 'win32' ? 'icon.ico' : 'icon.png'),
304
303
  backgroundColor: '#0b1220',
305
304
  autoHideMenuBar: true,
306
305
  webPreferences: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunshine-star/dsh-access-pc",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "DSH Access PC client (Electron shell around the hub console)",
5
5
  "main": "main.js",
6
6
  "bin": {
@@ -15,7 +15,6 @@
15
15
  "scripts/doctor.js",
16
16
  "scripts/shortcut.js",
17
17
  "scripts/postinstall.js",
18
- "assets",
19
18
  "README.md"
20
19
  ],
21
20
  "scripts": {
@@ -15,8 +15,6 @@ const path = require('node:path')
15
15
 
16
16
  const APP_NAME = 'DSH Access'
17
17
  const appDir = path.join(__dirname, '..')
18
- const iconIco = path.join(appDir, 'assets', 'icon.ico')
19
- const iconPng = path.join(appDir, 'assets', 'icon.png')
20
18
 
21
19
  function electronBinary() {
22
20
  // npm 先跑本包 postinstall、再跑 electron 的下载脚本,此时 require('electron')
@@ -60,7 +58,6 @@ $sc = $ws.CreateShortcut($env:SHORTCUT_LNK)
60
58
  $sc.TargetPath = $env:SHORTCUT_TARGET
61
59
  $sc.Arguments = $env:SHORTCUT_ARGS
62
60
  $sc.WorkingDirectory = $env:SHORTCUT_WD
63
- $sc.IconLocation = $env:SHORTCUT_ICON
64
61
  $sc.Description = 'DSH Access - remote DSH client'
65
62
  $sc.Save()
66
63
  `
@@ -70,7 +67,6 @@ $sc.Save()
70
67
  SHORTCUT_TARGET: electronBinary(),
71
68
  SHORTCUT_ARGS: `"${appDir}"`,
72
69
  SHORTCUT_WD: appDir,
73
- SHORTCUT_ICON: iconIco,
74
70
  }
75
71
  const result = spawnSync('powershell.exe', ['-NoProfile', '-NonInteractive', '-Command', script], {
76
72
  env,
@@ -87,7 +83,6 @@ Type=Application
87
83
  Name=${APP_NAME}
88
84
  Comment=Remote DSH client
89
85
  Exec="${electron}" "${appDir}"
90
- Icon=${iconPng}
91
86
  Terminal=false
92
87
  Categories=Network;RemoteAccess;
93
88
  StartupWMClass=dsh-access-pc
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/assets/icon.ico DELETED
Binary file
package/assets/icon.png DELETED
Binary file