Publish Android 1.3.9 and repair Windows autostart

This commit is contained in:
Курнат Андрей
2026-06-10 05:39:50 +03:00
parent 8337bcb742
commit d64957dfcd
4 changed files with 84 additions and 14 deletions
+69
View File
@@ -0,0 +1,69 @@
param(
[string]$RuntimeRoot = "$env:USERPROFILE\craft\CraftMaster\windows-cl-msvc2022-x86_64",
[string]$AppName = "QSfera",
[switch]$Launch
)
$ErrorActionPreference = "Stop"
function Fail([string]$Message) {
Write-Error $Message
exit 1
}
$runtimeBin = Join-Path $RuntimeRoot "bin"
$runtimeExe = Join-Path $runtimeBin "qsfera.exe"
if (-not (Test-Path -LiteralPath $runtimeExe)) {
Fail "QSfera executable was not found: $runtimeExe"
}
$requiredDlls = @(
"Qt6Core.dll",
"Qt6Gui.dll",
"Qt6Widgets.dll",
"Qt6Network.dll",
"Qt6Qml.dll",
"Qt6Quick.dll",
"qt6keychain.dll",
"kdsingleapplication-qt6.dll"
)
foreach ($dll in $requiredDlls) {
$dllPath = Join-Path $runtimeBin $dll
if (-not (Test-Path -LiteralPath $dllPath)) {
Fail "Required runtime DLL is missing: $dllPath"
}
}
$runKey = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run"
New-ItemProperty -Path $runKey -Name $AppName -PropertyType String -Value $runtimeExe -Force | Out-Null
$actualValue = (Get-ItemProperty -Path $runKey).$AppName
if ($actualValue -ne $runtimeExe) {
Fail "Autostart registry value was not updated. Expected '$runtimeExe', got '$actualValue'."
}
Write-Output "OK: $AppName autostart points to $runtimeExe"
Write-Output "OK: required Qt6 runtime DLLs are present in $runtimeBin"
if ($Launch) {
Get-Process -Name "qsfera" -ErrorAction SilentlyContinue |
Where-Object { $_.Path -ne $runtimeExe } |
Stop-Process -Force -ErrorAction SilentlyContinue
if (-not (Get-Process -Name "qsfera" -ErrorAction SilentlyContinue | Where-Object { $_.Path -eq $runtimeExe })) {
Start-Process -FilePath $runtimeExe -WorkingDirectory $runtimeBin -WindowStyle Hidden
Start-Sleep -Seconds 5
}
$process = Get-Process -Name "qsfera" -ErrorAction SilentlyContinue |
Where-Object { $_.Path -eq $runtimeExe } |
Select-Object -First 1
if (-not $process) {
Fail "QSfera did not start from $runtimeExe"
}
Write-Output "OK: QSfera is running from $($process.Path) with PID $($process.Id)"
}
+3 -3
View File
@@ -6,12 +6,12 @@ param(
[string]$AndroidManifestUrl = "https://argus.kusoft.xyz/api/apps/qsfera-mobile/manifest?platform=android&channel=stable",
[string]$ExpectedAndroidSlug = "qsfera-mobile",
[string]$ExpectedAndroidPackageName = "eu.qsfera.android",
[string]$ExpectedAndroidVersion = "1.3.8",
[int]$ExpectedAndroidVersionCode = 36,
[string]$ExpectedAndroidVersion = "1.3.9",
[int]$ExpectedAndroidVersionCode = 37,
[string]$ExpectedAndroidChannel = "stable",
[string]$ExpectedAndroidPlatform = "android",
[string]$ExpectedAndroidPackageKind = "apk",
[string]$ExpectedAndroidSha256 = "872959380cfbfd858c11f388d430f8ce82ae8a9289a1e40bc8fa5b8d7c3897d8",
[string]$ExpectedAndroidSha256 = "cbd2c25328e395ea4da4e0f582feac39dec18d2d47b3e105d344904d8a24f017",
[string]$AndroidDownloadUrl = "https://argus.kusoft.xyz/api/apps/qsfera-mobile/download/latest?platform=android&channel=stable",
[switch]$VerifyAndroidDownload,