Oh right, Apple Silicon
This commit is contained in:
parent
ba7a2c47b0
commit
bc84d88b5f
|
@ -6,6 +6,7 @@ FROM crazymax/osxcross:latest-ubuntu AS osxcross
|
|||
FROM rust:latest
|
||||
RUN rustup target add x86_64-pc-windows-msvc && \
|
||||
rustup target add x86_64-apple-darwin && \
|
||||
rustup target add aarch64-apple-darwin && \
|
||||
apt-get update && \
|
||||
apt-get install -y clang lld libc6-dev libasound2-dev libudev-dev genisoimage && \
|
||||
cargo install cargo-bundle xwin
|
||||
|
@ -16,8 +17,12 @@ ENV PATH="/osxcross/bin:$PATH" \
|
|||
CC="clang" CXX="clang++" AR="llvm-ar-14" \
|
||||
CC_x86_64-apple-darwin="o64-clang" \
|
||||
CXX_x86_64-apple-darwin="o64-clang++" \
|
||||
CC_aarch64-apple-darwin="oa64-clang" \
|
||||
CXX_aarch64-apple-darwin="o6a4-clang++" \
|
||||
CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_LINKER="lld-link" \
|
||||
CARGO_TARGET_X86_64_APPLE_DARWIN_LINKER="o64-clang" \
|
||||
CARGO_TARGET_X86_64_APPLE_DARWIN_AR="llvm-ar-14" \
|
||||
CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER="oa64-clang" \
|
||||
CARGO_TARGET_AARCH64_APPLE_DARWIN_AR="llvm-ar-14" \
|
||||
RUSTFLAGS="-Lnative=/xwin/crt/lib/x86_64 -Lnative=/xwin/sdk/lib/um/x86_64 -Lnative=/xwin/sdk/lib/ucrt/x86_64" \
|
||||
MACOSX_DEPLOYMENT_TARGET="14.5"
|
||||
|
|
|
@ -19,13 +19,21 @@ cp target/x86_64-pc-windows-msvc/release/lemur.exe output
|
|||
cargo bundle --release --target x86_64-pc-windows-msvc --format msi
|
||||
cp target/x86_64-pc-windows-msvc/release/bundle/msi/Lemur.msi output
|
||||
|
||||
# Build for MacOS
|
||||
# Build for MacOS Intel
|
||||
cargo build --release --target x86_64-apple-darwin
|
||||
cp target/x86_64-apple-darwin/release/lemur output/lemur-osx
|
||||
cp target/x86_64-apple-darwin/release/lemur output/lemur-osx-intel
|
||||
|
||||
# Bundle for MacOS
|
||||
# Bundle for MacOS Intel
|
||||
cargo bundle --release --target x86_64-apple-darwin --format osx
|
||||
genisoimage -V lemur -D -R -apple -no-pad -o output/Lemur.dmg target/x86_64-apple-darwin/release/bundle/osx
|
||||
genisoimage -V lemur -D -R -apple -no-pad -o output/Lemur-Intel.dmg target/x86_64-apple-darwin/release/bundle/osx
|
||||
|
||||
# Build for MacOS Apple Silicon
|
||||
cargo build --release --target aarch64-apple-darwin
|
||||
cp target/aarch64-apple-darwin/release/lemur output/lemur-osx-apple-silicon
|
||||
|
||||
# Bundle for MacOS Apple Silicon
|
||||
cargo bundle --release --target aarch64-apple-darwin --format osx
|
||||
genisoimage -V lemur -D -R -apple -no-pad -o output/Lemur-Apple-Silicon.dmg target/aarch64-apple-darwin/release/bundle/osx
|
||||
|
||||
# Clean up after ourselves
|
||||
cargo clean
|
Loading…
Reference in New Issue