mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Added final version field for makeappx
This commit is contained in:
1 parent
71a3681d3f
commit
9786be0a4b
1 file changed
+5
-1
+5
-1
@@ -1054,6 +1054,9 @@ function New-AppxPackage
|
||||
|
||||
Write-Verbose "Extract the version in the form of a.b.c.d"
|
||||
$PackageVersion = ([regex]::matches($PackageVersion, "\d+(\.\d+)+"))[0].value
|
||||
|
||||
# Need to add the last version field for makeappx
|
||||
$PackageVersion = $PackageVersion + '.0'
|
||||
Write-Verbose "Package Version is $PackageVersion"
|
||||
|
||||
$win10sdkBinPath = "${env:ProgramFiles(x86)}\Windows Kits\10\bin\x64"
|
||||
@@ -1122,7 +1125,8 @@ function New-AppxPackage
|
||||
Write-Verbose "Place AppxManifest dependencies such as images to $assetsInSourcePath"
|
||||
Copy-Item "$AssetsPath\*.png" $assetsInSourcePath -Force
|
||||
|
||||
$appxPackagePath = "$pwd\$PackageName_$PackageVersion.appx"
|
||||
$appxPackageName = $PackageName + "_" + $PackageVersion
|
||||
$appxPackagePath = "$pwd\$appxPackageName.appx"
|
||||
Write-Verbose "Calling MakeAppx from $makeappxExePath to create the package @ $appxPackagePath"
|
||||
& $makeappxExePath pack /o /v /d $SourcePath /p $appxPackagePath | Write-Verbose
|
||||
|
||||
|
||||
Reference in new issue
Block a user