Skip to content

Commit 169bb6a

Browse files
release: v0.7.18
1 parent e3ab914 commit 169bb6a

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "netcopilot",
3-
"version": "0.7.17",
3+
"version": "0.7.18",
44
"description": "NetCopilot – AI-powered SSH/Telnet terminal for network engineers",
55
"main": "./out/main/index.js",
66
"author": {

src/renderer/src/lib/utils.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,16 @@ import { twMerge } from 'tailwind-merge'
44
export function cn(...inputs: ClassValue[]): string {
55
return twMerge(clsx(inputs))
66
}
7+
8+
const RELEASE_BASE = 'https://github.com/AnasProgrammer2/netcopilot/releases/download'
9+
10+
export function getInstallerUrl(version: string): string {
11+
const { platform, arch } = window.api.appInfo
12+
const tag = `v${version}`
13+
14+
if (platform === 'win32') return `${RELEASE_BASE}/${tag}/NetCopilot-Setup-${version}.exe`
15+
if (platform === 'darwin') return arch === 'arm64'
16+
? `${RELEASE_BASE}/${tag}/NetCopilot-${version}-arm64.dmg`
17+
: `${RELEASE_BASE}/${tag}/NetCopilot-${version}.dmg`
18+
return `${RELEASE_BASE}/${tag}/NetCopilot-${version}.AppImage`
19+
}

0 commit comments

Comments
 (0)