mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-01-11 22:40:36 +00:00
Inject linux/mangayomi.desktop file into .deb
fastforge always generates a .desktop file with incorrect semantics. The generated .desktop file incorrectly includes a 'Version' key, which is not part of the freedesktop.org specification. fastforgedev/fastforge#158
This commit is contained in:
parent
7f177052e4
commit
6275b2c519
1 changed files with 11 additions and 2 deletions
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
|
|
@ -412,8 +412,17 @@ jobs:
|
|||
- name: Build deb package
|
||||
run: fastforge package --platform linux --targets deb
|
||||
|
||||
- name: Move deb file
|
||||
run: mv $(find dist -type f -name "mangayomi*.deb") dist/Mangayomi-${{ github.ref_name }}-linux.deb
|
||||
- name: Inject custom .desktop file into .deb
|
||||
run: |
|
||||
mkdir extracted_deb
|
||||
dpkg-deb -R "$(find dist -name '*.deb' | head -n 1)" extracted_deb
|
||||
# Replace desktop file
|
||||
cp -f linux/mangayomi.desktop extracted_deb/usr/share/applications/mangayomi.desktop
|
||||
# Set correct permissions
|
||||
chmod 644 extracted_deb/usr/share/applications/mangayomi.desktop
|
||||
# Repack the .deb
|
||||
sudo apt-get install -y fakeroot
|
||||
fakeroot dpkg-deb -b extracted_deb dist/Mangayomi-${{ github.ref_name }}-linux.deb
|
||||
|
||||
- name: upload artifact linux deb
|
||||
uses: actions/upload-artifact@v4
|
||||
|
|
|
|||
Loading…
Reference in a new issue