Revision: 45488
http://sourceforge.net/p/vice-emu/code/45488
Author: compyx
Date: 2025-02-13 17:40:27 +0000 (Thu, 13 Feb 2025)
Log Message:
-----------
Update .deb build script to use updated .desktop and icon files
Copy 32x32, 48x48, 64x64 and 256x256 icons into `usr/share/icons/hicolor/` and
.desktop files into `/usr/share/applications`, dpkg's post-install hooks will
run `update-desktop-database` and other appropiate actions.
Untested, I'll have to set up 'act' to run github actions locally.
Modified Paths:
--------------
branches/compyx/desktop-icons/vice/build/github-actions/build-deb.sh
Modified: branches/compyx/desktop-icons/vice/build/github-actions/build-deb.sh
===================================================================
--- branches/compyx/desktop-icons/vice/build/github-actions/build-deb.sh 2025-02-13 17:12:29 UTC (rev 45487)
+++ branches/compyx/desktop-icons/vice/build/github-actions/build-deb.sh 2025-02-13 17:40:27 UTC (rev 45488)
@@ -12,20 +12,6 @@
# TODO: Provide md5sums?
-# Mapping of emulators to their icon names in data/common/
-# There is no separate icon for xcbm5x0, so we use the xcbm2 icon
-declare -A ICONS=(
- [vsid]="SID"
- [x128]="C128"
- [x64dtv]="DTV"
- [x64sc]="C64"
- [xcbm2]="CBM2"
- [xpet]="PET"
- [xplus4]="Plus4"
- [xscpu64]="SCPU"
- [xvic]="VIC20"
-)
-
# Point release flag
RELEASE=0
@@ -72,7 +58,7 @@
mkdir -p ${DEB_DIR}/usr/share/doc/vice
if [ "$UI" = "gtk3" ]; then
mkdir -p ${DEB_DIR}/usr/share/applications
- mkdir -p ${DEB_DIR}/usr/share/icons/hicolor/scalable/apps
+ mkdir -p ${DEB_DIR}/usr/share/icons/hicolor/{32x32,48x48,64x64,256x256}/apps
fi
# Copy the files installed with `make install-strip`
@@ -79,19 +65,15 @@
cp -R ${HOME}/build/* ${DEB_DIR}/
# Copy the documentation
cp vice/doc/vice.pdf ${DEB_DIR}/usr/share/doc/vice/
-# Copy .desktop files
if [ "$UI" = "gtk3" ]; then
- cp vice/build/debian/*.desktop ${DEB_DIR}/usr/share/applications
+ # Copy .desktop files
+ cp vice/data/common/*.desktop ${DEB_DIR}/usr/share/applications
+ # Copy icon files
+ cp vice/data/common/vice-*_32.png ${DEB_DIR}/usr/share/icons/hicolor/32x32/apps
+ cp vice/data/common/vice-*_48.png ${DEB_DIR}/usr/share/icons/hicolor/48x48/apps
+ cp vice/data/common/vice-*_64.png ${DEB_DIR}/usr/share/icons/hicolor/64x64/apps
+ cp vice/data/common/vice-*_256.png ${DEB_DIR}/usr/share/icons/hicolor/256x256/apps
fi
-# Copy icon files
-if [ "$UI" = "gtk3" ]; then
- for emu in ${!ICONS[@]}
- do
- orig="vice/data/common/${ICONS[$emu]}_1024.svg"
- dest="${DEB_DIR}/usr/share/icons/hicolor/scalable/apps/${emu}.svg"
- cp ${orig} ${dest}
- done
-fi
# Create copyright file, taking contributor info from src/infocontrib.h
cat vice/build/debian/copyright.header > ${DEB_DIR}/usr/share/doc/vice/copyright
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|