File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6363 name : Windows-x86_64
6464 path : build/*.zip
6565 macos :
66- name : macOS
67- runs-on : macos-26
66+ name : macOS (ARM64, x86_64)
67+ runs-on : macos-latest
6868 steps :
6969 - uses : actions/checkout@v4
7070 - name : Compile
Original file line number Diff line number Diff line change @@ -443,6 +443,32 @@ function action()
443443action " ${BUNDLEBINDIR} /${EXECUTABLE_NAME} " " ${IOQ3_CLIENT_ARCHS} "
444444action " ${BUNDLEBINDIR} /${DEDICATED_NAME} " " ${IOQ3_SERVER_ARCHS} "
445445
446+ #
447+ # don't create unnecessary symlinks and multi-arch libraries
448+ #
449+ # the default zip behavior is to follow symlinks, resulting is duplicating
450+ # the multiarch library for each file name
451+ #
452+ MERGE_LIBS=0
453+
454+ if [ $MERGE_LIBS -eq 0 ]; then
455+
456+ # renderers
457+ cp " ${IOQ3_RENDERER_GL1_ARCHS} " " ${BUNDLEBINDIR} /"
458+ cp " ${IOQ3_RENDERER_GL2_ARCHS} " " ${BUNDLEBINDIR} /"
459+
460+ # game
461+ cp " ${IOQ3_CGAME_ARCHS} " " ${BUNDLEBINDIR} /${BASEDIR} /"
462+ cp " ${IOQ3_GAME_ARCHS} " " ${BUNDLEBINDIR} /${BASEDIR} /"
463+ cp " ${IOQ3_UI_ARCHS} " " ${BUNDLEBINDIR} /${BASEDIR} /"
464+
465+ # missionpack
466+ cp " ${IOQ3_MP_CGAME_ARCHS} " " ${BUNDLEBINDIR} /${MISSIONPACKDIR} /"
467+ cp " ${IOQ3_MP_GAME_ARCHS} " " ${BUNDLEBINDIR} /${MISSIONPACKDIR} /"
468+ cp " ${IOQ3_MP_UI_ARCHS} " " ${BUNDLEBINDIR} /${MISSIONPACKDIR} /"
469+
470+ else
471+
446472# renderers
447473action " ${BUNDLEBINDIR} /${RENDERER_OPENGL1_NAME} " " ${IOQ3_RENDERER_GL1_ARCHS} "
448474action " ${BUNDLEBINDIR} /${RENDERER_OPENGL2_NAME} " " ${IOQ3_RENDERER_GL2_ARCHS} "
@@ -464,3 +490,5 @@ action "${BUNDLEBINDIR}/${MISSIONPACKDIR}/${UI_NAME}" "${IOQ3_MP_UI_ARCHS}"
464490symlinkArch " ${CGAME} " " ${CGAME} " " " " ${BUNDLEBINDIR} /${MISSIONPACKDIR} "
465491symlinkArch " ${GAME} " " ${GAME} " " " " ${BUNDLEBINDIR} /${MISSIONPACKDIR} "
466492symlinkArch " ${UI} " " ${UI} " " " " ${BUNDLEBINDIR} /${MISSIONPACKDIR} "
493+
494+ fi
You can’t perform that action at this time.
0 commit comments