Remove compiled binaries from git tracking and clean non-essential artifacts
This commit is contained in:
@@ -10,6 +10,11 @@ __pycache__/
|
|||||||
build/
|
build/
|
||||||
dist/
|
dist/
|
||||||
*.spec
|
*.spec
|
||||||
|
*.exe
|
||||||
|
*.bin
|
||||||
|
*.dll
|
||||||
|
*.so
|
||||||
|
*.dylib
|
||||||
|
|
||||||
# Database files & state
|
# Database files & state
|
||||||
*.db
|
*.db
|
||||||
|
|||||||
@@ -180,7 +180,6 @@ LOGAR/
|
|||||||
├── test_pipeline.py # End-to-end integration test
|
├── test_pipeline.py # End-to-end integration test
|
||||||
└── out/ # Standalone shippable distributions
|
└── out/ # Standalone shippable distributions
|
||||||
├── server/
|
├── server/
|
||||||
│ ├── Server.exe # Standalone Windows executable
|
|
||||||
│ ├── Server.py # Python source
|
│ ├── Server.py # Python source
|
||||||
│ ├── server_config.sample.json
|
│ ├── server_config.sample.json
|
||||||
│ ├── requirements.txt
|
│ ├── requirements.txt
|
||||||
@@ -188,7 +187,6 @@ LOGAR/
|
|||||||
│ └── test/
|
│ └── test/
|
||||||
│ └── test_server.py # Server unit tests
|
│ └── test_server.py # Server unit tests
|
||||||
├── win_client/
|
├── win_client/
|
||||||
│ ├── Win_Client.exe # Standalone Windows executable
|
|
||||||
│ ├── Win_Client.py # Python source
|
│ ├── Win_Client.py # Python source
|
||||||
│ ├── client_config.sample.json
|
│ ├── client_config.sample.json
|
||||||
│ ├── requirements.txt
|
│ ├── requirements.txt
|
||||||
@@ -196,8 +194,7 @@ LOGAR/
|
|||||||
│ └── test/
|
│ └── test/
|
||||||
│ └── test_win_client.py # Windows client unit tests
|
│ └── test_win_client.py # Windows client unit tests
|
||||||
└── linux_client/
|
└── linux_client/
|
||||||
├── Linux_Client.bin # Standalone executable binary (zipapp)
|
├── build_bin.sh # PyInstaller native ELF compiler script
|
||||||
├── build_bin.sh # PyInstaller ELF compiler script
|
|
||||||
├── Linux_Client.py # Python source
|
├── Linux_Client.py # Python source
|
||||||
├── client_config.sample.json
|
├── client_config.sample.json
|
||||||
├── requirements.txt
|
├── requirements.txt
|
||||||
@@ -219,8 +216,6 @@ LOGAR/
|
|||||||
2. **Start the server** (generates `server_config.json` and keypair on first run):
|
2. **Start the server** (generates `server_config.json` and keypair on first run):
|
||||||
```bash
|
```bash
|
||||||
python Server.py
|
python Server.py
|
||||||
# Or run the standalone executable:
|
|
||||||
./out/server/Server.exe
|
|
||||||
```
|
```
|
||||||
3. **Export a client configuration**:
|
3. **Export a client configuration**:
|
||||||
```bash
|
```bash
|
||||||
@@ -229,22 +224,19 @@ LOGAR/
|
|||||||
|
|
||||||
### 2. Windows Client Deployment
|
### 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):
|
2. Run manually or schedule via Task Scheduler (every 3 hours):
|
||||||
```powershell
|
```powershell
|
||||||
Win_Client.exe --hours 6
|
python Win_Client.py --hours 6
|
||||||
```
|
```
|
||||||
|
|
||||||
### 3. Linux Client Deployment
|
### 3. Linux Client Deployment
|
||||||
|
|
||||||
1. Copy `Linux_Client.bin` (or `Linux_Client.py`) and `client_config.json` to `/opt/logar/`.
|
1. Copy `Linux_Client.py` (and `requirements.txt`) plus `client_config.json` to `/opt/logar/`.
|
||||||
2. Ensure executable permissions:
|
2. (Optional) Run `build_bin.sh` to compile a standalone ELF binary if desired.
|
||||||
```bash
|
|
||||||
chmod +x /opt/logar/Linux_Client.bin
|
|
||||||
```
|
|
||||||
3. Run via cron or systemd timer:
|
3. Run via cron or systemd timer:
|
||||||
```bash
|
```bash
|
||||||
0 */3 * * * /opt/logar/Linux_Client.bin --hours 6
|
0 */3 * * * python3 /opt/logar/Linux_Client.py --hours 6
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user