diff --git a/.gitignore b/.gitignore index d48306f..cdae5b5 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,11 @@ __pycache__/ build/ dist/ *.spec +*.exe +*.bin +*.dll +*.so +*.dylib # Database files & state *.db diff --git a/README.md b/README.md index 5197227..848bd1b 100644 --- a/README.md +++ b/README.md @@ -180,7 +180,6 @@ LOGAR/ ├── test_pipeline.py # End-to-end integration test └── out/ # Standalone shippable distributions ├── server/ - │ ├── Server.exe # Standalone Windows executable │ ├── Server.py # Python source │ ├── server_config.sample.json │ ├── requirements.txt @@ -188,7 +187,6 @@ LOGAR/ │ └── test/ │ └── test_server.py # Server unit tests ├── win_client/ - │ ├── Win_Client.exe # Standalone Windows executable │ ├── Win_Client.py # Python source │ ├── client_config.sample.json │ ├── requirements.txt @@ -196,8 +194,7 @@ LOGAR/ │ └── test/ │ └── test_win_client.py # Windows client unit tests └── linux_client/ - ├── Linux_Client.bin # Standalone executable binary (zipapp) - ├── build_bin.sh # PyInstaller ELF compiler script + ├── build_bin.sh # PyInstaller native ELF compiler script ├── Linux_Client.py # Python source ├── client_config.sample.json ├── requirements.txt @@ -219,8 +216,6 @@ LOGAR/ 2. **Start the server** (generates `server_config.json` and keypair on first run): ```bash python Server.py - # Or run the standalone executable: - ./out/server/Server.exe ``` 3. **Export a client configuration**: ```bash @@ -229,22 +224,19 @@ LOGAR/ ### 2. Windows Client Deployment -1. Copy `Win_Client.exe` (or `Win_Client.py`) and `client_config.json` to the target machine. +1. Copy `Win_Client.py` (and `requirements.txt`) plus `client_config.json` to the target machine. 2. Run manually or schedule via Task Scheduler (every 3 hours): ```powershell - Win_Client.exe --hours 6 + python Win_Client.py --hours 6 ``` ### 3. Linux Client Deployment -1. Copy `Linux_Client.bin` (or `Linux_Client.py`) and `client_config.json` to `/opt/logar/`. -2. Ensure executable permissions: - ```bash - chmod +x /opt/logar/Linux_Client.bin - ``` +1. Copy `Linux_Client.py` (and `requirements.txt`) plus `client_config.json` to `/opt/logar/`. +2. (Optional) Run `build_bin.sh` to compile a standalone ELF binary if desired. 3. Run via cron or systemd timer: ```bash - 0 */3 * * * /opt/logar/Linux_Client.bin --hours 6 + 0 */3 * * * python3 /opt/logar/Linux_Client.py --hours 6 ``` --- diff --git a/out/linux_client/Linux_Client.bin b/out/linux_client/Linux_Client.bin deleted file mode 100644 index 279f601..0000000 Binary files a/out/linux_client/Linux_Client.bin and /dev/null differ diff --git a/out/server/Server.exe b/out/server/Server.exe deleted file mode 100644 index 96f3586..0000000 Binary files a/out/server/Server.exe and /dev/null differ diff --git a/out/win_client/Win_Client.exe b/out/win_client/Win_Client.exe deleted file mode 100644 index 2c1f974..0000000 Binary files a/out/win_client/Win_Client.exe and /dev/null differ