Update application UI and functionality
This commit is contained in:
@@ -1206,12 +1206,16 @@ function Build-InnoInstaller([object] $VersionInfo, [string] $SignTool, [switch]
|
||||
|
||||
$iss = Join-Path $Root 'installer\ymhut_box_winui.iss'
|
||||
$chineseMessagesFile = Resolve-InnoLanguageFile $iscc
|
||||
$bundleVCRedist = if (Test-Path -LiteralPath (Join-Path $PayloadDirectory 'prereqs\vc_redist.x64.exe')) { 1 } else { 0 }
|
||||
$bundleWebView2 = if (Test-Path -LiteralPath (Join-Path $PayloadDirectory 'prereqs\MicrosoftEdgeWebView2RuntimeInstallerX64.exe')) { 1 } else { 0 }
|
||||
Invoke-Tool $iscc @(
|
||||
"/DMyAppVersion=$($VersionInfo.PackageVersion)",
|
||||
"/DMyAppBuild=$($VersionInfo.Build)",
|
||||
"/DMyAppChannel=$($VersionInfo.Channel)",
|
||||
"/DChineseMessagesFile=$chineseMessagesFile",
|
||||
"/DPayloadDir=$PayloadDirectory",
|
||||
"/DBundleVCRedist=$bundleVCRedist",
|
||||
"/DBundleWebView2=$bundleWebView2",
|
||||
$iss
|
||||
) 'Inno Setup build failed'
|
||||
|
||||
@@ -1225,7 +1229,8 @@ function Build-InnoInstaller([object] $VersionInfo, [string] $SignTool, [switch]
|
||||
|
||||
function Build-InstallerBootstrap([object] $VersionInfo, [string] $SignTool) {
|
||||
$bootstrapRoot = Join-Path $Root 'build\winui\installer-bootstrap'
|
||||
$setupPath = Join-Path $OutputRoot "YMhut_Box_WinUI_Setup_$($VersionInfo.PackageVersion).exe"
|
||||
$bootstrapName = "YMhut_Box_WinUI_Setup_$($VersionInfo.PackageVersion)"
|
||||
$setupPath = Join-Path $OutputRoot "$bootstrapName.exe"
|
||||
Reset-DirectoryInsideRepo $bootstrapRoot
|
||||
Invoke-DotNet @(
|
||||
'publish', $InstallerBootstrapProject,
|
||||
@@ -1236,11 +1241,12 @@ function Build-InstallerBootstrap([object] $VersionInfo, [string] $SignTool) {
|
||||
"-p:Version=$($VersionInfo.PackageVersion)",
|
||||
"-p:FileVersion=$($VersionInfo.PackageVersion)",
|
||||
"-p:InformationalVersion=$($VersionInfo.PackageVersion)",
|
||||
"-p:AssemblyName=$bootstrapName",
|
||||
"-p:InstallerEnginePath=$setupPath",
|
||||
'-o', $bootstrapRoot
|
||||
)
|
||||
|
||||
$bootstrap = Join-Path $bootstrapRoot 'YMhutBoxSetup.exe'
|
||||
$bootstrap = Join-Path $bootstrapRoot "$bootstrapName.exe"
|
||||
if (-not (Test-Path -LiteralPath $bootstrap)) {
|
||||
throw "WinUI installer bootstrap was not produced: $bootstrap"
|
||||
}
|
||||
@@ -1251,6 +1257,7 @@ function Build-InstallerBootstrap([object] $VersionInfo, [string] $SignTool) {
|
||||
}
|
||||
|
||||
Invoke-ToolQuiet $setupPath @('/SELFTEST') 'WinUI installer bootstrap self-test failed' " Installer self-test: $setupPath"
|
||||
Invoke-ToolQuiet $setupPath @('/WINDOWSELFTEST') 'WinUI installer window navigation self-test failed' " Installer window self-test: $setupPath"
|
||||
}
|
||||
function Sign-Artifact([string] $SignTool, [string] $Path) {
|
||||
Ensure-LocalDeveloperCertificate
|
||||
|
||||
Reference in New Issue
Block a user