Skip to content

Commit b4dfa98

Browse files
committed
Update core extension, include Windows arm binary
1 parent 166ac6e commit b4dfa98

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@ on:
55

66
jobs:
77
build:
8-
name: Test Packages
9-
runs-on: windows-latest
8+
strategy:
9+
matrix:
10+
runner: [windows-latest, windows-11-arm]
11+
name: Test Packages ${{ matrix.runner }}
12+
runs-on: ${{ matrix.runner }}
1013

1114
steps:
1215
- name: Checkout Repository
13-
uses: actions/checkout@v4
16+
uses: actions/checkout@v6
1417

1518
- name: Setup .NET SDK
16-
uses: actions/setup-dotnet@v4
19+
uses: actions/setup-dotnet@v5
1720
with:
1821
dotnet-version: '8.0'
1922

PowerSync/PowerSync.Common/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# PowerSync.Common Changelog
22

3+
## 0.1.1 (unreleased)
4+
5+
- Support Windows ARM.
6+
- Update the PowerSync SQLite core extension to 0.4.12.
7+
38
## 0.1.0
49

510
- Beta release.

PowerSync/PowerSync.Common/Utils/PowerSyncPathResolver.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ private static string GetRuntimeIdentifier()
3838
}
3939
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
4040
{
41-
return "win-x64";
41+
if (RuntimeInformation.ProcessArchitecture == Architecture.Arm64)
42+
return "windows-arm64";
43+
else
44+
return "win-x64";
4245
}
4346
throw new PlatformNotSupportedException("Unsupported platform.");
4447
}

Tools/Setup/Setup.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/// </summary>
1111
public class PowerSyncSetup
1212
{
13-
private const string VERSION = "0.4.11";
13+
private const string VERSION = "0.4.12";
1414

1515
private const string GITHUB_BASE_URL = $"https://github.com/powersync-ja/powersync-sqlite-core/releases/download/v{VERSION}";
1616
private const string MAVEN_BASE_URL = $"https://repo1.maven.org/maven2/com/powersync/powersync-sqlite-core/{VERSION}";
@@ -59,7 +59,8 @@ private static Dictionary<string, RuntimeConfig> GetDesktopRuntimeConfigs()
5959
{ "osx-arm64", new RuntimeConfig("libpowersync_aarch64.macos.dylib", "libpowersync.dylib") },
6060
{ "linux-x64", new RuntimeConfig("libpowersync_x64.linux.so", "libpowersync.so") },
6161
{ "linux-arm64", new RuntimeConfig("libpowersync_aarch64.linux.so", "libpowersync.so") },
62-
{ "win-x64", new RuntimeConfig("powersync_x64.dll", "powersync.dll") }
62+
{ "win-x64", new RuntimeConfig("powersync_x64.dll", "powersync.dll") },
63+
{ "win-arm64", new RuntimeConfig("powersync_aarch64.dll", "powersync.dll") }
6364
};
6465
}
6566

0 commit comments

Comments
 (0)