mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
[rust]: fix scripts errors
This commit is contained in:
parent
96560d2b3e
commit
92ab7eac17
@ -17,8 +17,8 @@ VERSION = "0.0.2"
|
|||||||
FEATURES = "flutter"
|
FEATURES = "flutter"
|
||||||
PRODUCT_NAME = "AppFlowy"
|
PRODUCT_NAME = "AppFlowy"
|
||||||
#CRATE_TYPE: https://doc.rust-lang.org/reference/linkage.html
|
#CRATE_TYPE: https://doc.rust-lang.org/reference/linkage.html
|
||||||
CRATE_TYPE = "cdylib"
|
CRATE_TYPE = "staticlib"
|
||||||
|
SDK_EXT = "a"
|
||||||
|
|
||||||
[env.development-mac]
|
[env.development-mac]
|
||||||
TARGET_OS = "macos"
|
TARGET_OS = "macos"
|
||||||
@ -40,7 +40,6 @@ TARGET_OS = "macos"
|
|||||||
RUST_COMPILE_TARGET = "x86_64-apple-darwin"
|
RUST_COMPILE_TARGET = "x86_64-apple-darwin"
|
||||||
FLUTTER_OUTPUT_DIR = "Release"
|
FLUTTER_OUTPUT_DIR = "Release"
|
||||||
PRODUCT_EXT = "app"
|
PRODUCT_EXT = "app"
|
||||||
CRATE_TYPE = "staticlib"
|
|
||||||
|
|
||||||
[env.production-desktop-windows-x86]
|
[env.production-desktop-windows-x86]
|
||||||
BUILD_FLAG = "release"
|
BUILD_FLAG = "release"
|
||||||
@ -76,7 +75,7 @@ private = true
|
|||||||
script = [
|
script = [
|
||||||
"""
|
"""
|
||||||
toml = readfile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml
|
toml = readfile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml
|
||||||
val = replace ${toml} "dylib" ${CRATE_TYPE}
|
val = replace ${toml} "cdylib" ${CRATE_TYPE}
|
||||||
result = writefile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml ${val}
|
result = writefile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml ${val}
|
||||||
assert ${result}
|
assert ${result}
|
||||||
""",
|
""",
|
||||||
@ -88,7 +87,7 @@ private = true
|
|||||||
script = [
|
script = [
|
||||||
"""
|
"""
|
||||||
toml = readfile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml
|
toml = readfile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml
|
||||||
val = replace ${toml} ${CRATE_TYPE} "dylib"
|
val = replace ${toml} ${CRATE_TYPE} "cdylib"
|
||||||
result = writefile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml ${val}
|
result = writefile ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/Cargo.toml ${val}
|
||||||
assert ${result}
|
assert ${result}
|
||||||
""",
|
""",
|
||||||
|
@ -44,9 +44,9 @@ EXTERNAL SOURCES:
|
|||||||
:path: Flutter/ephemeral/.symlinks/plugins/window_size/macos
|
:path: Flutter/ephemeral/.symlinks/plugins/window_size/macos
|
||||||
|
|
||||||
SPEC CHECKSUMS:
|
SPEC CHECKSUMS:
|
||||||
flowy_editor: 26060a984848e6afac1f6a4455511f4114119d8d
|
flowy_editor: 0e67fc03e2a7466116f2d068b636d30d96c4f38d
|
||||||
flowy_infra_ui: 9d5021b1610fe0476eb1191bf7cd41c4a4138d8f
|
flowy_infra_ui: c34d49d615ed9fe552cd47f90d7850815a74e9e9
|
||||||
flowy_sdk: b7efddcc3af4ea87dc2f842c22dc37283bb9e169
|
flowy_sdk: 57c926d0979a826d6bdc6bd784b2bb7682895fe7
|
||||||
FlutterMacOS: 57701585bf7de1b3fc2bb61f6378d73bbdea8424
|
FlutterMacOS: 57701585bf7de1b3fc2bb61f6378d73bbdea8424
|
||||||
package_info_plus_macos: f010621b07802a241d96d01876d6705f15e77c1c
|
package_info_plus_macos: f010621b07802a241d96d01876d6705f15e77c1c
|
||||||
path_provider_macos: 160cab0d5461f0c0e02995469a98f24bdb9a3f1f
|
path_provider_macos: 160cab0d5461f0c0e02995469a98f24bdb9a3f1f
|
||||||
|
@ -33,8 +33,8 @@ private = true
|
|||||||
script = [
|
script = [
|
||||||
"""
|
"""
|
||||||
echo "🚀 🚀 🚀 Flowy-SDK build success"
|
echo "🚀 🚀 🚀 Flowy-SDK build success"
|
||||||
cp ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/target/${RUST_COMPILE_TARGET}/${BUILD_FLAG}/lib${CARGO_MAKE_CRATE_FS_NAME}.a \
|
cp ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/target/${RUST_COMPILE_TARGET}/${BUILD_FLAG}/lib${CARGO_MAKE_CRATE_FS_NAME}.${SDK_EXT} \
|
||||||
${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/app_flowy/packages/flowy_sdk/macos/lib${CARGO_MAKE_CRATE_FS_NAME}.a
|
${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/app_flowy/packages/flowy_sdk/macos/lib${CARGO_MAKE_CRATE_FS_NAME}.${SDK_EXT}
|
||||||
""",
|
""",
|
||||||
"""
|
"""
|
||||||
cp ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/binding.h \
|
cp ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/${CARGO_MAKE_CRATE_NAME}/binding.h \
|
||||||
|
Loading…
Reference in New Issue
Block a user