Skip to content

Commit 9afc0a4

Browse files
committed
Try using WinApp CLI
Signed-off-by: Shmueli Englard <shmueli.yosef@englard.net>
1 parent a875754 commit 9afc0a4

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

msix/release.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ test -z "$include_pdbs" || {
151151
} ||
152152
die "Could not unpack .pdb files"
153153

154+
# Install Tooling
155+
echo "Install WinApp CLI"
156+
winget install Microsoft.WinAppCLI
157+
154158
# Create MSIX
155159

156160
MAPFILE=$SCRIPT_PATH/root/files.map
@@ -177,6 +181,6 @@ echo "\"$(cygpath -aw "$SCRIPT_PATH")/Assets/StoreLogo.png\" \"Assets/StoreLogo.
177181
echo "$LIST" |
178182
sed -e 'y/\//\\/' -e 's/.*/"&" "&"/' >>"$MAPFILE"
179183

180-
PWSH_COMMAND=". \"C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\makeappx.exe\" pack /v /o /f $(cygpath -aw "$MAPFILE") /p $(cygpath -aw "$TARGET")"
181-
pwsh -wd "$(cygpath -aw "/")" -nop -noni -nol -c "iex '$PWSH_COMMAND'" &&
184+
PWSH_COMMAND="winapp tool makeappx.exe pack /v /o /f $(cygpath -aw "$MAPFILE") /p $(cygpath -aw "$TARGET")"
185+
powershell -WorkingDirectory "$(cygpath -aw "/")" -NonInteractive -NoProfile -NoLogo -Command "iex '$PWSH_COMMAND'" &&
182186
echo "Package created at $TARGET"

0 commit comments

Comments
 (0)