Commit Graph

4 Commits

Author SHA1 Message Date
84e1bb5957 feat(gui): add Windows GUI application with Tauri
Built ostp-gui.exe - graphical VPN client with buttons!

Features:
- Connect/Disconnect button
- Server selection dropdown
- Real-time stats (Upload/Download/Ping)
- Settings panel
- Beautiful interface (Tauri 2.0 + HTML/CSS/JS)
- IPC with ostp-daemon via Named Pipe

UI Components:
- Main window: 450x600 (not resizable)
- Status indicator (Connected/Disconnected)
- Server selection list
- Stats grid display
- Settings button

Files:
- ostp-gui.exe: 5.79 MB (NEW!)
- ostp-client.exe: 1.64 MB (CLI)
- ostp-daemon.exe: 0.53 MB (service)
- ostp-installer.exe: 0.37 MB

Changes:
1. Fixed tauri.conf.json paths (frontendDist: ./ui)
2. Removed protocol-asset feature from Cargo.toml
3. Added icons/icon.ico (user provided)
4. Built successfully with Tauri 2.0
5. Updated SHA256SUMS.txt with GUI checksum
6. Recreated ostp-client-windows-x64.zip (3.64 MB)

Usage:
- Just run ostp-gui.exe - NO command line needed!
- Select server, click Connect - thats it!

Location: dist/windows-x64/ostp-gui.exe
SHA256: 5880cfeeb7fd2dcf1b033b7e2514a56eb45b3220d5c2c783f5a7f2295bd28ca4
2026-01-02 16:33:44 +03:00
52a739a368 fix(windows-client): add proper error handling and pause before exit
Problem: Windows CLI client window closing immediately on error without error messages

Changes:
1. Wrapped main in error handler with pause before exit
2. Replaced .unwrap() with proper .context() error handling
3. Added pause on all error paths
4. Error display with colored output before exit
5. Updated ostp-client.exe checksum

Now on error:
- Error message displayed in red
- Press Enter to exit keeps window open
- User can read full error details

Note: NO GUI - ostp-client.exe is CLI tool
Usage:
- ostp-client.exe connect --server IP:PORT --psk KEY --country US
- ostp-client.exe setup (interactive wizard)

SHA256: 5612ae4503467d6d7b51c067f533706bc65b7b7ac41fccc3efaf3eda2576b92a
2026-01-02 16:00:03 +03:00
f2110392e9 build: rebuild Windows binaries and update checksums
Rebuilt ostp-client, ostp-daemon, ostp-installer for Windows
- ostp-client.exe: 1.64 MB (unchanged)
- ostp-daemon.exe: 0.53 MB (unchanged)
- ostp-installer.exe: 0.37 MB (rebuilt)

Updated SHA256SUMS.txt:
- ostp-installer.exe: 8d0c759d4466e8b189ef161d6e0caac823e690bf5a82ee48308975d163728d7f

Recreated ostp-client-windows-x64.zip (1.29 MB)

Note: Windows client uses GUI (Tauri) - no todo!() crashes like Linux CLI
2026-01-02 03:44:10 +03:00
963feb1582 feat(dist): add distribution packages with docs and checksums
Linux Server Package (ostp-server-linux-x64.tar.gz - 5.94 MB):
- ostp-server (9.2 MB) + oncp-master (4.8 MB)
- Automated deploy.sh script with systemd integration
- README.md with quick start guide
- systemd service units (ostp-server.service, oncp-master.service)
- Config examples (server.json, server-enrollment.json)
- SHA256SUMS for integrity verification

Windows Client Package (ostp-client-windows-x64.zip - 1.29 MB):
- ostp-client.exe (1.64 MB) - CLI client
- ostp-daemon.exe (0.53 MB) - Windows Service
- ostp-installer.exe (0.37 MB) - Setup wizard
- README.md with GUI/CLI usage guide
- SHA256SUMS.txt for integrity verification

Deploy Script Features:
- Automated PSK generation
- Systemd service installation
- Firewall configuration (ufw)
- OTP token generation (60 min)
- Network validation (10.X.0.0/16)
- Security hardening (NoNewPrivileges, ProtectSystem)

Documentation includes:
- Installation instructions
- Configuration examples
- Troubleshooting guides
- Security best practices
- API reference
2026-01-02 02:59:08 +03:00