Skip to content

Commit 4420cc9

Browse files
committed
Add Windows portable exe and configure download page
- Build portable Windows exe (99 MB) - Update download page to link to GitHub raw file - Configure .gitignore to include portable exe in release folder - Update .vercelignore to exclude exe files from Vercel deployment - Fix electron-builder configuration for proper build
1 parent a5da037 commit 4420cc9

5 files changed

Lines changed: 9 additions & 5 deletions

File tree

frontend/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
# production
1212
/build
1313
/dist
14-
/release
14+
/release/*
15+
!/release/*.exe
1516

1617
# environment variables
1718
.env.local

frontend/.vercelignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Electron build artifacts
22
/release
33
/dist
4+
*.exe
45

56
# Dependencies (Vercel installs these)
67
/node_modules

frontend/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,15 @@
5353
"package:linux": "npm run build && electron-builder --linux"
5454
},
5555
"build": {
56+
"extends": null,
5657
"appId": "com.securescript.app",
5758
"productName": "SecureScript",
5859
"files": [
5960
"build/**/*",
6061
"build-resources/**/*",
6162
"main.js",
62-
"preload.js"
63+
"preload.js",
64+
"package.json"
6365
],
6466
"directories": {
6567
"buildResources": "build-resources",
99 MB
Binary file not shown.

frontend/src/pages/DownloadPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ const DownloadPage: React.FC = () => {
1010
return userAgent.indexOf(' electron/') > -1;
1111
};
1212

13-
// Replace this with your actual download link
14-
const downloadLink = "https://yourdomain.com/downloads/SecureScript-Setup.exe";
13+
// GitHub release download link - update after pushing to GitHub
14+
const downloadLink = "https://github.com/pankaj-bind/SecureScript/raw/main/frontend/release/SecureScript-1.0.0-Portable.exe";
1515

1616
// If running in Electron, show message that download is not needed
1717
if (isElectron()) {
@@ -178,7 +178,7 @@ const DownloadPage: React.FC = () => {
178178
</a>
179179

180180
<p className="mt-4 text-xs text-win-text-tertiary">
181-
Latest versionInstaller size: ~150 MB
181+
Version 1.0.0Portable exe: ~99 MB
182182
</p>
183183
</div>
184184
</div>

0 commit comments

Comments
 (0)