Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions build-mac.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
# Local macOS build. Produces a .app bundle via macos/release-macos.sh.
# https://avaloniaui.net/blog/the-definitive-guide-to-building-and-deploying-avalonia-applications-for-macos
set -euo pipefail
exec "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/macos/release-macos.sh" "$@"
6 changes: 3 additions & 3 deletions macos/release-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ mkdir -p "$OUTPUT_DIR"
# =============================================================================
if [ "${SKIP_BUILD:-}" != "true" ]; then
echo "[INFO] Building WheelWizard for $RID..."
cd "$WW_DIR"
dotnet publish -r "$RID" -c Release-macOS \
# Publish the project, not the solution: WheelWizard.sln only has
# Debug|Any CPU and Release|Any CPU, so -c Release-macOS fails against the .sln.
dotnet publish "$WW_DIR/WheelWizard/WheelWizard.csproj" -r "$RID" -c Release-macOS \
/p:PublishSingleFile=true \
/p:IncludeAllContentForSelfExtract=true \
/p:IncludeNativeLibrariesForSelfExtract=true \
Expand All @@ -67,7 +68,6 @@ if [ "${SKIP_BUILD:-}" != "true" ]; then
-p:UseAppHost=true \
--self-contained true \
-o "$OUTPUT_DIR/compiled/$RID"
cd "$SCRIPT_DIR"
else
echo "[INFO] Skipping build (SKIP_BUILD=true)"
fi
Expand Down
Loading