Commit Graph

6 Commits

Author SHA1 Message Date
peji 099cc252fe Fix proxy path resolution for portable builds, simplify landing page
The proxy launch used __dirname to find aware-cam-proxy.exe, which
points to a temp extraction directory in portable builds. Added
getAppDirectory() helper that resolves the actual .exe location via
PORTABLE_EXECUTABLE_FILE. Rewrote landing page as a simple kit download
page. Added build-kit script to bundle app + proxy + extension into zip.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 19:23:48 -05:00
peji 7309d78344 Add self-update feature via GitHub Releases
Checks for updates on startup (silent, badge on button if available)
and on manual click. Downloads new portable .exe to temp dir, creates
a batch script to swap the running executable after quit, then relaunches.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 22:23:48 -05:00
peji c9b466b0d1 Fix proxy stop not killing aware-cam-proxy.exe processes
The stop handler was targeting the wrong executable name
(aware-cam-proxy-win.exe instead of aware-cam-proxy.exe), so taskkill
never found the running process. Also removed dangerous fallbacks that
killed all cmd.exe processes system-wide and deprecated wmic calls.
Simplified to a single targeted taskkill. Launch now uses a unique
window title and cmd /c so terminals close naturally after the proxy
exits.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 21:50:38 -05:00
peji 0f12915b47 Remove dead code from profile and password proxy systems
Strip ~966 lines of unused code after transitioning to cookie-only
auth: profile CRUD handlers, encryption helpers, username/password
proxy launcher, proxy check/version handlers, dead preload methods,
orphaned CSS (modals, profiles, nav tabs, collapsible sections),
unused DOM elements and renderer functions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 21:27:11 -05:00
peji 67437a0c46 Add Chrome extension cookie bridge for session import
Users logged into Alta in Chrome can now send their session cookie
to the running Electron app via a local HTTP server on port 18247,
eliminating the need for re-authentication.

- main.js: HTTP cookie server with CORS, token, domain validation
- preload.js: onExtensionCookie push-pattern IPC bridge
- renderer.js: handleExtensionCookie sets session, fetches devices
- chrome-extension/: Manifest V3 extension with popup UI
- CLAUDE.md: updated architecture docs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 20:58:54 -05:00
peji e813607f63 Initial commit — Alta Proxy Tool (APT)
Electron desktop app for Avigilon Alta Video camera proxy management.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 20:28:32 -05:00