Skip to content

Commit 13f6d6b

Browse files
nisimondretr0h
authored andcommitted
chore: build Universal binaries for OSX
It's twice the size, but it makes distribution SO much simpler.
1 parent 6ee3884 commit 13f6d6b

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.goreleaser.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,5 @@ brews:
6565
- name: go
6666
type: optional
6767
- name: git
68+
universal_binaries:
69+
- replace: true

python/dist2wheel.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -89,18 +89,11 @@ def create_all(self):
8989
def _matrix(self):
9090
return {
9191
"darwin": {
92-
"amd64": {
93-
"arch": "x86_64",
94-
"platform": "macosx_10_15_x86_64",
95-
"tags": [
96-
f"{self.py_tag}-{self.abi_tag}-macosx_10_15_x86_64",
97-
],
98-
},
99-
"arm64": {
100-
"arch": "arm64",
101-
"platform": "macosx_11_0_arm64",
92+
"all": {
93+
"arch": "all",
94+
"platform": "macosx_10_15_universal2",
10295
"tags": [
103-
f"{self.py_tag}-{self.abi_tag}-macosx_11_arm64",
96+
f"{self.py_tag}-{self.abi_tag}-macosx_10_15_universal2",
10497
],
10598
},
10699
},

0 commit comments

Comments
 (0)