2021-07-03 06:14:10 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#!/usr/bin/env fish
|
|
|
|
echo 'Start building rust sdk'
|
|
|
|
rustup show
|
|
|
|
|
2021-07-25 03:08:59 +00:00
|
|
|
#Env check
|
|
|
|
#1. rustc --version will be the same as cargo --version
|
|
|
|
#2. override the toolchain if the current toolchain not equal to the rust-toolchain file specified.
|
|
|
|
# rustup override set nightly-2021-04-24
|
|
|
|
#3. Check your cargo env using the same source by: which cargo
|
|
|
|
# 1. ~/.bash_profile,
|
|
|
|
# 2. ~/.bashrc
|
|
|
|
# 3. ~/.profile
|
|
|
|
# 4. ~/.zshrc
|
2021-11-17 06:17:46 +00:00
|
|
|
|
2021-11-18 08:18:20 +00:00
|
|
|
|
|
|
|
# TODO: Automatically exec the script base on the current system
|
|
|
|
|
2021-11-17 06:17:46 +00:00
|
|
|
# for macos
|
|
|
|
cargo make --profile development-mac flowy-sdk-dev
|
|
|
|
|
|
|
|
# for window
|
|
|
|
#cargo make --profile development-windows flowy-sdk-dev
|
2021-11-19 14:40:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
# for linux aarch64
|
|
|
|
#cargo make --profile development-linux-x86 flowy-sdk-dev
|
|
|
|
|
|
|
|
# for linux aarch64
|
|
|
|
#cargo make --profile development-linux-aarch64 flowy-sdk-dev
|