Skip to content

Commit 0c8d930

Browse files
committed
Fix windows binary name
1 parent e848bb4 commit 0c8d930

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
contents: write
5757
id-token: write # Required for authentication using OIDC
5858
runs-on: [ubuntu-latest]
59-
if: contains(github.ref_name, 'powersync_attachments_helper-v')
59+
if: contains(github.ref_name, 'powersync_flutter_libs-v')
6060
steps:
6161
- uses: actions/checkout@v4
6262

packages/powersync/lib/src/open_factory/native/native_open_factory.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class PowerSyncOpenFactory extends AbstractPowerSyncOpenFactory {
8888
case Abi.linuxArm64:
8989
return 'libpowersync_aarch64.so';
9090
case Abi.windowsX64:
91-
return 'powersync.dll';
91+
return 'powersync_x64.dll';
9292
case Abi.androidIA32:
9393
throw PowersyncNotReadyException(
9494
'Unsupported processor architecture. X86 Android emulators are not '

packages/powersync_flutter_libs/windows/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ set(POWERSYNC_ARCH ${CMAKE_SYSTEM_PROCESSOR})
3030
set(CORE_FILE_NAME "powersync.dll")
3131

3232
if (${POWERSYNC_ARCH} MATCHES "x86_64" OR ${POWERSYNC_ARCH} MATCHES "AMD64")
33-
set(CORE_FILE_NAME "powersync.dll")
33+
set(CORE_FILE_NAME "powersync_x64.dll")
3434
elseif (${POWERSYNC_ARCH} MATCHES "^arm64" OR ${POWERSYNC_ARCH} MATCHES "^armv8")
35-
message(FATAL_ERROR "Unsupported architecture: ${POWERSYNC_ARCH}, please file a GitHub issue to add support.")
35+
message(FATAL_ERROR "Unsupported architecture: ${POWERSYNC_ARCH}, we are working on adding support for windows arm.")
3636
endif ()
3737

38-
set(POWERSYNC_FILE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/powersync.dll")
38+
set(POWERSYNC_FILE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/powersync_x64.dll")
3939

4040
# ----------------------------------------------------------------------
4141

0 commit comments

Comments
 (0)