name: Release on: push: tags: - 'v*.*.*' permissions: contents: write jobs: build: runs-on: windows-latest steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.12' - name: Install build dependencies run: python -m pip install --upgrade pip pyinstaller rich paramiko - name: Resolve version from tag id: ver shell: bash run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT" - name: Build executable run: python -m PyInstaller --onefile --console --name vrcx --icon dev/assets/icon.ico --paths dev/src dev/vrcx-launcher.py - name: Package portable folder shell: pwsh run: | $ver = '${{ steps.ver.outputs.version }}' $folder = "vrcx-v$ver" New-Item -ItemType Directory -Path $folder | Out-Null Copy-Item dist/vrcx.exe $folder/ @" vrcx v$ver - portable edition Vegman Remote Collect (extended) — diagnostic log collector for YADRO Vegman servers. Pulls logs from the BMC and, optionally, the SDS service OS in parallel. USAGE Double-click vrcx.exe. Paste one or more BMC IPs (space/comma/newline separated; empty line to end). Enter BMC username (default admin) and password. Answer "Collect OS logs too? [y/N]" — if yes, enter SDS user/pass. Watch the live progress table. When done you get a single out\\.tar.gz ready to send to YADRO support. OUTPUT out\\ \bmc\ (BMC logs) \os\ (SDS host logs, if enabled) archives\dump_.tar.gz .tar.gz (one-click bundle for support) NOTES - Nothing is installed. Delete the folder to remove. - BMC-only mode is 1:1 compatible with the original VRC tool. "@ | Out-File -FilePath "$folder/README.txt" -Encoding UTF8 Compress-Archive -Path $folder -DestinationPath "vrcx-portable-v$ver.zip" - name: Generate SHA-256 checksum shell: pwsh run: | $ver = '${{ steps.ver.outputs.version }}' $zip = "vrcx-portable-v$ver.zip" $hash = (Get-FileHash -Algorithm SHA256 $zip).Hash.ToLower() "$hash $zip" | Out-File -FilePath "$zip.sha256" -Encoding ASCII -NoNewline Get-Content "$zip.sha256" - name: Create release uses: softprops/action-gh-release@v2 with: files: | vrcx-portable-v${{ steps.ver.outputs.version }}.zip vrcx-portable-v${{ steps.ver.outputs.version }}.zip.sha256 generate_release_notes: true