Skip to content

Commit

Permalink
Separate dock icon on Ubuntu nroduit#588
Browse files Browse the repository at this point in the history
  • Loading branch information
nroduit committed Sep 13, 2024
1 parent ccba840 commit 4ceec00
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 11 deletions.
1 change: 1 addition & 0 deletions weasis-distributions/script/resources/linux/Weasis.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Version=1.0
Name=APPLICATION_NAME
Comment=Medical DICOM viewer
Exec=APPLICATION_LAUNCHER %U
StartupWMClass=org-weasis-launcher-AppLauncher
Icon=APPLICATION_ICON
Terminal=false
Type=Application
Expand Down
2 changes: 1 addition & 1 deletion weasis-distributions/script/resources/linux/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ cp /etc/opt/chrome/policies/managed/weasis.json /etc/chromium/policies/managed/w
;;
esac

exit 0
exit 0
2 changes: 1 addition & 1 deletion weasis-distributions/script/resources/linux/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ case "$1" in
;;
esac

exit 0
exit 0
5 changes: 3 additions & 2 deletions weasis-distributions/script/resources/linux/preinst
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ set -e
# the debian-policy package

package_type=deb
COMMON_SCRIPTS
LAUNCHER_AS_SERVICE_SCRIPTS

case "$1" in
install|upgrade)
if [ -n "$2" ]; then
true; LAUNCHER_AS_SERVICE_COMMANDS_UNINSTALL
:; LAUNCHER_AS_SERVICE_COMMANDS_UNINSTALL
fi
;;

Expand All @@ -32,4 +33,4 @@ fi
;;
esac

exit 0
exit 0
4 changes: 2 additions & 2 deletions weasis-distributions/script/resources/linux/prerm
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ set -e


package_type=deb
COMMON_SCRIPTS
DESKTOP_SCRIPTS
LAUNCHER_AS_SERVICE_SCRIPTS

Expand All @@ -39,5 +40,4 @@ rm -f /etc/chromium/policies/managed/weasis.json
;;
esac

exit 0

exit 0
15 changes: 10 additions & 5 deletions weasis-distributions/script/resources/linux/weasis.spec
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ Requires: PACKAGE_DEFAULT_DEPENDENCIES PACKAGE_CUSTOM_DEPENDENCIES
#build time will substantially increase and it may require unpack200/system java to install
%define __jar_repack %{nil}

%define package_filelist %{_tmppath}/%{name}.files
%define app_filelist %{_tmppath}/%{name}.app.files
%define filesystem_filelist %{_tmppath}/%{name}.filesystem.files
# on RHEL we got unwanted improved debugging enhancements
%define _build_id_links none

%define package_filelist %{_builddir}/%{name}.files
%define app_filelist %{_builddir}/%{name}.app.files
%define filesystem_filelist %{_builddir}/%{name}.filesystem.files

%define default_filesystem / /opt /usr /usr/bin /usr/lib /usr/local /usr/local/bin /usr/local/lib

Expand Down Expand Up @@ -80,9 +83,10 @@ LAUNCHER_AS_SERVICE_COMMANDS_INSTALL

%pre
package_type=rpm
COMMON_SCRIPTS
LAUNCHER_AS_SERVICE_SCRIPTS
if [ "$1" = 2 ]; then
true; LAUNCHER_AS_SERVICE_COMMANDS_UNINSTALL
if [ "$1" -gt 1 ]; then
:; LAUNCHER_AS_SERVICE_COMMANDS_UNINSTALL
fi

mkdir -p /etc/opt/chrome/policies/managed/
Expand All @@ -94,6 +98,7 @@ cp /etc/opt/chrome/policies/managed/weasis.json /etc/chromium/policies/managed/w

%preun
package_type=rpm
COMMON_SCRIPTS
DESKTOP_SCRIPTS
LAUNCHER_AS_SERVICE_SCRIPTS
DESKTOP_COMMANDS_UNINSTALL
Expand Down

0 comments on commit 4ceec00

Please sign in to comment.