diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c7ebf60..f21d5cb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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("\s*\n([\s\S]*?)\s*\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 diff --git a/packaging/linux/page.kramo.Sly.metainfo.xml b/packaging/linux/page.kramo.Sly.metainfo.xml index 16a5533..2cf531e 100644 --- a/packaging/linux/page.kramo.Sly.metainfo.xml +++ b/packaging/linux/page.kramo.Sly.metainfo.xml @@ -45,6 +45,15 @@ + + +
    +
  • A minimum window size is now always enforced
  • +
  • User interface improvements
  • +
  • Updated metadata
  • +
+
+

Initital release

diff --git a/packaging/linux/page.kramo.Sly.yml b/packaging/linux/page.kramo.Sly.yml index aab595c..8888710 100644 --- a/packaging/linux/page.kramo.Sly.yml +++ b/packaging/linux/page.kramo.Sly.yml @@ -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" @@ -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: ../../ diff --git a/pubspec.yaml b/pubspec.yaml index be3d7db..0905111 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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