Remove .gitignore and add dist and node_modules (LFS for .exe)

Made-with: Cursor
This commit is contained in:
Michael-A-Sloan committed 2026-03-11 17:40:35 -04:00
1 parent 1fc4db96c8
commit 048ab8b980
5819 files changed
+1357436 -2

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
# PTW Auto-Disconnect (Standalone GUI)
Runs your PTW monitor in a small desktop window **without opening Chrome**. It stays connected to `http://localhost:1947/_int_/sessions.html`, scans for the same keywords, and clicks Disconnect on matching rows. Logs and Monitor ON/OFF state are kept in the GUI.
## Requirements
- Node.js (LTS recommended)
- The sessions page must be available at `http://localhost:1947/_int_/sessions.html` (start your server first)
## Run
```bash
npm install
npm start
```
## Build an executable (optional)
```bash
npm run dist
```
- **`dist\PTW Auto-Disconnect Setup 2.1.0.exe`** — Installer (Start Menu, etc.).
- **`dist\win-unpacked\`** — No-install: run **PTW Auto-Disconnect.exe** from this folder (all DLLs stay next to the exe; avoids ffmpeg.dll errors).
To build and also create a single zip for the no-install version:
```bash
npm run dist:portable
```
Then use **`dist\PTW Auto-Disconnect-no-install.zip`**: unzip anywhere and run **PTW Auto-Disconnect.exe** from the extracted folder.
## Behavior
- **Monitor ON/OFF** — Same as your script; when ON, the page is monitored and reloaded every 60 seconds.
- **Clear** — Clears the log display (state is still persisted until you clear).
- The page is loaded in a hidden webview inside the app; only the compact log + buttons window is visible.