3 Commits

Author SHA1 Message Date
Naiel
3e8542c9de Fix import error handling for telesec_couchdb 2026-03-03 10:27:04 +01:00
Naiel
90df81d308 Update asset path for GitHub Release upload 2026-03-03 10:24:12 +01:00
Naiel
53941da35c Update Windows agent release workflow for PyInstaller 2026-03-03 10:21:47 +01:00
2 changed files with 5 additions and 5 deletions

View File

@@ -31,16 +31,16 @@ jobs:
- name: Build hidden EXE with PyInstaller
shell: bash
run: |
pyinstaller --noconfirm --clean --onefile --noconsole --name telesec-windows-agent python_sdk/windows_agent.py
cd python_sdk ; pyinstaller --noconfirm --clean --onefile --noconsole --hidden-import=telesec_couchdb --name telesec-windows-agent windows_agent.py
- name: Upload workflow artifact
uses: actions/upload-artifact@v4
with:
name: telesec-windows-agent
path: dist/telesec-windows-agent.exe
path: python_sdk/dist/telesec-windows-agent.exe
- name: Upload asset to GitHub Release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v2
with:
files: dist/telesec-windows-agent.exe
files: python_sdk/dist/telesec-windows-agent.exe

View File

@@ -12,9 +12,9 @@ from typing import Any, Dict, Optional
import psutil
try:
from .telesec_couchdb import TeleSecCouchDB, TeleSecCouchDBError, ts_decrypt
except ImportError:
from telesec_couchdb import TeleSecCouchDB, TeleSecCouchDBError, ts_decrypt
except ImportError:
from .telesec_couchdb import TeleSecCouchDB, TeleSecCouchDBError, ts_decrypt
def utcnow_iso() -> str: