|
|
@ -5,21 +5,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
. .ci/scripts/common/pre-upload.sh
|
|
|
|
. .ci/scripts/common/pre-upload.sh
|
|
|
|
|
|
|
|
|
|
|
|
APPIMAGE_NAME="yuzu-${GITDATE}-${GITREV}.AppImage"
|
|
|
|
APPIMAGE_NAME="yuzu-${RELEASE_NAME}-${GITDATE}-${GITREV}.AppImage"
|
|
|
|
REV_NAME="yuzu-linux-${GITDATE}-${GITREV}"
|
|
|
|
BASE_NAME="yuzu-linux"
|
|
|
|
|
|
|
|
REV_NAME="${BASE_NAME}-${GITDATE}-${GITREV}"
|
|
|
|
ARCHIVE_NAME="${REV_NAME}.tar.xz"
|
|
|
|
ARCHIVE_NAME="${REV_NAME}.tar.xz"
|
|
|
|
COMPRESSION_FLAGS="-cJvf"
|
|
|
|
COMPRESSION_FLAGS="-cJvf"
|
|
|
|
|
|
|
|
|
|
|
|
if [ "${RELEASE_NAME}" = "mainline" ]; then
|
|
|
|
if [ "${RELEASE_NAME}" = "mainline" ] || [ "${RELEASE_NAME}" = "early-access" ]; then
|
|
|
|
DIR_NAME="${REV_NAME}"
|
|
|
|
DIR_NAME="${BASE_NAME}-${RELEASE_NAME}"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
DIR_NAME="${REV_NAME}_${RELEASE_NAME}"
|
|
|
|
DIR_NAME="${REV_NAME}-${RELEASE_NAME}"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
mkdir "$DIR_NAME"
|
|
|
|
mkdir "$DIR_NAME"
|
|
|
|
|
|
|
|
|
|
|
|
cp build/bin/yuzu-cmd "$DIR_NAME"
|
|
|
|
cp build/bin/yuzu-cmd "$DIR_NAME"
|
|
|
|
cp build/bin/yuzu "$DIR_NAME"
|
|
|
|
if [ "${RELEASE_NAME}" != "early-access" ] && [ "${RELEASE_NAME}" != "mainline" ]; then
|
|
|
|
|
|
|
|
cp build/bin/yuzu "$DIR_NAME"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Build an AppImage
|
|
|
|
# Build an AppImage
|
|
|
|
cd build
|
|
|
|
cd build
|
|
|
@ -32,6 +35,11 @@ if ! ./appimagetool-x86_64.AppImage --version; then
|
|
|
|
export APPIMAGE_EXTRACT_AND_RUN=1
|
|
|
|
export APPIMAGE_EXTRACT_AND_RUN=1
|
|
|
|
fi
|
|
|
|
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
|
|
|
|
if [ "${RELEASE_NAME}" = "mainline" ]; then
|
|
|
|
# Generate update information if releasing to mainline
|
|
|
|
# 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}"
|
|
|
|
./appimagetool-x86_64.AppImage -u "gh-releases-zsync|yuzu-emu|yuzu-${RELEASE_NAME}|latest|yuzu-*.AppImage.zsync" AppDir "${APPIMAGE_NAME}"
|
|
|
@ -46,4 +54,9 @@ if [ -f "build/${APPIMAGE_NAME}.zsync" ]; then
|
|
|
|
cp "build/${APPIMAGE_NAME}.zsync" "${ARTIFACTS_DIR}/"
|
|
|
|
cp "build/${APPIMAGE_NAME}.zsync" "${ARTIFACTS_DIR}/"
|
|
|
|
fi
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
. .ci/scripts/common/post-upload.sh
|
|
|
|
. .ci/scripts/common/post-upload.sh
|
|
|
|