From 44ef14b143abaf0588724e1f7ba7a8b00d8fa50d Mon Sep 17 00:00:00 2001 From: richardg867 Date: Wed, 6 Apr 2022 18:21:25 -0300 Subject: [PATCH] Jenkins: Fix Discord Game SDK extraction on macOS --- .ci/build.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.ci/build.sh b/.ci/build.sh index 4e164bcdf..437f06b95 100644 --- a/.ci/build.sh +++ b/.ci/build.sh @@ -32,7 +32,11 @@ # are configured as NOPASSWD in /etc/sudoers if you're doing unattended builds # - For macOS builds: # - A standard MacPorts installation is required, with the following macports.conf settings: -# +# buildfromsource always +# build_arch x86_64 (or arm64) +# universal_archs (blank) +# ui_interactive no +# macosx_deployment_target 10.13 # - port is called through sudo to manage dependencies; make sure it is configured # as NOPASSWD in /etc/sudoers if you're doing unattended builds # @@ -551,7 +555,7 @@ then if [ $status -eq 0 ] then # Archive Discord Game SDK library. - unzip discord_game_sdk.zip "lib/$arch_discord/discord_game_sdk.dylib" -d "archive_tmp/"*".app/Contents/Frameworks" + unzip -j discord_game_sdk.zip "lib/$arch_discord/discord_game_sdk.dylib" -d "archive_tmp/"*".app/Contents/Frameworks" [ ! -e "archive_tmp/"*".app/Contents/Frameworks/discord_game_sdk.dylib" ] && echo [!] No Discord Game SDK for architecture [$arch_discord] # Sign app bundle.