File tree 3 files changed +9
-1
lines changed
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -213,5 +213,5 @@ jobs:
213
213
with :
214
214
upload_url : ${{ needs.create_release.outputs.upload_url }}
215
215
asset_path : ./build/Release/node-raylib.node
216
- asset_name : node-raylib-darwin-x64 .node
216
+ asset_name : node-raylib-darwin.node
217
217
asset_content_type : application/octet-stream
Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ endif()
22
22
set (CMAKE_CXX_FLAGS_DEBUG "-g" )
23
23
set (CMAKE_CXX_FLAGS_RELEASE "-O3" )
24
24
25
+ # single build for both Mac arches
26
+ set (CMAKE_OSX_ARCHITECTURES arm64 x86_64)
27
+
25
28
# version doesn't seem to pick correct version
26
29
#find_package(raylib 4.5 QUIET EXACT)
27
30
if (NOT raylib_FOUND)
Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ async function main () {
33
33
34
34
let url = `https://github.com/RobLoach/node-raylib/releases/download/v${ process . env . npm_package_version } /node-raylib-${ process . platform } -${ process . arch } .node`
35
35
36
+ // we use a single build for both platforms on Mac
37
+ if ( process . platform === 'darwin' ) {
38
+ url = `https://github.com/RobLoach/node-raylib/releases/download/v${ process . env . npm_package_version } /node-raylib-darwin.node`
39
+ }
40
+
36
41
console . log ( `Checking for ${ url } ` )
37
42
38
43
try {
You can’t perform that action at this time.
0 commit comments