Skip to content

Commit

Permalink
[BUGFIX] Flatpak version information
Browse files Browse the repository at this point in the history
  • Loading branch information
mjonuschat committed Dec 31, 2024
1 parent e8968e9 commit 7f87dff
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 23 deletions.
25 changes: 2 additions & 23 deletions .flatpak/io.github.mjonuschat.PrusaSlicer.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,29 +49,8 @@
</p>
</description>
<releases>
<release version="2.8.1" date="2024-09-19">
<url>https://github.com/mjonuschat/PrusaSlicer/releases/tag/version_2.8.1+boss</url>
</release>
<release version="2.8.0" date="2024-06-27">
<url>https://github.com/mjonuschat/PrusaSlicer/releases/tag/version_2.8.0+boss</url>
</release>
<release version="2.7.4" date="2024-04-05">
<url>https://github.com/mjonuschat/PrusaSlicer/releases/tag/version_2.7.4+boss</url>
</release>
<release version="2.7.3" date="2024-03-28">
<url>https://github.com/mjonuschat/PrusaSlicer/releases/tag/version_2.7.3+boss</url>
</release>
<release version="2.7.2" date="2024-02-29">
<url>https://github.com/mjonuschat/PrusaSlicer/releases/tag/version_2.7.2+boss</url>
</release>
<release version="2.7.1" date="2023-12-14">
<url>https://github.com/mjonuschat/PrusaSlicer/releases/tag/version_2.7.1+boss</url>
</release>
<release version="2.7.0" date="2023-11-23">
<url>https://github.com/mjonuschat/PrusaSlicer/releases/tag/version_2.7.0+boss</url>
</release>
<release version="2.6.1" date="2023-09-06">
<url>https://github.com/mjonuschat/PrusaSlicer/releases/tag/version_2.6.1+boss</url>
<release version="nightly" date="2024-09-19">
<url>https://github.com/mjonuschat/PrusaSlicer/releases/tag/nightly</url>
</release>
</releases>
</component>
14 changes: 14 additions & 0 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
options: --privileged
env:
date: ""
date_long: ""
ver: ""
ver_pure: ""
steps:
Expand All @@ -30,8 +31,21 @@ jobs:
echo "ver=$ver" >> $GITHUB_ENV
echo "ver_pure=$ver_pure" >> $GITHUB_ENV
echo "date=$(date +'%Y%m%d')" >> $GITHUB_ENV
echo "date_long=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
shell: bash

- name: Update version information
if: startsWith(github.ref, 'refs/heads/release/')
shell: bash
run: |
sed --in-place -e 's/"nightly"/"${{ env.ver }}+"/g' .flatpak/io.github.mjonuschat.PrusaSlicer.metainfo.xml
sed --in-place -e 's/tag\/nightly/tag\/version_${{ env.ver }}+boss/g' .flatpak/io.github.mjonuschat.PrusaSlicer.metainfo.xml
- name: Update date information
shell: bash
run: |
sed --in-place -e 's/"2024-09-19"/${{ env.date_long }}/g' .flatpak/io.github.mjonuschat.PrusaSlicer.metainfo.xml
- name: Build PrusaSlicer (BOSS) Linux Flatpak
uses: flathub-infra/flatpak-github-actions/flatpak-builder@master
with:
Expand Down

0 comments on commit 7f87dff

Please sign in to comment.