mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
[flutter]: config window build script
This commit is contained in:
parent
0e8ebe1e4d
commit
259a61378d
@ -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"
|
||||
|
||||
|
@ -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]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user