소스 검색

[flutter]: config window build script

appflowy 3 년 전
부모
커밋
259a61378d
3개의 변경된 파일8개의 추가작업 그리고 9개의 파일을 삭제
  1. 2 2
      Makefile.toml
  2. 4 4
      rust-lib/dart-ffi/Cargo.toml
  3. 2 3
      scripts/makefile/desktop.toml

+ 2 - 2
Makefile.toml

@@ -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"
 

+ 4 - 4
rust-lib/dart-ffi/Cargo.toml

@@ -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 - 3
scripts/makefile/desktop.toml

@@ -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