-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
21 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
export MACOSX_DEPLOYMENT_TARGET=10.15 | ||
cargo bundle --release --features heif | ||
# build universal binary | ||
cargo bundle --release | ||
rustup target add aarch64-apple-darwin | ||
cargo universal2 | ||
rustup target add x86_64-apple-darwin | ||
brew install nasm | ||
# arch -x86_64 brew install nasm | ||
|
||
cargo build --release --target x86_64-apple-darwin | ||
cargo build --release --target aarch64-apple-darwin | ||
lipo -create -output target/release/bundle/osx/oculante.app/Contents/MacOS/oculante x86_64-apple-darwin/release/oculante aarch64-apple-darwin/release/oculante | ||
|
||
|
||
# build universal binary | ||
# cargo universal2 | ||
# copy universal binary into .app | ||
cp target/universal2-apple-darwin/release/oculante target/release/bundle/osx/oculante.app/Contents/MacOS/oculante | ||
#cp res/info.plist target/debug/bundle/osx/oculante.app/Contents/Info.plist | ||
cp Info.plist target/release/bundle/osx/oculante.app/Contents/Info.plist | ||
cp Info.plist target/release/bundle/osx/oculante.app/Contents/Info.plist | ||
|
||
|
||
|