Skip to content

Commit

Permalink
fixed lipo
Browse files Browse the repository at this point in the history
  • Loading branch information
EX3exp committed Oct 3, 2024
1 parent e78a8a0 commit 90463f3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
17 changes: 11 additions & 6 deletions Mirivoice.Desktop/build_osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

PROJECT_NAME="MiriVoice"
OUTPUT_DIR="Mirivoice.Desktop/bin/osx"
UNIVERSAL_OUTPUT="Mirivoice.Desktop/bin/Universal"
APP_DIR="Mirivoice.Desktop/osxbuild/MiriVoice.app/Contents/MacOS"

appversion=$1

Expand All @@ -16,16 +18,19 @@ build_for_arch() {
build_for_arch "x64"
build_for_arch "arm64"

# Create the final output directory
mkdir -p "$FINAL_OUTPUT_DIR"
# Create the Universal directory if it doesn't exist
mkdir -p "$UNIVERSAL_OUTPUT"

# Create universal binary
echo "Creating universal binary..."
lipo -create \
"/Users/appveyor/projects/mirivoice/Mirivoice.Desktop/bin/osx/osx-x64" \
"/Users/appveyor/projects/mirivoice/Mirivoice.Desktop/bin/osx/osx-arm64" \
-output "Mirivoice.Desktop/bin/Universal/MiriVoice"
"$OUTPUT_DIR/osx-x64/MiriVoice" \
"$OUTPUT_DIR/osx-arm64/MiriVoice" \
-output "$UNIVERSAL_OUTPUT/MiriVoice"

echo "Universal binary created successfully"

cp -a /Users/appveyor/projects/mirivoice/Mirivoice.Desktop/bin/Universal/MiriVoice /Users/appveyor/projects/mirivoice/Mirivoice.Desktop/osxbuild/MiriVoice.app/Contents/MacOS
# Copy the universal binary to the app bundle
cp -a "$UNIVERSAL_OUTPUT/MiriVoice" "$APP_DIR"

echo "Binary copied to $APP_DIR"
3 changes: 0 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ artifacts:
- path: Mirivoice.Desktop\bin\win-x64
name: MiriVoice-win-x64
type: zip
- path: Mirivoice.Desktop\bin\osx
name: MiriVoice-osx
type: zip
- path: MiriVoice-osx-x64.dmg
- path: MiriVoice-linux-x64.tar.gz
- path: appcast.win-x86.xml
Expand Down

0 comments on commit 90463f3

Please sign in to comment.