mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
Fix windows arm64 packages build
This commit is contained in:
@ -16,12 +16,10 @@ $ErrorActionPreference = "Stop"
|
|||||||
Set-Location $PSScriptRoot
|
Set-Location $PSScriptRoot
|
||||||
|
|
||||||
if (-not $SourceDir) {
|
if (-not $SourceDir) {
|
||||||
$BuildPrefix = switch ("$Arch$Target") {
|
$BuildPrefix = switch ($Arch) {
|
||||||
"x64" { "win_64" }
|
"x64" { "win_64" + $(if ($Target -eq "xp") { "_xp" }) }
|
||||||
"x86" { "win_32" }
|
"x86" { "win_32" + $(if ($Target -eq "xp") { "_xp" }) }
|
||||||
"arm64" { "win_arm64" }
|
"arm64" { "win_arm64" }
|
||||||
"x64xp" { "win_64_xp" }
|
|
||||||
"x86xp" { "win_32_xp" }
|
|
||||||
}
|
}
|
||||||
$SourceDir = "$PSScriptRoot\..\..\..\..\build_tools\out\" `
|
$SourceDir = "$PSScriptRoot\..\..\..\..\build_tools\out\" `
|
||||||
+ "$BuildPrefix\$CompanyName\$ProductName" | Resolve-Path
|
+ "$BuildPrefix\$CompanyName\$ProductName" | Resolve-Path
|
||||||
@ -102,14 +100,16 @@ if ($Sign) {
|
|||||||
if ($LastExitCode -ne 0) { throw }
|
if ($LastExitCode -ne 0) { throw }
|
||||||
|
|
||||||
# VLC plugin cache
|
# VLC plugin cache
|
||||||
Write-Host ".\vlc-cache-gen $PWD\plugins"
|
if ($Arch -ne "arm64") {
|
||||||
& .\vlc-cache-gen "$PWD\plugins"
|
Write-Host ".\vlc-cache-gen $PWD\plugins"
|
||||||
if ($LastExitCode -ne 0) { throw }
|
& .\vlc-cache-gen "$PWD\plugins"
|
||||||
|
if ($LastExitCode -ne 0) { throw }
|
||||||
|
}
|
||||||
|
|
||||||
Set-Location $PSScriptRoot
|
Set-Location $PSScriptRoot
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Test-Path "$BuildDir\desktop\vlc-cache-gen.exe") {
|
if ($Arch -ne "arm64" -and Test-Path "$BuildDir\desktop\vlc-cache-gen.exe") {
|
||||||
Write-Host "DELETE: $BuildDir\desktop\vlc-cache-gen.exe"
|
Write-Host "DELETE: $BuildDir\desktop\vlc-cache-gen.exe"
|
||||||
Remove-Item -Force -LiteralPath "$BuildDir\desktop\vlc-cache-gen.exe"
|
Remove-Item -Force -LiteralPath "$BuildDir\desktop\vlc-cache-gen.exe"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user