[flutter]: config window build script

This commit is contained in:
appflowy 2021-11-14 20:17:31 +08:00
parent 0e8ebe1e4d
commit 259a61378d
3 changed files with 8 additions and 9 deletions

View File

@ -61,13 +61,13 @@ FLUTTER_PLATFORM = "apk"
FLUTTER_OUTPUT_DIR = "Release"
PRODUCT_EXT = "apk"
[env.production-win]
[env.production-window]
DEV = false
PROD = true
TARGET_OS = "windows"
CRATE_TYPE = "cdylib"
BUILD_FLAG = "release"
FLUTTER_PLATFORM = "apk"
FLUTTER_PLATFORM = "windows"
FLUTTER_OUTPUT_DIR = "Release"
PRODUCT_EXT = "exe"

View File

@ -7,11 +7,11 @@ edition = "2018"
[lib]
name = "dart_ffi"
# this value will change depending on the target os
# for iOS it would be `rlib`
# for Macos it would be `rlib`
# for iOS it would be ``
# for Macos it would be ``
# for android it would be `c-dylib`
# default rlib
crate-type = ["rlib"]
# default
crate-type = [""]
[dependencies]

View File

@ -2,7 +2,7 @@
[tasks.flowy-sdk]
category = "Build"
condition = { profiles = [ "development-mac" ], channels = ["nightly"] }
condition = { channels = ["nightly"] }
dependencies = ["flowy-sdk-build"]
run_task = { name = ["copy-to-sys-tmpdir"] }
@ -11,7 +11,6 @@ condition = { channels = ["nightly"] }
run_task = { name = ["setup-crate-type","sdk-build", "post-desktop", "restore-crate-type"] }
[tasks.sdk-build]
condition = { platforms = ["mac"] }
description = "Build desktop targets."
script = [
"""
@ -45,7 +44,7 @@ script_runner = "@duckscript"
[tasks.copy-to-sys-tmpdir]
private = true
condition = { platforms = ["mac"] }
condition = { profiles = [ "development-mac" ], platforms = ["mac"] }
script = [
"""
# post the dylib target_path that use for flutter unit test