Fix example/uwp/build.ps1
GitOrigin-RevId: 264c603985c76e78d28261fe632c9c6924494632
This commit is contained in:
parent
9efa9a49d9
commit
834289efa1
@ -1,7 +1,7 @@
|
||||
param (
|
||||
[string]$vcpkg_root = $(throw "-vcpkg_root=<path to vcpkg> is required"),
|
||||
[string]$arch = "",
|
||||
[string]$mode = "all"
|
||||
[string]$mode = "all",
|
||||
[string]$compress = "7z"
|
||||
)
|
||||
$ErrorActionPreference = "Stop"
|
||||
@ -108,7 +108,7 @@ function export {
|
||||
|
||||
if ($compress -eq "zip") {
|
||||
zip -r tdlib.vsix *
|
||||
} else if ($compress -eq "winrar") {
|
||||
} elseif ($compress -eq "winrar") {
|
||||
WinRAR.exe a -afzip -r -ep1 tdlib.vsix *
|
||||
} else {
|
||||
7z.exe a -tzip -r tdlib.vsix *
|
||||
@ -119,6 +119,9 @@ function export {
|
||||
function run {
|
||||
Push-Location
|
||||
Try {
|
||||
if ($mode -eq "clean") {
|
||||
clean
|
||||
}
|
||||
if (($mode -eq "prepare") -or ($mode -eq "all")) {
|
||||
prepare
|
||||
}
|
||||
|
Reference in New Issue
Block a user