mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
[Build] Enhance windows build instruction and cargo make scripts
1. doc\BUILD_ON_WINDOWS.md - add command for building development version 2. .vscode\tasks.json - Enable vscode to launch debug session on windows 3. frontend\scripts\makefile\env.toml - Fix "Command : dart not found." on windows 4. frontend\Makefile.toml - Change profile name "env.development-windows" to "env.development-desktop-windows-x86"
This commit is contained in:
@ -41,6 +41,18 @@ script = [
|
||||
]
|
||||
script_runner = "@shell"
|
||||
|
||||
[tasks.sdk-build.windows]
|
||||
private = true
|
||||
script = [
|
||||
"""
|
||||
cd rust-lib
|
||||
echo cargo build --package=dart-ffi --target ${RUST_COMPILE_TARGET} --features=${FEATURES}
|
||||
exec cargo build --package=dart-ffi --target ${RUST_COMPILE_TARGET} --features=${FEATURES}
|
||||
cd ..
|
||||
""",
|
||||
]
|
||||
script_runner = "@duckscript"
|
||||
|
||||
#
|
||||
[tasks.flowy-sdk-release]
|
||||
description = "Build flowy sdk in release mode"
|
||||
|
@ -10,6 +10,7 @@ output = exec powershell -Command "Get-CimInstance MSFT_VSInstance | select -Exp
|
||||
stdout = set ${output.stdout}
|
||||
pos = last_indexof ${stdout} .
|
||||
new_str = substring ${stdout} 0 ${pos}
|
||||
# TODO: will raise error if there are more than 1 visual studio installation
|
||||
newer = semver_is_newer ${new_str} 16.11.0
|
||||
assert ${newer} "Visual studio 2019 is not installed or version is lower than 16.11.0"
|
||||
"""
|
||||
@ -101,7 +102,7 @@ if is_empty ${ret}
|
||||
end
|
||||
ret = which protoc-gen-dart
|
||||
if is_empty ${ret}
|
||||
dart pub global activate protoc_plugin
|
||||
exec cmd.exe /c dart pub global activate protoc_plugin
|
||||
home_dir = get_home_dir
|
||||
echo Please add '${home_dir}\\\\AppData\\\\Local\\\\Pub\\\\Cache\\\\bin' into PATH env var
|
||||
exit -1
|
||||
|
Reference in New Issue
Block a user