diff --git a/.github/workflows/linux-flatpak.yml b/.github/workflows/linux-flatpak.yml new file mode 100644 index 0000000..6611dad --- /dev/null +++ b/.github/workflows/linux-flatpak.yml @@ -0,0 +1,29 @@ +on: + push: + branches: [blueprint] + pull_request: +name: Linux CI (Flatpak) +jobs: + flatpak-builder: + name: "Flatpak Builder" + runs-on: ubuntu-latest + container: + image: bilelmoussaoui/flatpak-github-actions:kde-5.15 + options: --privileged + steps: + - uses: actions/checkout@v2 + - uses: bilelmoussaoui/flatpak-github-actions@v2 + with: + bundle: "fmp.flatpak" + manifest-path: "Distribution/io.github.royce551.FRESHMusicPlayer.Blueprint.yml" + - shell: bash + env: + REPO_TOKEN: ${{ secrets.FLATPAK_REPO_TOKEN }} + REPO_LOCATION: https://flatpak.vicr123.com + REPO_NAME: partner-blueprint + run: | + sudo dnf install -y python3-aiohttp python3-tenacity python3-gobject + curl https://github.com/flatpak/flat-manager/releases/download/0.3.7/flat-manager-client -L > flat-manager-client + chmod +x flat-manager-client + ./flat-manager-client push --commit --publish $(./flat-manager-client create $REPO_LOCATION $REPO_NAME) repo + diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index c2cbeb2..9f077f0 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -1,4 +1,4 @@ -name: Linux CI +name: Linux CI (AppImage) on: push: @@ -33,4 +33,4 @@ jobs: name: "Upload Artifact" with: name: "FRESHMusicPlayer.AppImage" - path: "./FRESHMusicPlayer-x86_64.AppImage" \ No newline at end of file + path: "./FRESHMusicPlayer-x86_64.AppImage" diff --git a/Distribution/io.github.royce551.FRESHMusicPlayer.Blueprint.yml b/Distribution/io.github.royce551.FRESHMusicPlayer.Blueprint.yml index fb5b538..44d1999 100644 --- a/Distribution/io.github.royce551.FRESHMusicPlayer.Blueprint.yml +++ b/Distribution/io.github.royce551.FRESHMusicPlayer.Blueprint.yml @@ -33,7 +33,7 @@ modules: - mkdir -p /app/share/applications - cp Distribution/io.github.royce551.FRESHMusicPlayer.Blueprint.desktop /app/share/applications - mkdir -p /app/share/icons/hicolor/scalable/apps - - cp Distribution/logo.svg /app/share/icons/hicolor/scalable/apps/io.github.royce551.FRESHMusicPlayer.Blueprint.svg + - cp Distribution/io.github.royce551.FRESHMusicPlayer.Blueprint.svg /app/share/icons/hicolor/scalable/apps/ - mkdir -p /app/share/metainfo - cp Distribution/io.github.royce551.FRESHMusicPlayer.Blueprint.metainfo.xml /app/share/metainfo/ sources: