mirror of
https://github.com/HarmonyHoney/tiny_crate.git
synced 2026-07-17 16:38:29 +00:00
Linux: New icons, CI, and release info (#7)
* Linux: Export symbolic icon in Flatpak manifest * GitHub Actions: Add Flatpak action Help make sure any Linux changes don't break the Flatpak build. * GitHub Actions: Add Godot PCK export Helpful for testing Linux releases * MetaInfo: Update release info
This commit is contained in:
parent
d48d87028d
commit
80acca522b
4 changed files with 86 additions and 0 deletions
24
.github/workflows/flatpak.yml
vendored
Normal file
24
.github/workflows/flatpak.yml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
name: Flatpak
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master2
|
||||
pull_request:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
flatpak:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/flathub-infra/flatpak-github-actions:freedesktop-24.08
|
||||
options: --privileged
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: flathub-infra/flatpak-github-actions/flatpak-builder@master
|
||||
with:
|
||||
bundle: tinycrate.flatpak
|
||||
manifest-path: linux/net.hhoney.tinycrate.yml
|
||||
cache-key: "flatpak-builder-${{ github.sha }}"
|
||||
56
.github/workflows/godot.yml
vendored
Normal file
56
.github/workflows/godot.yml
vendored
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
name: "Godot Engine"
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
release:
|
||||
types:
|
||||
- released
|
||||
|
||||
env:
|
||||
GODOT_VERSION: 3.6
|
||||
EXPORT_NAME: tinycrate-linux
|
||||
|
||||
jobs:
|
||||
export:
|
||||
name: Export
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: docker.io/smks/godot-ci:3.6
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
lfs: true
|
||||
|
||||
- name: Set up export templates
|
||||
run: |
|
||||
mkdir -v -p ~/.local/share/godot/templates/
|
||||
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
|
||||
|
||||
- name: Export
|
||||
run: |
|
||||
mkdir --verbose --parents ./export/linux
|
||||
godot --no-window --path=./project.godot --export-pack "Linux/X11" ./export/linux/${EXPORT_NAME}.pck
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ env.EXPORT_NAME }}
|
||||
path: export/linux/${{ env.EXPORT_NAME }}.pck
|
||||
|
||||
release:
|
||||
name: Release
|
||||
needs: export
|
||||
if: ${{ github.event_name == 'release' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Download artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: ${{ env.EXPORT_NAME }}
|
||||
|
||||
- name: Upload to release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
gh release upload '${{ github.ref_name }}' ${{ env.EXPORT_NAME }}.pck --repo '${{ github.repository }}'
|
||||
|
|
@ -60,6 +60,11 @@
|
|||
</screenshots>
|
||||
|
||||
<releases>
|
||||
<release version="2025.02.23" date="2025-02-23">
|
||||
<description>
|
||||
<p>Updated icon</p>
|
||||
</description>
|
||||
</release>
|
||||
<release version="2025.01.16" date="2025-01-16">
|
||||
<description>
|
||||
<p>Updated icon and under-the-hood cleanup</p>
|
||||
|
|
|
|||
|
|
@ -26,4 +26,5 @@ modules:
|
|||
- install -Dm644 Tiny-Crate.pck ${FLATPAK_DEST}/bin/godot-runner.pck
|
||||
- install -Dm644 linux/${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
|
||||
- install -Dm644 linux/${FLATPAK_ID}.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg
|
||||
- install -Dm644 linux/${FLATPAK_ID}-symbolic.svg ${FLATPAK_DEST}/share/icons/hicolor/symbolic/apps/${FLATPAK_ID}-symbolic.svg
|
||||
- install -Dm644 linux/${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue