build_sdk.sh 787 B

123456789101112131415161718192021222324252627282930
  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
  19. # for linux aarch64
  20. #cargo make --profile development-linux-x86 flowy-sdk-dev
  21. # for linux aarch64
  22. #cargo make --profile development-linux-aarch64 flowy-sdk-dev