mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-09-05 16:53:23 +00:00
Delete .ci/scripts/linux directory
This commit is contained in:
parent
ff9adc3550
commit
ca5cf617ed
|
@ -1,79 +0,0 @@
|
||||||
#!/bin/bash -ex
|
|
||||||
|
|
||||||
# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
|
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
||||||
|
|
||||||
# Exit on error, rather than continuing with the rest of the script.
|
|
||||||
set -e
|
|
||||||
|
|
||||||
ccache -s
|
|
||||||
|
|
||||||
mkdir build || true && cd build
|
|
||||||
cmake .. \
|
|
||||||
-DBoost_USE_STATIC_LIBS=ON \
|
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
||||||
-DCMAKE_CXX_FLAGS="-march=x86-64-v2" \
|
|
||||||
-DCMAKE_CXX_COMPILER=/usr/lib/ccache/g++ \
|
|
||||||
-DCMAKE_C_COMPILER=/usr/lib/ccache/gcc \
|
|
||||||
-DCMAKE_INSTALL_PREFIX="/usr" \
|
|
||||||
-DDISPLAY_VERSION=$1 \
|
|
||||||
-DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON \
|
|
||||||
-DENABLE_QT_TRANSLATION=ON \
|
|
||||||
-DUSE_DISCORD_PRESENCE=ON \
|
|
||||||
-DYUZU_ENABLE_COMPATIBILITY_REPORTING=${ENABLE_COMPATIBILITY_REPORTING:-"OFF"} \
|
|
||||||
-DYUZU_USE_BUNDLED_FFMPEG=ON \
|
|
||||||
-DYUZU_ENABLE_LTO=ON \
|
|
||||||
-DYUZU_CRASH_DUMPS=ON \
|
|
||||||
-GNinja
|
|
||||||
|
|
||||||
ninja
|
|
||||||
|
|
||||||
ccache -s
|
|
||||||
|
|
||||||
ctest -VV -C Release
|
|
||||||
|
|
||||||
# Separate debug symbols from specified executables
|
|
||||||
for EXE in yuzu; do
|
|
||||||
EXE_PATH="bin/$EXE"
|
|
||||||
# Copy debug symbols out
|
|
||||||
objcopy --only-keep-debug $EXE_PATH $EXE_PATH.debug
|
|
||||||
# Add debug link and strip debug symbols
|
|
||||||
objcopy -g --add-gnu-debuglink=$EXE_PATH.debug $EXE_PATH $EXE_PATH.out
|
|
||||||
# Overwrite original with stripped copy
|
|
||||||
mv $EXE_PATH.out $EXE_PATH
|
|
||||||
done
|
|
||||||
# Strip debug symbols from all executables
|
|
||||||
find bin/ -type f -not -regex '.*.debug' -exec strip -g {} ';'
|
|
||||||
|
|
||||||
DESTDIR="$PWD/AppDir" ninja install
|
|
||||||
rm -vf AppDir/usr/bin/yuzu-cmd AppDir/usr/bin/yuzu-tester
|
|
||||||
|
|
||||||
# Download tools needed to build an AppImage
|
|
||||||
wget -nc https://raw.githubusercontent.com/yuzu-emu/ext-linux-bin/main/appimage/deploy-linux.sh
|
|
||||||
wget -nc https://raw.githubusercontent.com/yuzu-emu/AppImageKit-checkrt/old/AppRun.sh
|
|
||||||
wget -nc https://github.com/yuzu-emu/ext-linux-bin/raw/main/appimage/exec-x86_64.so
|
|
||||||
# Set executable bit
|
|
||||||
chmod 755 \
|
|
||||||
deploy-linux.sh \
|
|
||||||
AppRun.sh \
|
|
||||||
exec-x86_64.so \
|
|
||||||
|
|
||||||
# Workaround for https://github.com/AppImage/AppImageKit/issues/828
|
|
||||||
export APPIMAGE_EXTRACT_AND_RUN=1
|
|
||||||
|
|
||||||
mkdir -p AppDir/usr/optional
|
|
||||||
mkdir -p AppDir/usr/optional/libstdc++
|
|
||||||
mkdir -p AppDir/usr/optional/libgcc_s
|
|
||||||
|
|
||||||
# Deploy yuzu's needed dependencies
|
|
||||||
DEPLOY_QT=1 ./deploy-linux.sh AppDir/usr/bin/yuzu AppDir
|
|
||||||
|
|
||||||
# Workaround for libQt5MultimediaGstTools indirectly requiring libwayland-client and breaking Vulkan usage on end-user systems
|
|
||||||
find AppDir -type f -regex '.*libwayland-client\.so.*' -delete -print
|
|
||||||
|
|
||||||
# Workaround for building yuzu with GCC 10 but also trying to distribute it to Ubuntu 18.04 et al.
|
|
||||||
# See https://github.com/darealshinji/AppImageKit-checkrt
|
|
||||||
cp exec-x86_64.so AppDir/usr/optional/exec.so
|
|
||||||
cp AppRun.sh AppDir/AppRun
|
|
||||||
cp --dereference /usr/lib/x86_64-linux-gnu/libstdc++.so.6 AppDir/usr/optional/libstdc++/libstdc++.so.6
|
|
||||||
cp --dereference /lib/x86_64-linux-gnu/libgcc_s.so.1 AppDir/usr/optional/libgcc_s/libgcc_s.so.1
|
|
|
@ -1,16 +0,0 @@
|
||||||
#!/bin/bash -ex
|
|
||||||
|
|
||||||
# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
|
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
||||||
|
|
||||||
mkdir -p "ccache" || true
|
|
||||||
chmod a+x ./.ci/scripts/linux/docker.sh
|
|
||||||
# the UID for the container yuzu user is 1027
|
|
||||||
sudo chown -R 1027 ./
|
|
||||||
|
|
||||||
# The environment variables listed below:
|
|
||||||
# AZURECIREPO TITLEBARFORMATIDLE TITLEBARFORMATRUNNING DISPLAYVERSION
|
|
||||||
# are requested in src/common/CMakeLists.txt and appear to be provided somewhere in Azure DevOps
|
|
||||||
|
|
||||||
docker run -e AZURECIREPO -e TITLEBARFORMATIDLE -e TITLEBARFORMATRUNNING -e DISPLAYVERSION -e ENABLE_COMPATIBILITY_REPORTING -e CCACHE_DIR=/yuzu/ccache -v "$(pwd):/yuzu" -w /yuzu yuzuemu/build-environments:linux-fresh /bin/bash /yuzu/.ci/scripts/linux/docker.sh "$1"
|
|
||||||
sudo chown -R $UID ./
|
|
|
@ -1,67 +0,0 @@
|
||||||
#!/bin/bash -ex
|
|
||||||
|
|
||||||
# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
|
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
||||||
|
|
||||||
. .ci/scripts/common/pre-upload.sh
|
|
||||||
|
|
||||||
APPIMAGE_NAME="yuzu-${RELEASE_NAME}-${GITDATE}-${GITREV}.AppImage"
|
|
||||||
BASE_NAME="yuzu-linux"
|
|
||||||
REV_NAME="${BASE_NAME}-${GITDATE}-${GITREV}"
|
|
||||||
ARCHIVE_NAME="${REV_NAME}.tar.xz"
|
|
||||||
COMPRESSION_FLAGS="-cJvf"
|
|
||||||
|
|
||||||
if [ "${RELEASE_NAME}" = "mainline" ] || [ "${RELEASE_NAME}" = "early-access" ]; then
|
|
||||||
DIR_NAME="${BASE_NAME}-${RELEASE_NAME}"
|
|
||||||
else
|
|
||||||
DIR_NAME="${REV_NAME}-${RELEASE_NAME}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir "$DIR_NAME"
|
|
||||||
|
|
||||||
cp build/bin/yuzu-cmd "$DIR_NAME"
|
|
||||||
if [ "${RELEASE_NAME}" != "early-access" ] && [ "${RELEASE_NAME}" != "mainline" ]; then
|
|
||||||
cp build/bin/yuzu "$DIR_NAME"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Build an AppImage
|
|
||||||
cd build
|
|
||||||
|
|
||||||
wget -nc https://github.com/yuzu-emu/ext-linux-bin/raw/main/appimage/appimagetool-x86_64.AppImage
|
|
||||||
chmod 755 appimagetool-x86_64.AppImage
|
|
||||||
|
|
||||||
# if FUSE is not available, then fallback to extract and run
|
|
||||||
if ! ./appimagetool-x86_64.AppImage --version; then
|
|
||||||
export APPIMAGE_EXTRACT_AND_RUN=1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Don't let AppImageLauncher ask to integrate EA
|
|
||||||
if [ "${RELEASE_NAME}" = "mainline" ] || [ "${RELEASE_NAME}" = "early-access" ]; then
|
|
||||||
echo "X-AppImage-Integrate=false" >> AppDir/org.yuzu_emu.yuzu.desktop
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${RELEASE_NAME}" = "mainline" ]; then
|
|
||||||
# Generate update information if releasing to mainline
|
|
||||||
./appimagetool-x86_64.AppImage -u "gh-releases-zsync|yuzu-emu|yuzu-${RELEASE_NAME}|latest|yuzu-*.AppImage.zsync" AppDir "${APPIMAGE_NAME}"
|
|
||||||
else
|
|
||||||
./appimagetool-x86_64.AppImage AppDir "${APPIMAGE_NAME}"
|
|
||||||
fi
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
# Copy the AppImage and update info to the artifacts directory and avoid compressing it
|
|
||||||
cp "build/${APPIMAGE_NAME}" "${ARTIFACTS_DIR}/"
|
|
||||||
if [ -f "build/${APPIMAGE_NAME}.zsync" ]; then
|
|
||||||
cp "build/${APPIMAGE_NAME}.zsync" "${ARTIFACTS_DIR}/"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Copy the AppImage to the general release directory and remove git revision info
|
|
||||||
if [ "${RELEASE_NAME}" = "mainline" ] || [ "${RELEASE_NAME}" = "early-access" ]; then
|
|
||||||
cp "build/${APPIMAGE_NAME}" "${DIR_NAME}/yuzu-${RELEASE_NAME}.AppImage"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Copy debug symbols to artifacts
|
|
||||||
cd build/bin
|
|
||||||
tar $COMPRESSION_FLAGS "${ARTIFACTS_DIR}/${REV_NAME}-debug.tar.xz" *.debug
|
|
||||||
cd -
|
|
||||||
|
|
||||||
. .ci/scripts/common/post-upload.sh
|
|
Loading…
Reference in a new issue