fixed missing ubz icon in linux (xdg-icon-resource does not support svg yet so ... to improve)

preferencesAboutTextFull
Clément Fauconnier 3 years ago
parent 6e21cd4c27
commit e9eeffd807
  1. 4
      release_scripts/linux/package.sh
  2. BIN
      resources/linux/application-ubz.png
  3. 36
      resources/linux/application-ubz.svg

@ -180,6 +180,7 @@ chown -R root:root $PACKAGE_DIRECTORY
cp -R resources/customizations $PACKAGE_DIRECTORY/ cp -R resources/customizations $PACKAGE_DIRECTORY/
cp resources/linux/openboard-ubz.xml $PACKAGE_DIRECTORY/etc/ cp resources/linux/openboard-ubz.xml $PACKAGE_DIRECTORY/etc/
cp resources/linux/application-ubz.png $PACKAGE_DIRECTORY/etc/
if $BUNDLE_QT; then if $BUNDLE_QT; then
cp -R resources/linux/run.sh $PACKAGE_DIRECTORY/ cp -R resources/linux/run.sh $PACKAGE_DIRECTORY/
@ -287,6 +288,7 @@ cat > "$BASE_WORKING_DIR/DEBIAN/postinst" << EOF
xdg-desktop-menu install --novendor /usr/share/applications/${APPLICATION_CODE}.desktop xdg-desktop-menu install --novendor /usr/share/applications/${APPLICATION_CODE}.desktop
xdg-mime install --mode system /$APPLICATION_PATH/$APPLICATION_CODE/etc/openboard-ubz.xml xdg-mime install --mode system /$APPLICATION_PATH/$APPLICATION_CODE/etc/openboard-ubz.xml
xdg-mime default /usr/share/applications/${APPLICATION_CODE}.desktop application/ubz xdg-mime default /usr/share/applications/${APPLICATION_CODE}.desktop application/ubz
xdg-icon-resource install --context mimetypes --size 48 /$APPLICATION_PATH/$APPLICATION_CODE/etc/application-ubz.png application-ubz
ln -s $SYMLINK_TARGET /usr/bin/$APPLICATION_CODE ln -s $SYMLINK_TARGET /usr/bin/$APPLICATION_CODE
@ -400,8 +402,6 @@ echo "MimeType=application/ubz" >> $APPLICATION_SHORTCUT
echo "Categories=Education;" >> $APPLICATION_SHORTCUT echo "Categories=Education;" >> $APPLICATION_SHORTCUT
cp "resources/images/${APPLICATION_NAME}.png" "$PACKAGE_DIRECTORY/${APPLICATION_NAME}.png" cp "resources/images/${APPLICATION_NAME}.png" "$PACKAGE_DIRECTORY/${APPLICATION_NAME}.png"
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# Building the package # Building the package
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 56 KiB

Loading…
Cancel
Save