Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
congzhangzh committed Nov 2, 2024
1 parent e9ff184 commit 75cf1dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ def _get_lib_name():
system = platform.system().lower()
machine = platform.machine().lower()

# ref: https://github.com/webview/webview_deno/releases/tag/0.8.1/
if system == "windows":
if machine == "amd64" or machine == "x86_64":
return "webview.x86_64.dylib"
return "webview.dll"
elif machine == "arm64":
return "libwebview.aarch64.dylib"
raise Exception("arm64 is not supported on Windows")
elif system == "darwin":
if machine == "arm64":
return "libwebview.aarch64.dylib"
Expand Down

0 comments on commit 75cf1dc

Please sign in to comment.