Skip to content

Commit 14efe4f

Browse files
joohwcursoragent
andcommitted
release(desktop): v0.1.2 with correct Windows install branding
Rename the npm package to clovapi-switcher, set NSIS shortcut/uninstall names to ClovAPI Switcher, and use the product name for the install directory instead of clovapi-desktop-minimal. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 0a9ebc4 commit 14efe4f

4 files changed

Lines changed: 16 additions & 9 deletions

File tree

electron/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ClovAPI Desktop Client (Minimal)
1+
# ClovAPI Switcher Desktop
22

33
Electron UI for the **clovapi** core CLI. Profile data is stored in the same file as the CLI (`profiles.json`), not in browser `localStorage`.
44

@@ -39,7 +39,7 @@ npm install
3939
npm run dev
4040
```
4141

42-
Development runs Vite on port 5173 and Electron with `ELECTRON_DEV=1`.
42+
Development runs Vite on port 31873 and Electron with `ELECTRON_DEV=1`.
4343

4444
Production-style (built UI):
4545

electron/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const { sanitizeForIpc } = require("./ipc-utils");
1616

1717
// Overlay scrollbars float above content instead of reserving layout width (Windows/Linux).
1818
app.commandLine.appendSwitch("enable-features", "OverlayScrollbar,FluentOverlayScrollbar");
19+
app.setName("ClovAPI Switcher");
1920

2021
fs.mkdirSync(electronUserDataDir(), { recursive: true });
2122
app.setPath("userData", electronUserDataDir());
@@ -360,7 +361,7 @@ function createWindow() {
360361
void updateTrayMenu();
361362
});
362363

363-
const devUrl = process.env.ELECTRON_DEV === "1" ? process.env.VITE_DEV_SERVER_URL || "http://localhost:5173" : "";
364+
const devUrl = process.env.ELECTRON_DEV === "1" ? process.env.VITE_DEV_SERVER_URL || "http://localhost:31873" : "";
364365
if (devUrl) {
365366
void mainWindow.loadURL(devUrl);
366367
} else {

electron/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

electron/package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"name": "clovapi-desktop-minimal",
2+
"name": "clovapi-switcher",
33
"private": true,
4-
"version": "0.1.1",
5-
"description": "Minimal desktop CLI runner for ClovAPI",
4+
"version": "0.1.2",
5+
"description": "ClovAPI Switcher desktop app",
66
"main": "main.js",
77
"type": "commonjs",
88
"scripts": {
99
"dev:ui": "vite --config ui/vite.config.mjs",
1010
"prepare:cli:dev": "node scripts/prepare-dev-cli.mjs",
11-
"dev": "concurrently -k \"npm run dev:ui\" \"wait-on tcp:5173 && cross-env ELECTRON_DEV=1 electron .\"",
11+
"dev": "concurrently -k \"npm run dev:ui\" \"wait-on tcp:31873 && cross-env ELECTRON_DEV=1 electron .\"",
1212
"build:ui": "vite build --config ui/vite.config.mjs",
1313
"build:icons": "node scripts/build-icons.mjs",
1414
"build:mac": "npm run build:ui && npm run build:icons && electron-builder --mac dmg",
@@ -80,13 +80,19 @@
8080
},
8181
"win": {
8282
"icon": "assets/icon.ico",
83+
"executableName": "ClovAPI Switcher",
8384
"target": [
8485
{
8586
"target": "nsis",
8687
"arch": ["x64"]
8788
}
8889
],
8990
"artifactName": "clovapi-desktop-windows-${arch}.${ext}"
91+
},
92+
"nsis": {
93+
"oneClick": false,
94+
"shortcutName": "ClovAPI Switcher",
95+
"uninstallDisplayName": "ClovAPI Switcher"
9096
}
9197
}
9298
}

0 commit comments

Comments
 (0)