Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

[flutter]: config window build script

appflowy259a61378d00
diff --git a/Makefile.toml b/Makefile.toml
index 1bf2a41846..eca41798a2 100644
--- a/Makefile.toml
+++ b/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"
diff --git a/rust-lib/dart-ffi/Cargo.toml b/rust-lib/dart-ffi/Cargo.toml
index 323e66b82b..6c5e3e29a0 100644
--- a/rust-lib/dart-ffi/Cargo.toml
+++ b/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]
diff --git a/scripts/makefile/desktop.toml b/scripts/makefile/desktop.toml
index 97bb63fa5a..4dc33435ed 100644
--- a/scripts/makefile/desktop.toml
+++ b/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