File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 54
54
55
55
- name : Bundle
56
56
shell : pwsh
57
- run : ls -Recurse ; .\src\Publish-ReleaseBundle.ps1 -MsixX64 "x64/Jackpot-x64.msix" -MsixArm64 "arm64/Jackpot-arm64.msix"
57
+ run : .\src\Publish-ReleaseBundle.ps1 -MsixX64 "x64/Jackpot-x64.msix" -MsixArm64 "arm64/Jackpot-arm64.msix"
58
58
59
59
- name : Upload
60
60
uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change 4
4
[Parameter (Mandatory = $true )] [string ] $MsixArm64
5
5
)
6
6
7
+ $ErrorPreference = ' Stop'
8
+ $ProgressPreference = ' SilentlyContinue'
9
+
10
+ $root = Split-Path - Path $PSScriptRoot - Parent
11
+
7
12
$bundleDir = " $root \publish\bundle"
8
13
if (Test-Path $bundleDir ) {
9
14
[System.IO.Directory ]::Delete($bundleDir , $true ) | Out-Null
10
15
}
11
16
[System.IO.Directory ]::CreateDirectory($bundleDir ) | Out-Null
12
17
18
+ # Windows SDK
19
+ $windowsSdkBaseDir = " C:\Program Files (x86)\Windows Kits\10\Redist"
20
+ $windowsSdkVersion = `
21
+ Get-ChildItem - Path $windowsSdkBaseDir |
22
+ Where-Object { $_.Name -match ' ^10\.0\.\d+\.\d+$' } |
23
+ Sort-Object Name - Descending |
24
+ Select-Object - First 1 - ExpandProperty Name
25
+
26
+ $makeappx = " C:\Program Files (x86)\Windows Kits\10\bin\$windowsSdkVersion \x64\makeappx.exe"
27
+ if (Test-Path $makeappx ) {
28
+ Write-Output " MakeAppx: $makeappx "
29
+ } else {
30
+ throw " MakeAppx not found!"
31
+ }
32
+
13
33
$msixBundleFilePath = " $root \publish\Jackpot.msixbundle"
14
34
if (Test-Path $msixBundleFilePath ) { Remove-Item - Path $msixBundleFilePath - Force }
15
35
Write-Host " `n --- Start: MakeAppx bundle ---"
You can’t perform that action at this time.
0 commit comments