Skip to content

Commit

Permalink
Fixed mac build bash
Browse files Browse the repository at this point in the history
  • Loading branch information
EX3exp committed Oct 3, 2024
1 parent 74aa93c commit b283bd3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Mirivoice.Desktop/build_osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ appversion=$1
build_for_arch() {
local arch=$1
echo "Building for $arch..."
dotnet publish Mirivoice.Desktop/Mirivoice.Desktop.csproj -r osx-$arch -c Release -p:AssemblyVersion=$appversion
dotnet publish Mirivoice.Desktop/Mirivoice.Desktop.csproj -r osx-$arch -c Release -p:AssemblyVersion=$appversion -o "$OUTPUT_DIR/osx-$arch"
}

# Build for both architectures
Expand All @@ -22,10 +22,10 @@ mkdir -p "$FINAL_OUTPUT_DIR"
# Create universal binary
echo "Creating universal binary..."
lipo -create \
"$OUTPUT_DIR/osx-x64/publish/$PROJECT_NAME" \
"$OUTPUT_DIR/osx-arm64/publish/$PROJECT_NAME" \
"$OUTPUT_DIR/osx-x64" \
"$OUTPUT_DIR/osx-arm64" \
-output "$FINAL_OUTPUT_DIR/$PROJECT_NAME"

echo "Universal binary created successfully"

mv "$FINAL_OUTPUT_DIR/$PROJECT_NAME" Mirivoice.Desktop/osxbuild/MiriVoice.app/Contents/MacOS/
cp -a $FINAL_OUTPUT_DIR/$PROJECT_NAME Mirivoice.Desktop/osxbuild/MiriVoice.app/Contents/MacOS

0 comments on commit b283bd3

Please sign in to comment.