build_sdk.sh 624 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. #!/usr/bin/env fish
  3. echo 'Start building rust sdk'
  4. rustup show
  5. #Env check
  6. #1. rustc --version will be the same as cargo --version
  7. #2. override the toolchain if the current toolchain not equal to the rust-toolchain file specified.
  8. # rustup override set nightly-2021-04-24
  9. #3. Check your cargo env using the same source by: which cargo
  10. # 1. ~/.bash_profile,
  11. # 2. ~/.bashrc
  12. # 3. ~/.profile
  13. # 4. ~/.zshrc
  14. # TODO: Automatically exec the script base on the current system
  15. # for macos
  16. cargo make --profile development-mac flowy-sdk-dev
  17. # for window
  18. #cargo make --profile development-windows flowy-sdk-dev