deb: add desktop file, icons, fix permissions

This commit is contained in:
tobtoht 2023-06-28 22:33:48 +02:00
parent 2ec4a05780
commit f6b6d136f3
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -9,7 +9,7 @@ cd /output/debian
cp /feather/contrib/debian/control . cp /feather/contrib/debian/control .
sed -i "s/VERSION/${VERSION}/" control sed -i "s/VERSION/${VERSION}/" control
touch --no-dereference --date="@${SOURCE_DATE_EPOCH}" control touch --no-dereference --date="@${SOURCE_DATE_EPOCH}" control
tar -czvf control.tar.gz control tar --owner=0 --group=0 -czvf control.tar.gz control
rm control rm control
#├── data.tar.gz #├── data.tar.gz
@ -22,8 +22,14 @@ cd usr/bin
cp /feather-bin feather cp /feather-bin feather
cd ../.. cd ../..
mkdir -p usr/share/applications
cp /feather/src/assets/feather.desktop usr/share/applications/
mkdir -p usr/share/icons/hicolor/128x128/apps
cp /feather/src/assets/images/appicons/128x128.png usr/share/icons/hicolor/128x128/apps/feather.png
find . -print0 | xargs -0r touch --no-dereference --date="@${SOURCE_DATE_EPOCH}" find . -print0 | xargs -0r touch --no-dereference --date="@${SOURCE_DATE_EPOCH}"
tar -czvf ../data.tar.gz . tar --owner=0 --group=0 -czvf ../data.tar.gz .
cd /output/debian cd /output/debian
chmod -R 755 data chmod -R 755 data