Skip to content

Commit

Permalink
create script to package app
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilhenry committed Nov 14, 2023
1 parent 6722b91 commit e5d79e8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/package_macos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
echo "Packaging universal app for MacOS"

# building for Apple Silicon
cargo build --release --target aarch64-apple-darwin

# building for Intel macs
cargo build --release --target x86_64-apple-darwin

# creating universal binary using lipo
lipo -create -output path_finding target/x86_64-apple-darwin/release/path_finding target/aarch64-apple-darwin/release/path_finding

#packaging into the mac app
mv path_finding ./build/astar.rs.app/Contents/MacOS/.

0 comments on commit e5d79e8

Please sign in to comment.