diff --git a/flumi/addons/gurt-protocol/bin/windows/gurt_godot.dll b/flumi/addons/gurt-protocol/bin/windows/gurt_godot.dll index efaaffc..a2c3d93 100644 Binary files a/flumi/addons/gurt-protocol/bin/windows/gurt_godot.dll and b/flumi/addons/gurt-protocol/bin/windows/gurt_godot.dll differ diff --git a/protocol/gdextension/Cargo.toml b/protocol/gdextension/Cargo.toml index 845c9de..86e2d03 100644 --- a/protocol/gdextension/Cargo.toml +++ b/protocol/gdextension/Cargo.toml @@ -14,15 +14,15 @@ crate-type = ["cdylib"] [dependencies] gurtlib = { path = "../library" } -godot = "0.1" +godot = { version = "0.1", features = ["experimental-threads"] } tokio = { version = "1.0", features = ["rt"] } url = "2.5" serde_json = "1.0" [profile.release] -opt-level = "z" +opt-level = 3 lto = true codegen-units = 1 +strip = true panic = "abort" -strip = true \ No newline at end of file diff --git a/protocol/gdextension/build.sh b/protocol/gdextension/build.sh index 90f82ca..88b7b58 100644 --- a/protocol/gdextension/build.sh +++ b/protocol/gdextension/build.sh @@ -33,7 +33,7 @@ while [[ $# -gt 0 ]]; do echo "" echo "Options:" echo " -t, --target TARGET Build target (debug|release) [default: release]" - echo " -p, --platform PLATFORM Target platform (windows|linux|macos|current)" + echo " -p, --platform PLATFORM Target platform (windows|linux|macos|macos-intel|current)" echo " -h, --help Show this help message" echo "" exit 0 @@ -82,6 +82,10 @@ case $PLATFORM in LIB_NAME="libgurt_godot.so" ;; macos) + RUST_TARGET="aarch64-apple-darwin" + LIB_NAME="libgurt_godot.dylib" + ;; + macos-intel) RUST_TARGET="x86_64-apple-darwin" LIB_NAME="libgurt_godot.dylib" ;;