mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-12-06 07:12:28 +01:00
Some checks are pending
Build RPCS3 / RPCS3 Linux ${{ matrix.os }} ${{ matrix.compiler }} (/rpcs3/.ci/build-linux-aarch64.sh, gcc, rpcs3/rpcs3-ci-jammy-aarch64:1.7, ubuntu-24.04-arm) (push) Waiting to run
Build RPCS3 / RPCS3 Linux ${{ matrix.os }} ${{ matrix.compiler }} (/rpcs3/.ci/build-linux.sh, gcc, rpcs3/rpcs3-ci-jammy:1.7, ubuntu-24.04) (push) Waiting to run
Build RPCS3 / RPCS3 Linux ${{ matrix.os }} ${{ matrix.compiler }} (a1d35836e8d45bfc6f63c26f0a3e5d46ef622fe1, rpcs3/rpcs3-binaries-linux-arm64, /rpcs3/.ci/build-linux-aarch64.sh, clang, rpcs3/rpcs3-ci-jammy-aarch64:1.7, ubuntu-24.04-arm) (push) Waiting to run
Build RPCS3 / RPCS3 Linux ${{ matrix.os }} ${{ matrix.compiler }} (d812f1254a1157c80fd402f94446310560f54e5f, rpcs3/rpcs3-binaries-linux, /rpcs3/.ci/build-linux.sh, clang, rpcs3/rpcs3-ci-jammy:1.7, ubuntu-24.04) (push) Waiting to run
Build RPCS3 / RPCS3 Mac ${{ matrix.name }} (51ae32f468089a8169aaf1567de355ff4a3e0842, rpcs3/rpcs3-binaries-mac, .ci/build-mac.sh, Intel) (push) Waiting to run
Build RPCS3 / RPCS3 Mac ${{ matrix.name }} (8e21bdbc40711a3fccd18fbf17b742348b0f4281, rpcs3/rpcs3-binaries-mac-arm64, .ci/build-mac-arm64.sh, Apple Silicon) (push) Waiting to run
Build RPCS3 / RPCS3 Windows (push) Waiting to run
Build RPCS3 / RPCS3 Windows Clang (win64, clang, clang64) (push) Waiting to run
Build RPCS3 / RPCS3 FreeBSD (push) Waiting to run
77 lines
3.1 KiB
Bash
Executable file
77 lines
3.1 KiB
Bash
Executable file
#!/bin/sh -ex
|
|
|
|
# shellcheck disable=SC2086
|
|
cd build || exit 1
|
|
|
|
# Gather explicit version number and number of commits
|
|
COMM_TAG=$(awk '/version{.*}/ { printf("%d.%d.%d", $5, $6, $7) }' ../rpcs3/rpcs3_version.cpp)
|
|
COMM_COUNT=$(git rev-list --count HEAD)
|
|
COMM_HASH=$(git rev-parse --short=8 HEAD)
|
|
|
|
AVVER="${COMM_TAG}-${COMM_COUNT}"
|
|
|
|
# AVVER is used for GitHub releases, it is the version number.
|
|
echo "AVVER=$AVVER" >> ../.ci/ci-vars.env
|
|
|
|
cd bin
|
|
mkdir "rpcs3.app/Contents/lib/" || true
|
|
|
|
cp "$(realpath /opt/homebrew/opt/llvm@$LLVM_COMPILER_VER/lib/c++/libc++abi.1.0.dylib)" "rpcs3.app/Contents/Frameworks/libc++abi.1.dylib"
|
|
cp "$(realpath /opt/homebrew/opt/gcc/lib/gcc/current/libgcc_s.1.1.dylib)" "rpcs3.app/Contents/Frameworks/libgcc_s.1.1.dylib"
|
|
cp "$(realpath /opt/homebrew/lib/libsharpyuv.0.dylib)" "rpcs3.app/Contents/lib/libsharpyuv.0.dylib"
|
|
cp "$(realpath /opt/homebrew/lib/libintl.8.dylib)" "rpcs3.app/Contents/lib/libintl.8.dylib"
|
|
|
|
rm -rf "rpcs3.app/Contents/Frameworks/QtPdf.framework" \
|
|
"rpcs3.app/Contents/Frameworks/QtQml.framework" \
|
|
"rpcs3.app/Contents/Frameworks/QtQmlModels.framework" \
|
|
"rpcs3.app/Contents/Frameworks/QtQuick.framework" \
|
|
"rpcs3.app/Contents/Frameworks/QtVirtualKeyboard.framework" \
|
|
"rpcs3.app/Contents/Plugins/platforminputcontexts" \
|
|
"rpcs3.app/Contents/Plugins/virtualkeyboard" \
|
|
"rpcs3.app/Contents/Resources/git"
|
|
|
|
../../.ci/optimize-mac.sh rpcs3.app
|
|
|
|
# Download translations
|
|
mkdir -p "rpcs3.app/Contents/translations"
|
|
ZIP_URL=$(curl -fsSL "https://api.github.com/repos/RPCS3/rpcs3_translations/releases/latest" \
|
|
| grep "browser_download_url" \
|
|
| grep "RPCS3-languages.zip" \
|
|
| cut -d '"' -f 4)
|
|
if [ -z "$ZIP_URL" ]; then
|
|
echo "Failed to find RPCS3-languages.zip in the latest release. Continuing without translations."
|
|
else
|
|
echo "Downloading translations from: $ZIP_URL"
|
|
curl -L -o translations.zip "$ZIP_URL" || {
|
|
echo "Failed to download translations.zip. Continuing without translations."
|
|
exit 0
|
|
}
|
|
unzip -o translations.zip -d "rpcs3.app/Contents/translations" >/dev/null 2>&1 || \
|
|
echo "Failed to extract translations.zip. Continuing without translations."
|
|
rm -f translations.zip
|
|
fi
|
|
|
|
# Hack
|
|
install_name_tool -delete_rpath /opt/homebrew/lib RPCS3.app/Contents/MacOS/rpcs3 || echo "Hack for deleting rpath /opt/homebrew/lib not needed"
|
|
install_name_tool -delete_rpath /opt/homebrew/opt/llvm@$LLVM_COMPILER_VER/lib RPCS3.app/Contents/MacOS/rpcs3 || echo "Hack for deleting rpath /opt/homebrew/opt/llvm@$LLVM_COMPILER_VER/lib not needed"
|
|
|
|
# Need to do this rename hack due to case insensitive filesystem
|
|
mv rpcs3.app RPCS3_.app
|
|
mv RPCS3_.app RPCS3.app
|
|
|
|
# NOTE: "--deep" is deprecated
|
|
codesign --deep -fs - RPCS3.app
|
|
|
|
echo "[InternetShortcut]" > Quickstart.url
|
|
echo "URL=https://rpcs3.net/quickstart" >> Quickstart.url
|
|
echo "IconIndex=0" >> Quickstart.url
|
|
|
|
ARCHIVE_FILEPATH="$BUILD_ARTIFACTSTAGINGDIRECTORY/rpcs3-v${COMM_TAG}-${COMM_COUNT}-${COMM_HASH}_macos_arm64.7z"
|
|
"/opt/homebrew/bin/7z" a -mx9 "$ARCHIVE_FILEPATH" RPCS3.app Quickstart.url
|
|
FILESIZE=$(stat -f %z "$ARCHIVE_FILEPATH")
|
|
SHA256SUM=$(shasum -a 256 "$ARCHIVE_FILEPATH" | awk '{ print $1 }')
|
|
|
|
cd ..
|
|
echo "${SHA256SUM};${FILESIZE}B" > "$RELEASE_MESSAGE"
|
|
cd bin
|