CI: Use AppImage generation script for Linux build

This commit is contained in:
Albert Liu 2020-04-13 21:36:39 -07:00
parent a2a9bd16fa
commit ccddb4456b

View file

@ -54,26 +54,24 @@ build_script:
ninja ninja
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage ../appimage/generate-appimages.sh $(pwd)
wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage if [ $? -eq 0 ]; then
chmod +x linuxdeploy-x86_64.AppImage mv duckstation-qt-x64.AppImage duckstation-qt-x64-release.AppImage
chmod +x linuxdeploy-plugin-qt-x86_64.AppImage mv duckstation-sdl-x64.AppImage duckstation-sdl-x64-release.AppImage
cp ../appimage/duckstation-icon.png ../appimage/duckstation-qt.png
cp ../appimage/duckstation-icon.png ../appimage/duckstation-sdl.png
./linuxdeploy-x86_64.AppImage --appdir=./AppDir-duckstation-qt --executable=./src/duckstation-qt/duckstation-qt --create-desktop-file --icon-file=../appimage/duckstation-qt.png --plugin=qt --output=appimage
./linuxdeploy-x86_64.AppImage --appdir=./AppDir-duckstation-sdl --executable=./src/duckstation-sdl/duckstation-sdl --create-desktop-file --icon-file=../appimage/duckstation-sdl.png --output=appimage
7za a -r duckstation-linux-x64-release.7z duckstation-*.AppImage 7za a -r duckstation-linux-x64-release.7z duckstation-*.AppImage
appveyor PushArtifact duckstation-linux-x64-release.7z appveyor PushArtifact duckstation-linux-x64-release.7z
else
echo "Failed to create AppImages, no AppImage artifact will be pushed"
fi
elif [ "$APPVEYOR_BUILD_WORKER_IMAGE" == "macOS" ]; then elif [ "$APPVEYOR_BUILD_WORKER_IMAGE" == "macOS" ]; then
mkdir build-release mkdir build-release