Skip to content

Commit cb40ea8

Browse files
committed
chore: make version configurable in script.js
1 parent 8f95df3 commit cb40ea8

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

script.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,35 @@
33
* Detects user's OS and provides appropriate download links
44
*/
55

6-
const SEEVA_VERSION = 'v0.2.0';
6+
const VERSION = '0.2.2'; // Update this for each release
7+
const SEEVA_VERSION = `v${VERSION}`;
78
const RELEASE_BASE = `https://github.com/thisisharsh7/seeva-ai-assistant/releases/download/${SEEVA_VERSION}`;
89

910
const DOWNLOADS = {
1011
mac: {
1112
primary: {
12-
url: `${RELEASE_BASE}/Seeva.AI.Assistant_0.2.0_aarch64.dmg`,
13+
url: `${RELEASE_BASE}/Seeva.AI.Assistant_${VERSION}_aarch64.dmg`,
1314
text: 'Download for macOS',
1415
note: 'Apple Silicon',
15-
altUrl: `${RELEASE_BASE}/Seeva.AI.Assistant_0.2.0_x64.dmg`,
16+
altUrl: `${RELEASE_BASE}/Seeva.AI.Assistant_${VERSION}_x64.dmg`,
1617
altText: 'Intel Mac'
1718
}
1819
},
1920
windows: {
2021
primary: {
21-
url: `${RELEASE_BASE}/Seeva.AI.Assistant_0.2.0_x64-setup.exe`,
22+
url: `${RELEASE_BASE}/Seeva.AI.Assistant_${VERSION}_x64-setup.exe`,
2223
text: 'Download for Windows',
2324
note: 'Windows 10+',
24-
altUrl: `${RELEASE_BASE}/Seeva.AI.Assistant_0.2.0_x64_en-US.msi`,
25+
altUrl: `${RELEASE_BASE}/Seeva.AI.Assistant_${VERSION}_x64_en-US.msi`,
2526
altText: 'MSI Installer'
2627
}
2728
},
2829
linux: {
2930
primary: {
30-
url: `${RELEASE_BASE}/Seeva.AI.Assistant_0.2.0_amd64.deb`,
31+
url: `${RELEASE_BASE}/Seeva.AI.Assistant_${VERSION}_amd64.deb`,
3132
text: 'Download for Linux',
3233
note: 'Debian/Ubuntu',
33-
altUrl: `${RELEASE_BASE}/Seeva.AI.Assistant-0.2.0-1.x86_64.rpm`,
34+
altUrl: `${RELEASE_BASE}/Seeva.AI.Assistant-${VERSION}-1.x86_64.rpm`,
3435
altText: 'RPM Package'
3536
}
3637
}

0 commit comments

Comments
 (0)