From 1ca55bb07811896f3a475ba2d189ede21ea4a95a Mon Sep 17 00:00:00 2001 From: Damglador Date: Sun, 29 Jun 2025 02:44:46 +0200 Subject: [PATCH] Attempt at Github automation --- .github/workflows/release.yml | 2 +- packaging/CMakeLists.txt | 2 ++ packaging/linux/CMakeLists.txt | 2 +- packaging/linux/appimage/CMakeLists.txt | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 packaging/linux/appimage/CMakeLists.txt diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 966ef3c6..a017f016 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -129,7 +129,7 @@ jobs: - name: Download All Artifacts uses: actions/download-artifact@main with: - pattern: "{Release-*,*.flatpak}" + pattern: "{Release-*,*.flatpak,*.AppImage}" path: Release merge-multiple: true diff --git a/packaging/CMakeLists.txt b/packaging/CMakeLists.txt index 9994b0c0..e75c96f4 100644 --- a/packaging/CMakeLists.txt +++ b/packaging/CMakeLists.txt @@ -5,6 +5,8 @@ set(APP_SPDX "LGPL-3.0-or-later") string(TIMESTAMP BUILD_DATE UTC) +file(COPY icons/isle.svg DESTINATION ${CMAKE_BINARY_DIR}/icons/"${APP_ID}.svg") + # The following will need to be refined if we wish to post actual releases to a repo such as Flathub if(DEFINED ENV{GITHUB_ACTIONS} AND ENV{GITHUB_ACTIONS} EQUAL TRUE) # Use the sequential run# of the current pipeline when running in GH Actions diff --git a/packaging/linux/CMakeLists.txt b/packaging/linux/CMakeLists.txt index 2d8bd10d..2ece9db8 100644 --- a/packaging/linux/CMakeLists.txt +++ b/packaging/linux/CMakeLists.txt @@ -4,4 +4,4 @@ configure_file(isledecomp.metainfo.xml.in "${APP_ID}.metainfo.xml" @ONLY) install(FILES "../icons/isle.svg" RENAME "${APP_ID}.svg" DESTINATION "share/icons/hicolor/scalable/apps") install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${APP_ID}.desktop" DESTINATION "share/applications") -install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${APP_ID}.metainfo.xml" DESTINATION "share/metainfo") \ No newline at end of file +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${APP_ID}.metainfo.xml" DESTINATION "share/metainfo") diff --git a/packaging/linux/appimage/CMakeLists.txt b/packaging/linux/appimage/CMakeLists.txt new file mode 100644 index 00000000..b36e52a4 --- /dev/null +++ b/packaging/linux/appimage/CMakeLists.txt @@ -0,0 +1,2 @@ +# Name desktop files, because linuxdeploy doesn't work with variables properly +configure_file("Build.in" "Build" @ONLY) \ No newline at end of file