upload.sh 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/bash -ex
  2. . .ci/scripts/common/pre-upload.sh
  3. APPIMAGE_NAME="yuzu-${GITDATE}-${GITREV}.AppImage"
  4. REV_NAME="yuzu-linux-${GITDATE}-${GITREV}"
  5. ARCHIVE_NAME="${REV_NAME}.tar.xz"
  6. COMPRESSION_FLAGS="-cJvf"
  7. if [ "${RELEASE_NAME}" = "mainline" ]; then
  8. DIR_NAME="${REV_NAME}"
  9. else
  10. DIR_NAME="${REV_NAME}_${RELEASE_NAME}"
  11. fi
  12. mkdir "$DIR_NAME"
  13. cp build/bin/yuzu-cmd "$DIR_NAME"
  14. cp build/bin/yuzu "$DIR_NAME"
  15. # Build an AppImage
  16. cd build
  17. wget -nc https://github.com/yuzu-emu/ext-linux-bin/raw/main/appimage/appimagetool-x86_64.AppImage
  18. chmod 755 appimagetool-x86_64.AppImage
  19. if [ "${RELEASE_NAME}" = "mainline" ]; then
  20. # Generate update information if releasing to mainline
  21. ./appimagetool-x86_64.AppImage -u "gh-releases-zsync|yuzu-emu|yuzu-${RELEASE_NAME}|latest|yuzu-*.AppImage.zsync" AppDir "${APPIMAGE_NAME}"
  22. else
  23. ./appimagetool-x86_64.AppImage AppDir "${APPIMAGE_NAME}"
  24. fi
  25. cd ..
  26. # Copy the AppImage and update info to the artifacts directory and avoid compressing it
  27. cp "build/${APPIMAGE_NAME}" "${ARTIFACTS_DIR}/"
  28. if [ -f "build/${APPIMAGE_NAME}.zsync" ]; then
  29. cp "build/${APPIMAGE_NAME}.zsync" "${ARTIFACTS_DIR}/"
  30. fi
  31. . .ci/scripts/common/post-upload.sh