cicy-desktop 2.1.33 → 2.1.34
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/README.md +35 -1
- package/bin/cicy-desktop +8 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,7 +45,41 @@ cicy-rpc open_window url=https://example.com
|
|
|
45
45
|
cicy-rpc --json get_window_info win_id=1
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
##
|
|
48
|
+
## Run (end users, no clone)
|
|
49
|
+
|
|
50
|
+
First run launches the Electron app and drops a desktop shortcut (Windows
|
|
51
|
+
`.lnk` / macOS `.app` / Linux `.desktop`, all with the CiCy icon); double-click
|
|
52
|
+
it afterwards.
|
|
53
|
+
|
|
54
|
+
**CN needs the electron mirror.** A fresh machine has no cached electron
|
|
55
|
+
binary, so electron's postinstall would hit GitHub releases and fail. Point
|
|
56
|
+
`ELECTRON_MIRROR` + the npm registry at npmmirror.
|
|
57
|
+
|
|
58
|
+
### Windows — global install (NOT npx)
|
|
59
|
+
|
|
60
|
+
npx's libnpmexec lock false-positives as `ECOMPROMISED` / "Lock compromised" on
|
|
61
|
+
Windows boxes with realtime antivirus (Defender touches `node_modules` mtimes
|
|
62
|
+
mid-install → the lock heartbeat aborts). `npm i -g` has no such lock, so
|
|
63
|
+
Windows installs globally and launches the global bin:
|
|
64
|
+
|
|
65
|
+
```cmd
|
|
66
|
+
cmd /c "set ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/&& npm i -g cicy-desktop --registry=https://registry.npmmirror.com&& cicy-desktop"
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Re-run the same line to update. The generated `.lnk` runs the global
|
|
70
|
+
`cicy-desktop` bin (no npx).
|
|
71
|
+
|
|
72
|
+
### macOS / Linux — npx
|
|
73
|
+
|
|
74
|
+
npx's lock works fine here:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ npm_config_registry=https://registry.npmmirror.com npx -y cicy-desktop
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Outside CN (or once electron is cached) a plain `npx -y cicy-desktop` is enough.
|
|
81
|
+
|
|
82
|
+
## Quick start (development)
|
|
49
83
|
|
|
50
84
|
### 1. Install
|
|
51
85
|
|
package/bin/cicy-desktop
CHANGED
|
@@ -424,6 +424,13 @@ Categories=Development;
|
|
|
424
424
|
function ensureWindowsShortcut() {
|
|
425
425
|
// A .cmd is icon-less; a proper .lnk with the CiCy icon is written via a
|
|
426
426
|
// throwaway PowerShell script (WScript.Shell CreateShortcut + IconLocation).
|
|
427
|
+
//
|
|
428
|
+
// The shortcut runs the GLOBALLY-installed `cicy-desktop` bin, NOT
|
|
429
|
+
// `npx cicy-desktop`. npx's libnpmexec lock false-positives as
|
|
430
|
+
// "ECOMPROMISED / Lock compromised" on Windows boxes with realtime
|
|
431
|
+
// antivirus (Defender touches node_modules mtimes mid-install → the lock
|
|
432
|
+
// heartbeat aborts). `npm i -g` has no such lock, so Windows installs +
|
|
433
|
+
// launches via the global bin (see README "Run via npx" / install one-liner).
|
|
427
434
|
const ico = path.join(PACKAGE_ROOT, "build", "icon.ico");
|
|
428
435
|
const lnk = path.join(DESKTOP_DIR, "CiCy Desktop.lnk");
|
|
429
436
|
const nodeDir = nodeBinDir();
|
|
@@ -432,7 +439,7 @@ function ensureWindowsShortcut() {
|
|
|
432
439
|
`$ws = New-Object -ComObject WScript.Shell
|
|
433
440
|
$s = $ws.CreateShortcut('${lnk.replace(/'/g, "''")}')
|
|
434
441
|
$s.TargetPath = 'cmd.exe'
|
|
435
|
-
$s.Arguments = '/c set PATH=${nodeDir};%PATH%&&
|
|
442
|
+
$s.Arguments = '/c set PATH=${nodeDir};%APPDATA%\\npm;%PATH%&& cicy-desktop'
|
|
436
443
|
$s.IconLocation = '${ico.replace(/'/g, "''")}'
|
|
437
444
|
$s.Save()
|
|
438
445
|
`);
|