mirror of
https://github.com/hykilpikonna/hyfetch.git
synced 2026-04-19 07:07:44 -05:00
20 lines
715 B
Bash
Executable File
20 lines
715 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
# Add cargo to path
|
|
export PATH="$HOME/.cargo/bin:$PATH"
|
|
cd /app
|
|
|
|
# OSX linker and ar
|
|
export OSX_VER=20.4
|
|
export CARGO_TARGET_X86_64_APPLE_DARWIN_LINKER=/osxcross/bin/x86_64-apple-darwin$OSX_VER-clang
|
|
export CARGO_TARGET_X86_64_APPLE_DARWIN_AR=/osxcross/bin/x86_64-apple-darwin$OSX_VER-ar
|
|
export CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER=/osxcross/bin/aarch64-apple-darwin$OSX_VER-clang
|
|
export CARGO_TARGET_AARCH64_APPLE_DARWIN_AR=/osxcross/bin/aarch64-apple-darwin$OSX_VER-ar
|
|
|
|
# Build for platforms
|
|
# +beta because rust doesn't know which strip to use until version 1.84
|
|
cargo +beta build --release --target x86_64-apple-darwin
|
|
cargo +beta build --release --target aarch64-apple-darwin
|