Skip to content

Commit

Permalink
Update msbuild.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aliakseis committed Oct 13, 2024
1 parent 416078e commit 84591c4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,18 @@ jobs:
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}

#- name: Install MSIX Packaging Tool
# run: winget install "MSIX Packaging Tool"

- name: Generate .msix package
run: |
$MakeAppx_path = Get-ChildItem -Path "C:/Program Files (x86)/Windows Kits/10/bin/*/x64/MakeAppx.exe" | Select-Object -First 1 -ExpandProperty FullName
Write-Output "MakeAppx path=$MakeAppx_path"
mkdir -p ./x64/Release/Appx/Assets
cp ./AppxManifest.xml ./x64/Release/Appx/
cp ./Assets/* ./x64/Release/Appx/Assets/
mkdir -p ./x64/Release/Assets
cp ./AppxManifest.xml ./x64/Release/
cp ./Assets/* ./x64/Release/Assets/
& "$MakeAppx_path" pack /d ./x64/Release /p ./x64/Release/Appx/WellTrajectoryCalculator.msix
& "$MakeAppx_path" pack /d ./x64/Release /p ./WellTrajectoryCalculator.msix
shell: pwsh

- name: Upload .msix package
uses: actions/upload-artifact@v4
with:
name: msix-package
path: ./x64/Release/Appx/WellTrajectoryCalculator.msix
path: ./WellTrajectoryCalculator.msix

0 comments on commit 84591c4

Please sign in to comment.