File tree Expand file tree Collapse file tree 5 files changed +12
-10
lines changed
lib/src/open_factory/native
powersync_flutter_libs/linux Expand file tree Collapse file tree 5 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,8 @@ class PowerSyncDartOpenFactory extends PowerSyncOpenFactory {
6666 case Abi .macosX64:
6767 return '$path /libpowersync.dylib' ;
6868 case Abi .linuxX64:
69- return '$path /llibpowersync_x64.linux.so' ;
7069 case Abi .linuxArm64:
71- return '$path /llibpowersync_aarch64.linux .so' ;
70+ return '$path /libpowersync .so' ;
7271 case Abi .windowsX64:
7372 return '$path /powersync.dll' ;
7473 case Abi .androidIA32:
Original file line number Diff line number Diff line change @@ -92,9 +92,9 @@ class PowerSyncOpenFactory extends AbstractPowerSyncOpenFactory {
9292 case Abi .macosX64:
9393 return 'libpowersync.dylib' ;
9494 case Abi .linuxX64:
95- return 'libpowersync_x64.linux. so' ;
95+ return 'libpowersync_x64.so' ;
9696 case Abi .linuxArm64:
97- return 'libpowersync_aarch64.linux. so' ;
97+ return 'libpowersync_aarch64.so' ;
9898 case Abi .windowsX64:
9999 return 'powersync_x64.dll' ;
100100 case Abi .androidIA32:
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ set(CORE_FILE_NAME "libpowersync.so")
2929
3030set (POWERSYNC_ARCH ${CMAKE_SYSTEM_PROCESSOR} )
3131if (${POWERSYNC_ARCH} MATCHES "x86_64" OR ${POWERSYNC_ARCH} MATCHES "AMD64" )
32- set (CORE_FILE_NAME "libpowersync_x64.linux. so" )
32+ set (CORE_FILE_NAME "libpowersync_x64.so" )
3333elseif (${POWERSYNC_ARCH} MATCHES "^arm64" OR ${POWERSYNC_ARCH} MATCHES "^armv8" )
34- set (CORE_FILE_NAME "libpowersync_aarch64.linux. so" )
34+ set (CORE_FILE_NAME "libpowersync_aarch64.so" )
3535endif ()
3636
3737set (POWERSYNC_FILE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /${CORE_FILE_NAME} " )
Original file line number Diff line number Diff line change @@ -9,15 +9,19 @@ void main() async {
99 final powersyncLibsLinuxPath = "packages/powersync_flutter_libs/linux" ;
1010 final powersyncLibsWindowsPath = "packages/powersync_flutter_libs/windows" ;
1111
12+ // These are the filenames as published to the GitHub release
1213 final linuxArm64FileName = "libpowersync_aarch64.linux.so" ;
1314 final linuxX64FileName = "libpowersync_x64.linux.so" ;
15+ // These are the filenames present in the powersync_flutter_libs/windows directory
1416 final windowsX64FileName = "powersync_x64.dll" ;
17+ final linuxArm64OutputFileName = "libpowersync_aarch64.so" ;
18+ final linuxX64OutputFileName = "libpowersync_x64.so" ;
1519
1620 // Download dynamic library
1721 await downloadFile ("$coreUrl /$linuxArm64FileName " ,
18- "$powersyncLibsLinuxPath /$linuxArm64FileName " );
22+ "$powersyncLibsLinuxPath /$linuxArm64OutputFileName " );
1923 await downloadFile ("$coreUrl /$linuxX64FileName " ,
20- "$powersyncLibsLinuxPath /$linuxX64FileName " );
24+ "$powersyncLibsLinuxPath /$linuxX64OutputFileName " );
2125 await downloadFile ("$coreUrl /$windowsX64FileName " ,
2226 "$powersyncLibsWindowsPath /$windowsX64FileName " );
2327}
Original file line number Diff line number Diff line change @@ -43,9 +43,8 @@ String getFileNameForPlatform() {
4343 case Abi .macosX64:
4444 return 'libpowersync.dylib' ;
4545 case Abi .linuxX64:
46- return 'libpowersync_x64.linux.so' ;
4746 case Abi .linuxArm64:
48- return 'libpowersync_aarch64.linux .so' ;
47+ return 'libpowersync .so' ;
4948 case Abi .windowsX64:
5049 return 'powersync.dll' ;
5150 default :
You can’t perform that action at this time.
0 commit comments