Prepare FileBow 1.0.1 packages and dependency source distribution

This commit is contained in:
nordik committed 2026-10-27 03:01:45 +01:00
1 parent 0e84a1c452
commit 569f0324d6
22 files changed
+282647 -68

No files matched your search

+5 -2
View File
@@ -2,6 +2,7 @@
param(
[ValidateSet('Development','Store')][string]$Channel = 'Development',
[string]$IdentityFile,
[string]$AppDirectory,
[switch]$SignDevelopment,
[string]$SdkBin
)
@@ -24,8 +25,10 @@ if (-not $SdkBin) {
$SdkBin = $candidates | Where-Object { Test-Path (Join-Path $_ 'makeappx.exe') } | Select-Object -First 1
}
if (-not $SdkBin) { throw 'Windows SDK BuildTools fehlt. Zuerst dotnet restore native/FileBow.Windows.csproj ausführen.' }
$appPath = Join-Path $projectRoot 'out\FileBow-win32-x64'
$appPath = if (-not $AppDirectory) { Join-Path $projectRoot 'out\FileBow-win32-x64' } elseif ([IO.Path]::IsPathRooted($AppDirectory)) { [IO.Path]::GetFullPath($AppDirectory) } else { [IO.Path]::GetFullPath((Join-Path $projectRoot $AppDirectory)) }
if (-not (Test-Path "$appPath\FileBow.exe")) { throw 'Zuerst pnpm build ausführen.' }
$appMetadata = Get-Content -LiteralPath (Join-Path $appPath 'resources\app\package.json') -Raw | ConvertFrom-Json
if ("$($appMetadata.version).0" -ne $identity.Version) { throw 'App version and MSIX identity version do not match. Rebuild the app before packaging.' }
$stage = [IO.Path]::GetFullPath((Join-Path $projectRoot "build\msix-$Channel-$([Guid]::NewGuid().ToString('N').Substring(0,8))"))
$expectedParent = [IO.Path]::GetFullPath((Join-Path $projectRoot 'build'))
if ([IO.Path]::GetDirectoryName($stage) -ne $expectedParent) { throw 'Unerwarteter Staging-Pfad.' }
@@ -83,6 +86,6 @@ if ($SignDevelopment) {
$certificatePath = Join-Path $outputDir 'FileBow-Development.cer'
Export-Certificate -Cert $certificate -FilePath $certificatePath -Force | Out-Null
}
$record = @{ Channel=$Channel; Package=$package; Stage=$stage; Identity=$identity; Signed=[bool]$SignDevelopment; Certificate=$certificatePath; SHA256=(Get-FileBowSha256 $package); BuiltAt=(Get-Date).ToUniversalTime().ToString('o') }
$record = @{ Channel=$Channel; Package=$package; AppDirectory=$appPath; Stage=$stage; Identity=$identity; Signed=[bool]$SignDevelopment; Certificate=$certificatePath; SHA256=(Get-FileBowSha256 $package); BuiltAt=(Get-Date).ToUniversalTime().ToString('o') }
$record | ConvertTo-Json -Depth 5 | Set-Content (Join-Path $outputDir "build-$Channel.json") -Encoding utf8
Write-Output $package