Skip to content

Commit 7f56a7f

Browse files
committed
chore: make meta info upload also upload cargo deps
1 parent 4518eb9 commit 7f56a7f

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/meta.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,27 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717

18+
- name: Dependencies
19+
run: |
20+
sudo apt update
21+
sudo apt install -y gh libxml2-utils python3 git
22+
mkdir upload
23+
1824
- name: Update metainfo
1925
run: |
20-
sudo apt update
21-
sudo apt install libxml2-utils
2226
./update_meta.sh
2327
28+
- name: Update sources
29+
run: |
30+
git clone https://github.com/flatpak/flatpak-builder-tools.git
31+
cd flatpak-builder-tools/cargo
32+
python3 flatpak-cargo-generator.py $GITHUB_WORKSPACE/Cargo.lock -o $GITHUB_WORKSPACE/upload/cargo-sources.json
33+
2434
- name: Commit and merge in changes
2535
run: |
2636
git config user.name "github-actions[bot]"
2737
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
2838
29-
gh release upload "${{ github.event.release.tag_name }}" upload/dev.khcrysalis.PlumeImpactor.metainfo.xml
39+
gh release upload "${{ github.event.release.tag_name }}" upload/dev.khcrysalis.PlumeImpactor.metainfo.xml upload/cargo-sources.json
3040
env:
3141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ ifneq ($(PREFIX),$(APPIMAGE_APPDIR)/usr)
158158
@install -Dm755 target/$(PROFILE)/plumeimpactor $(PREFIX)/bin/plumeimpactor
159159
endif
160160
@install -Dm644 package/linux/$(ID).desktop $(PREFIX)/share/applications/$(ID).desktop
161-
@install -Dm644 package/linux/$(ID).metainfo.xml $(PREFIX)/share/metainfo/$(ID).metainfo.xml
162161
@install -Dm644 package/linux/icons/hicolor/16x16/apps/$(ID).png $(PREFIX)/share/icons/hicolor/16x16/apps/$(ID).png
163162
@install -Dm644 package/linux/icons/hicolor/32x32/apps/$(ID).png $(PREFIX)/share/icons/hicolor/32x32/apps/$(ID).png
164163
@install -Dm644 package/linux/icons/hicolor/48x48/apps/$(ID).png $(PREFIX)/share/icons/hicolor/48x48/apps/$(ID).png

0 commit comments

Comments
 (0)