Skip to content

Commit 1d1ce2b

Browse files
committed
Added arm64 linux support and x86_64 macos support.
1 parent a1a423e commit 1d1ce2b

File tree

7 files changed

+7
-2
lines changed

7 files changed

+7
-2
lines changed

.github/workflows/pylint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
python-version: ["3.8", "3.9", "3.10"]
11-
os: ["ubuntu-latest", "windows-latest"]
11+
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
1212
steps:
1313
- uses: actions/checkout@v3
1414
- name: Set up Python ${{ matrix.python-version }}

bink/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ def _load_library():
1414
else:
1515
library_name = 'libbink.so'
1616

17-
_filename = os.path.join(os.path.dirname(__file__), 'native/' + library_name)
17+
arch = "x86_64/"
18+
19+
if platform.machine() == "arm64":
20+
arch = "arm64/"
21+
22+
_filename = os.path.join(os.path.dirname(__file__), 'native/' + arch + library_name)
1823

1924
# If no bundled shared object is found, look for a system-wide installed one.
2025
if not os.path.exists(_filename):

bink/native/arm64/libbink.so

5.08 MB
Binary file not shown.

bink/native/x86_64/libbink.dylib

1.04 MB
Binary file not shown.

0 commit comments

Comments
 (0)