mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-09-10 01:27:11 +00:00
b14a8cf162
Add a full automated build pipeline, interactive build scripts, documentation and development utilities. - Add GitHub Actions workflow (.github/workflows/build.yml) to build BetterDesk (hbbs/hbbr) for Linux x64, Linux ARM64 and Windows x64, upload artifacts, optionally create a release and update repository binaries. - Add interactive build scripts for Windows and Unix (build-betterdesk.ps1, build-betterdesk.sh) supporting download, patch application, cross-build and checksum generation. - Add build and status docs (docs/BUILD_GUIDE.md, docs/STATUS_TRACKING_v3.md) and update project README/instructions (.github/copilot-instructions.md) with new items and updated timestamp. - Add development utilities under dev_modules/ (multiple database/patch/test helpers) and move test_generator.py into dev_modules/test_generator.py. - Update .gitignore to exclude archive/ folder. - Modify hbbs-patch-v2 sources (database.rs, http_api.rs, main.rs, peer.rs and add rendezvous_server.rs) and remove legacy fixed files; update web UI backend and static files (web/app.py, web/static/*, web/templates/index.html). These changes set up CI/CD for multi-platform builds, provide local build tooling, expand docs for v3 status tracking and ID-change features, and add developer test/patch utilities.
41 lines
1.3 KiB
Python
41 lines
1.3 KiB
Python
#!/usr/bin/env python3
|
|
"""
|
|
Test script for RustDesk Client Generator
|
|
Tests if the generator can properly fetch download URLs from GitHub
|
|
"""
|
|
|
|
import sys
|
|
sys.path.insert(0, '/opt/BetterDeskConsole')
|
|
|
|
from client_generator_module import ClientGenerator
|
|
|
|
def test_download_urls():
|
|
generator = ClientGenerator()
|
|
|
|
test_cases = [
|
|
('1.3.0', 'windows-64', 'rustdesk-1.3.0-x86_64.exe'),
|
|
('1.3.0', 'windows-32', 'rustdesk-1.3.0-x86-sciter.exe'),
|
|
('1.3.0', 'linux', 'rustdesk-1.3.0-x86_64.AppImage'),
|
|
('1.3.0', 'android', 'rustdesk-1.3.0-universal-signed.apk'),
|
|
('1.3.0', 'macos', 'rustdesk-1.3.0-x86_64.dmg'),
|
|
]
|
|
|
|
print("Testing download URL fetching...\n")
|
|
|
|
for version, platform, expected_file in test_cases:
|
|
print(f"Testing {platform} version {version}...")
|
|
url = generator.get_download_url(version, platform)
|
|
|
|
if url:
|
|
print(f" ✓ Found URL: {url}")
|
|
if expected_file in url:
|
|
print(f" ✓ Filename matches: {expected_file}")
|
|
else:
|
|
print(f" ⚠ Filename mismatch! Expected: {expected_file}")
|
|
else:
|
|
print(f" ✗ Failed to get URL")
|
|
print()
|
|
|
|
if __name__ == '__main__':
|
|
test_download_urls()
|