Skip to content

Commit

Permalink
pack_mali.sh: first rename all packages then pack
Browse files Browse the repository at this point in the history
Rename all packages before packing, instead of doing both
actions for a package one at a time, to have packages with
correct dependencies.
  • Loading branch information
webwarrior-ws committed Nov 25, 2024
1 parent 570587f commit 9451140
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pack_mali.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ mv Microsoft.AspNetCore.Components.WebView.Maui.props Mali.AspNetCore.Components
mv Microsoft.AspNetCore.Components.WebView.Maui.targets Mali.AspNetCore.Components.WebView.targets
cd ../../../../..

# first rename packages so that dependencies are correct
echo "$PROJECTS_TO_PACK" | while read -r project; do
[ -z "$project" ] && continue # Skip if empty
# change PackagIds to Mali.*
Expand All @@ -26,6 +27,10 @@ echo "$PROJECTS_TO_PACK" | while read -r project; do
else
sed -i -r 's/<AssemblyName>Microsoft.Maui.([^<]+)<\/AssemblyName>/<PackageId>Mali.\1<\/PackageId>\n&/g' "$project"
fi
dotnet pack "$project" --no-build --no-restore
done

# then pack
echo "$PROJECTS_TO_PACK" | while read -r project; do
[ -z "$project" ] && continue # Skip if empty
dotnet pack "$project" --no-build --no-restore
done

0 comments on commit 9451140

Please sign in to comment.