Skip to content

Commit

Permalink
build(mac): don't copy codes around and skip code signing
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Sep 20, 2023
1 parent 4b1db57 commit 195c89c
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions build-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
# build-mac.sh

QT_BREW_PATH=$(brew --prefix qt@6)
CMAKE_FLAGS="-DQT_DIR=${QT_BREW_PATH}/lib/cmake/Qt5 -DENABLE_NOGUI=false"

PLAYBACK_CODES_PATH="./Data/PlaybackGeckoCodes/"

DATA_SYS_PATH="./Data/Sys/"
BINARY_PATH="./build/Binaries/Slippi_Dolphin.app/Contents/Resources/"
CMAKE_FLAGS="-DQT_DIR=${QT_BREW_PATH}/lib/cmake/Qt6 -DENABLE_NOGUI=false"

export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/lib:/usr/lib/

Expand All @@ -20,30 +15,9 @@ else
CMAKE_FLAGS+=" -DSLIPPI_PLAYBACK=false"
fi

if [[ -z "${CERTIFICATE_MACOS_APPLICATION}" ]]
then
echo "Building without code signing"
else
echo "Building with code signing"
CMAKE_FLAGS+=' -DMACOS_CODE_SIGNING="ON"'
fi

# Move into the build directory, run CMake, and compile the project
mkdir -p build
pushd build
cmake ${CMAKE_FLAGS} ..
cmake --build . --target dolphin-emu -- -j$(nproc)
popd

# Copy the Sys folder in
echo "Copying Sys files into the bundle"
cp -Rfn "${DATA_SYS_PATH}" "${BINARY_PATH}"

# Copy playback specific codes if needed
if [ "$1" == "playback" ]
then
# Update Sys dir with playback codes
echo "Copying playback gecko codes into the bundle"
rm -rf "${BINARY_PATH}/Sys/GameSettings" # Delete netplay codes
cp -r "${PLAYBACK_CODES_PATH}/." "${BINARY_PATH}/Sys/GameSettings/"
fi

0 comments on commit 195c89c

Please sign in to comment.