mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-19 19:15:26 +00:00
Some checks are pending
Generate Translation Template / Generate Translation Template (push) Waiting to run
Build RPCS3 / RPCS3 Linux ubuntu-24.04 gcc (push) Waiting to run
Build RPCS3 / RPCS3 Linux ubuntu-24.04-arm clang (push) Waiting to run
Build RPCS3 / RPCS3 Linux ubuntu-24.04 clang (push) Waiting to run
Build RPCS3 / RPCS3 Windows (push) Waiting to run
31 lines
1.2 KiB
Bash
Executable file
31 lines
1.2 KiB
Bash
Executable file
#!/bin/sh -ex
|
|
|
|
# First let's see print some info about our caches
|
|
"$(cygpath -u "$CCACHE_BIN_DIR")"/ccache.exe --show-stats -v
|
|
|
|
# BUILD_blablabla is Azure specific, so we wrap it for portability
|
|
ARTIFACT_DIR="$BUILD_ARTIFACTSTAGINGDIRECTORY"
|
|
|
|
# Remove unecessary files
|
|
rm -f ./bin/rpcs3.exp ./bin/rpcs3.lib ./bin/rpcs3.pdb ./bin/vc_redist.x64.exe
|
|
|
|
# Prepare compatibility and SDL database for packaging
|
|
mkdir ./bin/config
|
|
mkdir ./bin/config/input_configs
|
|
curl -fsSL 'https://raw.githubusercontent.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt' 1> ./bin/config/input_configs/gamecontrollerdb.txt
|
|
curl -fsSL 'https://rpcs3.net/compatibility?api=v1&export' | iconv -t UTF-8 1> ./bin/GuiConfigs/compat_database.dat
|
|
|
|
# Download SSL certificate (not needed with CURLSSLOPT_NATIVE_CA)
|
|
#curl -fsSL 'https://curl.haxx.se/ca/cacert.pem' 1> ./bin/cacert.pem
|
|
|
|
# Package artifacts
|
|
7z a -m0=LZMA2 -mx9 "$BUILD" ./bin/*
|
|
|
|
# Generate sha256 hashes
|
|
# Write to file for GitHub releases
|
|
sha256sum "$BUILD" | awk '{ print $1 }' | tee "$BUILD.sha256"
|
|
echo "$(cat "$BUILD.sha256");$(stat -c %s "$BUILD")B" > GitHubReleaseMessage.txt
|
|
|
|
# Move files to publishing directory
|
|
cp -- "$BUILD" "$ARTIFACT_DIR"
|
|
cp -- "$BUILD.sha256" "$ARTIFACT_DIR"
|