diff --git a/.github/workflows/cross-compile.yml b/.github/workflows/cross-compile.yml index cbfd2d3..8a42642 100644 --- a/.github/workflows/cross-compile.yml +++ b/.github/workflows/cross-compile.yml @@ -71,7 +71,8 @@ jobs: dirname="$binary_name-$version-${{ matrix.target }}" mkdir "$dirname" if [ "${{ matrix.os }}" = "macos-latest" ]; then - mv "target/${{ matrix.target }}/release/lib$binary_name.dylib" "$dirname" && mv "libsql_php_extension.stubs.php" "$dirname" + cp "target/${{ matrix.target }}/release/lib$binary_name.dylib" "target/${{ matrix.target }}/release/lib$binary_name.so" + mv "target/${{ matrix.target }}/release/lib$binary_name.dylib" "$dirname" && mv "target/${{ matrix.target }}/release/lib$binary_name.so" "$dirname" && mv "libsql_php_extension.stubs.php" "$dirname" else mv "target/${{ matrix.target }}/release/lib$binary_name.so" "$dirname" && mv "libsql_php_extension.stubs.php" "$dirname" fi diff --git a/Cargo.lock b/Cargo.lock index 8a5aa2b..a6271df 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1124,7 +1124,7 @@ dependencies = [ [[package]] name = "libsql_php" -version = "1.2.3" +version = "1.2.4" dependencies = [ "base64 0.22.0", "ext-php-rs", diff --git a/Cargo.toml b/Cargo.toml index d9909cf..61356d1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libsql_php" -version = "1.2.3" +version = "1.2.4" edition = "2021" authors = ["Imam Ali Mustofa "] diff --git a/src/lib.rs b/src/lib.rs index b603b64..371cb6e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -26,7 +26,7 @@ lazy_static::lazy_static! { static ref STATEMENT_REGISTRY: Mutex> = Mutex::new(HashMap::new()); } -pub const LIBSQL_PHP_VERSION: &str = "1.2.3"; +pub const LIBSQL_PHP_VERSION: &str = "1.2.4"; /// Represents the flag for opening a database in read-only mode. pub const LIBSQL_OPEN_READONLY: i32 = 1; @@ -397,7 +397,7 @@ pub extern "C" fn libsql_php_extension_info(_module: *mut ext_php_rs::zend::Modu ext_php_rs::ffi::php_info_print_table_row( 2, "LibSQL PHP version\0".as_ptr() as *const i8, - "1.2.3\0".as_ptr() as *const i8, + "1.2.4\0".as_ptr() as *const i8, ); ext_php_rs::ffi::php_info_print_table_row( 2,