vrcx: i18n (en/ru), config.ini, clickable update check, prettier README
Adds first-run language prompt + persistent config.ini with bilingual inline comments. Update check now returns just the tag; app.py renders it as a clickable [link=...] in the header (matches dhcpsrv/netswitch pattern). Strips all 'made by engelgardt' lines. - new dev/src/vrcx/i18n.py (RU/EN translation table) - new dev/src/vrcx/config.py (config.ini next to the exe) - update_check.py: returns tag, no console writes - app.py: load config, set lang, render clickable header, use config defaults for BMC/SDS user and parallel_hosts; pass cfg.ping_sweep to discover_sds_ip - ui.py: all visible strings via t() - README.md / README.ru.md: rewritten under the vrcx name and brief
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
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\<DDMMYYYY_HHMMSS>\<stamp>.tar.gz
|
||||
ready to send to YADRO support.
|
||||
|
||||
OUTPUT
|
||||
out\<DDMMYYYY_HHMMSS>\
|
||||
<bmc_ip>\bmc\ (BMC logs)
|
||||
<bmc_ip>\os\ (SDS host logs, if enabled)
|
||||
archives\dump_<bmc_ip>.tar.gz
|
||||
<DDMMYYYY_HHMMSS>.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
|
||||
Reference in New Issue
Block a user