Skip to content

Commit

Permalink
v0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
kra-mo committed Sep 12, 2024
1 parent 7867f04 commit 70771eb
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 14 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,23 @@ jobs:
id: get_tag_name
run: echo tag_name=${GITHUB_REF#refs/tags/} >> $GITHUB_OUTPUT

- name: Get release notes
shell: python
run: |
import re, textwrap
open_file = open("./packaging/linux/page.kramo.Sly.metainfo.xml", "r", encoding="utf-8")
string = open_file.read()
open_file.close()
string = re.findall("<release.*>\s*<description.*>\n([\s\S]*?)\s*</description>\s*<\/release>", string)[0]
string = textwrap.dedent(string)
open_file = open("release_notes", "w", encoding="utf-8")
open_file.write(string)
open_file.close()
- name: Publish release
uses: softprops/action-gh-release@v2.0.8
with:
files: Sly-${{ needs.build.outputs.version }}-linux-x86-64.tar.gz
fail_on_unmatched_files: true
tag_name: ${{ steps.get_tag_name.outputs.tag_name }}
body_path: release_notes
9 changes: 9 additions & 0 deletions packaging/linux/page.kramo.Sly.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@
</screenshot>
</screenshots>
<releases>
<release version="0.1.4" date="2024-09-12">
<description>
<ul>
<li>A minimum window size is now always enforced</li>
<li>User interface improvements</li>
<li>Updated metadata</li>
</ul>
</description>
</release>
<release version="0.1.3" date="2024-09-10">
<description>
<p>Initital release</p>
Expand Down
24 changes: 11 additions & 13 deletions packaging/linux/page.kramo.Sly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ modules:
# https://github.com/flathub/org.localsend.localsend_app/blob/6b35d6b87f536d4f547c53a6e3ed46bec7d87633/org.localsend.localsend_app.yml#L86
buildsystem: simple
build-commands:
- tar -xzf Sly.tar.gz

- install -d "${FLATPAK_DEST}/lib"
- cp -r lib/* "${FLATPAK_DEST}/lib/"
- install -d "${FLATPAK_DEST}/data"
Expand All @@ -38,18 +36,18 @@ modules:
- install -Dm755 sly "${FLATPAK_DEST}/sly"
- ln -s "${FLATPAK_DEST}/sly" "${FLATPAK_DEST}/bin/sly"

- install -Dm644 packaging/linux/${FLATPAK_ID}.desktop "${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop"
- install -Dm644 packaging/linux/${FLATPAK_ID}.metainfo.xml "${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml"
- install -Dm644 packaging/linux/${FLATPAK_ID}.svg "${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg"
- install -Dm644 packaging/linux/${FLATPAK_ID}-symbolic.svg "${FLATPAK_DEST}/share/icons/hicolor/symbolic/apps/${FLATPAK_ID}-symbolic.svg"
- install -Dm644 repo/packaging/linux/${FLATPAK_ID}.desktop "${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop"
- install -Dm644 repo/packaging/linux/${FLATPAK_ID}.metainfo.xml "${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml"
- install -Dm644 repo/packaging/linux/${FLATPAK_ID}.svg "${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg"
- install -Dm644 repo/packaging/linux/${FLATPAK_ID}-symbolic.svg "${FLATPAK_DEST}/share/icons/hicolor/symbolic/apps/${FLATPAK_ID}-symbolic.svg"

sources:
- type: file
dest-filename: Sly.tar.gz
- type: archive
strip-components: 0
only-arches: [x86_64]
url: https://github.com/kra-mo/sly/releases/download/v0.1.3/Sly-0.1.3-linux-x86-64.tar.gz
sha256: e917aff8ab936a519d4ebcb5ccc42e994647f8d2cc4d5452d81c154392ba440f
# url:
# sha256:

- type: git
url: https://github.com/kra-mo/sly.git
tag: v0.1.3
- type: dir
dest: repo
path: ../../
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 0.1.3
version: 0.1.4

environment:
sdk: ^3.5.0
Expand Down

0 comments on commit 70771eb

Please sign in to comment.