File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff line change @@ -4,3 +4,16 @@ import { twMerge } from 'tailwind-merge'
44export 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+ }
You can’t perform that action at this time.
0 commit comments