# !/bin/sh
set -x
rustup default stable
rustup target add x86_64-unknown-linux-musl


# rust-clipboard needs
#sudo apt install xorg-dev

# gtk-sys and pango-sys need
#sudo apt install libgtk-3-dev

cargo build --target x86_64-unknown-linux-gnu  --release
strip -s ../target/x86_64-unknown-linux-gnu/release/tp-note

PKG_CONFIG_ALLOW_CROSS=1 cargo build --target x86_64-unknown-linux-musl --release
strip -s ../target/x86_64-unknown-linux-musl/release/tp-note

