Skip to content

Commit 80acca5

Browse files
authored
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
1 parent d48d870 commit 80acca5

4 files changed

Lines changed: 86 additions & 0 deletions

File tree

.github/workflows/flatpak.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Flatpak
2+
on:
3+
push:
4+
branches:
5+
- master2
6+
pull_request:
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
flatpak:
14+
runs-on: ubuntu-latest
15+
container:
16+
image: ghcr.io/flathub-infra/flatpak-github-actions:freedesktop-24.08
17+
options: --privileged
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: flathub-infra/flatpak-github-actions/flatpak-builder@master
21+
with:
22+
bundle: tinycrate.flatpak
23+
manifest-path: linux/net.hhoney.tinycrate.yml
24+
cache-key: "flatpak-builder-${{ github.sha }}"

.github/workflows/godot.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: "Godot Engine"
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
release:
6+
types:
7+
- released
8+
9+
env:
10+
GODOT_VERSION: 3.6
11+
EXPORT_NAME: tinycrate-linux
12+
13+
jobs:
14+
export:
15+
name: Export
16+
runs-on: ubuntu-latest
17+
container:
18+
image: docker.io/smks/godot-ci:3.6
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
lfs: true
24+
25+
- name: Set up export templates
26+
run: |
27+
mkdir -v -p ~/.local/share/godot/templates/
28+
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
29+
30+
- name: Export
31+
run: |
32+
mkdir --verbose --parents ./export/linux
33+
godot --no-window --path=./project.godot --export-pack "Linux/X11" ./export/linux/${EXPORT_NAME}.pck
34+
35+
- name: Upload artifact
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: ${{ env.EXPORT_NAME }}
39+
path: export/linux/${{ env.EXPORT_NAME }}.pck
40+
41+
release:
42+
name: Release
43+
needs: export
44+
if: ${{ github.event_name == 'release' }}
45+
runs-on: ubuntu-latest
46+
steps:
47+
- name: Download artifact
48+
uses: actions/download-artifact@v4
49+
with:
50+
name: ${{ env.EXPORT_NAME }}
51+
52+
- name: Upload to release
53+
env:
54+
GITHUB_TOKEN: ${{ github.token }}
55+
run: |
56+
gh release upload '${{ github.ref_name }}' ${{ env.EXPORT_NAME }}.pck --repo '${{ github.repository }}'

linux/net.hhoney.tinycrate.metainfo.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@
6060
</screenshots>
6161

6262
<releases>
63+
<release version="2025.02.23" date="2025-02-23">
64+
<description>
65+
<p>Updated icon</p>
66+
</description>
67+
</release>
6368
<release version="2025.01.16" date="2025-01-16">
6469
<description>
6570
<p>Updated icon and under-the-hood cleanup</p>

linux/net.hhoney.tinycrate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ modules:
2626
- install -Dm644 Tiny-Crate.pck ${FLATPAK_DEST}/bin/godot-runner.pck
2727
- install -Dm644 linux/${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
2828
- install -Dm644 linux/${FLATPAK_ID}.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg
29+
- install -Dm644 linux/${FLATPAK_ID}-symbolic.svg ${FLATPAK_DEST}/share/icons/hicolor/symbolic/apps/${FLATPAK_ID}-symbolic.svg
2930
- install -Dm644 linux/${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml

0 commit comments

Comments
 (0)