mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
Merge pull request #179 from MikeWallaceDev/automate_build_sdk_sh
Automate build sdk sh
This commit is contained in:
commit
baade1f5d4
19
frontend/app_flowy/.vscode/tasks.json
vendored
19
frontend/app_flowy/.vscode/tasks.json
vendored
@ -15,6 +15,9 @@
|
|||||||
"command": "sh ./scripts/build_sdk.sh",
|
"command": "sh ./scripts/build_sdk.sh",
|
||||||
"windows": {
|
"windows": {
|
||||||
"options": {
|
"options": {
|
||||||
|
"env": {
|
||||||
|
"FLOWY_DEV_ENV": "Windows",
|
||||||
|
},
|
||||||
"shell": {
|
"shell": {
|
||||||
"executable": "cmd.exe",
|
"executable": "cmd.exe",
|
||||||
"args": [
|
"args": [
|
||||||
@ -23,6 +26,20 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"linux": {
|
||||||
|
"options": {
|
||||||
|
"env": {
|
||||||
|
"FLOWY_DEV_ENV": "Linux-x86",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"osx": {
|
||||||
|
"options": {
|
||||||
|
"env": {
|
||||||
|
"FLOWY_DEV_ENV": "macOS",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
"group": "build",
|
"group": "build",
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "${workspaceFolder}/../"
|
"cwd": "${workspaceFolder}/../"
|
||||||
@ -31,6 +48,6 @@
|
|||||||
// "$rustc"
|
// "$rustc"
|
||||||
// ],
|
// ],
|
||||||
"label": "build_flowy_sdk"
|
"label": "build_flowy_sdk"
|
||||||
},
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
echo 'Start building rust sdk'
|
echo 'Start building rust sdk'
|
||||||
|
|
||||||
rustup show
|
rustup show
|
||||||
|
|
||||||
#Env check
|
#Env check
|
||||||
@ -14,16 +15,26 @@ rustup show
|
|||||||
# 4. ~/.zshrc
|
# 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
|
Linux-x86)
|
||||||
cargo make --profile development-mac flowy-sdk-dev
|
cargo make --profile development-linux-x86 flowy-sdk-dev
|
||||||
|
;;
|
||||||
|
|
||||||
# for Windows
|
macOS)
|
||||||
#cargo make --profile development-windows flowy-sdk-dev
|
cargo make --profile development-mac flowy-sdk-dev
|
||||||
|
;;
|
||||||
|
|
||||||
# for Linux x86
|
Windows)
|
||||||
#cargo make --profile development-linux-x86 flowy-sdk-dev
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user