Skip to content

Commit 3233b12

Browse files
authored
Support Mac computers with Apple silicon (#48)
* Update webview.yaml * add mac arm64 support
1 parent 074e6bc commit 3233b12

File tree

5 files changed

+26
-6
lines changed

5 files changed

+26
-6
lines changed

.github/workflows/webview.yaml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: WebviewNative
22
on:
3-
push:
4-
branches: [feature-nativeUpdate]
3+
workflow_dispatch:
54

65
jobs:
76
build-linux:
@@ -23,7 +22,7 @@ jobs:
2322
name: "webview-linux64"
2423
path: ./build
2524

26-
build-macos:
25+
build-macos-arm64:
2726
runs-on: macos-latest
2827
steps:
2928
- uses: actions/checkout@v2
@@ -37,7 +36,24 @@ jobs:
3736
- name: Upload artifact
3837
uses: actions/upload-artifact@v4
3938
with:
40-
name: "webview-mac64"
39+
name: "webview-mac-arm64"
40+
path: ./build
41+
42+
build-macos-x64:
43+
runs-on: macos-13
44+
steps:
45+
- uses: actions/checkout@v2
46+
- name: Get CMake
47+
uses: lukka/get-cmake@latest
48+
- name: Run CMake
49+
uses: lukka/run-cmake@v10
50+
with:
51+
configurePreset: 'ninja'
52+
buildPreset: 'ninja'
53+
- name: Upload artifact
54+
uses: actions/upload-artifact@v4
55+
with:
56+
name: "webview-mac-x64"
4157
path: ./build
4258

4359
build-windows:

libs/libwebview-arm64.dylib

466 KB
Binary file not shown.

libs/libwebview-x64.dylib

456 KB
Binary file not shown.

libs/libwebview.dylib

-480 KB
Binary file not shown.

src/SharpWebview/SharpWebview.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<Owners>Gerrit 'Geaz' Gazic</Owners>
99
<Description>C# bindings for zserge/webview - Batteries included</Description>
1010
<PackageId>SharpWebview</PackageId>
11-
<PackageVersion>0.11.1</PackageVersion>
11+
<PackageVersion>0.11.2</PackageVersion>
1212
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1313
<PackageProjectUrl>https://github.com/webview/webview_csharp</PackageProjectUrl>
1414
</PropertyGroup>
@@ -22,10 +22,14 @@
2222
<PackagePath>runtimes\win-x64\native\WebView2Loader.dll</PackagePath>
2323
<Pack>true</Pack>
2424
</Content>
25-
<Content Include="..\..\libs\libwebview.dylib">
25+
<Content Include="..\..\libs\libwebview-x64.dylib">
2626
<PackagePath>runtimes\osx-x64\native\libwebview.dylib</PackagePath>
2727
<Pack>true</Pack>
2828
</Content>
29+
<Content Include="..\..\libs\libwebview-arm64.dylib">
30+
<PackagePath>runtimes\osx-arm64\native\libwebview.dylib</PackagePath>
31+
<Pack>true</Pack>
32+
</Content>
2933
<Content Include="..\..\libs\libwebview.so">
3034
<PackagePath>runtimes\linux-x64\native\libwebview.so</PackagePath>
3135
<Pack>true</Pack>

0 commit comments

Comments
 (0)