mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
Build system will now detect OS and pass it down to build_sdk.sh.
build_sdk.sh will now automatically choose the correct cargo-make command line based on the OS
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
#!/bin/sh
|
||||
#!/usr/bin/env fish
|
||||
echo 'Start building rust sdk'
|
||||
|
||||
rustup show
|
||||
|
||||
#Env check
|
||||
@ -14,16 +15,26 @@ rustup show
|
||||
# 4. ~/.zshrc
|
||||
|
||||
|
||||
# TODO: Automatically exec the script base on the current system
|
||||
case "$FLOWY_DEV_ENV" in
|
||||
Linux-aarch64)
|
||||
cargo make --profile development-linux-aarch64 flowy-sdk-dev
|
||||
;;
|
||||
|
||||
# for macOS
|
||||
cargo make --profile development-mac flowy-sdk-dev
|
||||
Linux-x86)
|
||||
cargo make --profile development-linux-x86 flowy-sdk-dev
|
||||
;;
|
||||
|
||||
# for Windows
|
||||
#cargo make --profile development-windows flowy-sdk-dev
|
||||
macOS)
|
||||
cargo make --profile development-mac flowy-sdk-dev
|
||||
;;
|
||||
|
||||
# for Linux x86
|
||||
#cargo make --profile development-linux-x86 flowy-sdk-dev
|
||||
Windows)
|
||||
cargo make --profile development-windows flowy-sdk-dev
|
||||
;;
|
||||
|
||||
# for Linux aarch64
|
||||
#cargo make --profile development-linux-aarch64 flowy-sdk-dev
|
||||
*)
|
||||
# All undefined cases
|
||||
echo "[ERROR] The FLOWY_DEV_ENV environment variable must be set. Please see the GitHub wiki for instructions."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
Reference in New Issue
Block a user