Skip to content

Commit 1e822ce

Browse files
shmuelieCopilot
andcommitted
msix: use absolute paths for file list entries in map file
The LIST entries are relative to the MSYS root (/). When makeappx.exe runs, it resolves them relative to the current working directory instead. Convert them to absolute Windows paths using the MSYS root so makeappx.exe can find the files. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Shmueli Englard <senglard@microsoft.com>
1 parent 80f3c5e commit 1e822ce

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

msix/release.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,9 @@ echo "\"$(cygpath -aw "$SCRIPT_PATH")/Assets/Square44x44Logo.png\" \"Assets/Squa
191191
echo "\"$(cygpath -aw "$SCRIPT_PATH")/Assets/Square44x44Logo.scale-200.png\" \"Assets/Square44x44Logo.scale-200.png\"" >>"$MAPFILE" &&
192192
echo "\"$(cygpath -aw "$SCRIPT_PATH")/Assets/Square44x44Logo.targetsize-24_altform-unplated.png\" \"Assets/Square44x44Logo.targetsize-24_altform-unplated.png\"" >>"$MAPFILE" &&
193193
echo "\"$(cygpath -aw "$SCRIPT_PATH")/Assets/StoreLogo.png\" \"Assets/StoreLogo.png\"" >>"$MAPFILE" &&
194+
MSYS_ROOT="$(cygpath -aw /)" &&
194195
echo "$LIST" |
195-
sed -e 'y/\//\\/' -e 's/.*/"&" "&"/' >>"$MAPFILE"
196+
sed -e 'y/\//\\/' -e "s|.*|\"$MSYS_ROOT\\\\&\" \"&\"|" >>"$MAPFILE"
196197

197198
MSYS_NO_PATHCONV=1 "$MAKEAPPX" pack /v /o /f "$(cygpath -aw "$MAPFILE")" /p "$(cygpath -aw "$TARGET")" &&
198199
echo "Package created at $TARGET"

0 commit comments

Comments
 (0)