Skip to content

Commit

Permalink
Adjust the debian postinst /postrm script
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrec committed Nov 3, 2021
1 parent e8a37a9 commit 3d25b44
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
10 changes: 8 additions & 2 deletions debian/postinst.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ mkdir -p /usr/share/icons/hicolor/32x32/mimetypes
mkdir -p /usr/share/icons/hicolor/64x64/mimetypes
mkdir -p /usr/share/icons/hicolor/128x128/mimetypes
mkdir -p /usr/share/icons/hicolor/256x256/mimetypes
mkdir -p /usr/share/icons/hicolor/512x512/mimetypes
mkdir -p /usr/share/icons/hicolor/1024x1024/mimetypes

# OpenStudio Model
cp "@CPACK_INSTALL_PREFIX@/Temp/icons/osm_16.png" "/usr/share/icons/hicolor/16x16/mimetypes/application-x-openstudio.png"
Expand All @@ -49,6 +47,14 @@ cp "@CPACK_INSTALL_PREFIX@/Temp/icons/osc_128.png" "/usr/share/icons/hicolor/128
cp "@CPACK_INSTALL_PREFIX@/Temp/icons/osc_256.png" "/usr/share/icons/hicolor/256x256/mimetypes/application-x-openstudio-component.png"

# OpenStudioApplication
mkdir -p /usr/share/icons/hicolor/16x16/apps
mkdir -p /usr/share/icons/hicolor/32x32/apps
mkdir -p /usr/share/icons/hicolor/64x64/apps
mkdir -p /usr/share/icons/hicolor/128x128/apps
mkdir -p /usr/share/icons/hicolor/256x256/apps
mkdir -p /usr/share/icons/hicolor/512x512/apps
mkdir -p /usr/share/icons/hicolor/1024x1024/apps

cp "@CPACK_INSTALL_PREFIX@/Temp/icons/os_16.png" "/usr/share/icons/hicolor/16x16/apps/openstudioapp.png"
cp "@CPACK_INSTALL_PREFIX@/Temp/icons/os_32.png" "/usr/share/icons/hicolor/32x32/apps/openstudioapp.png"
cp "@CPACK_INSTALL_PREFIX@/Temp/icons/os_64.png" "/usr/share/icons/hicolor/64x64/apps/openstudioapp.png"
Expand Down
14 changes: 7 additions & 7 deletions debian/postrm.in
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ else
rm -f "/usr/share/icons/hicolor/256x256/mimetypes/application-x-openstudio-component.png"

# OpenStudioApplication
rm -f "/usr/share/icons/hicolor/16x16/mimetypes/openstudioapp.png"
rm -f "/usr/share/icons/hicolor/32x32/mimetypes/openstudioapp.png"
rm -f "/usr/share/icons/hicolor/64x64/mimetypes/openstudioapp.png"
rm -f "/usr/share/icons/hicolor/128x128/mimetypes/openstudioapp.png"
rm -f "/usr/share/icons/hicolor/256x256/mimetypes/openstudioapp.png"
rm -f "/usr/share/icons/hicolor/16x16/apps/openstudioapp.png"
rm -f "/usr/share/icons/hicolor/32x32/apps/openstudioapp.png"
rm -f "/usr/share/icons/hicolor/64x64/apps/openstudioapp.png"
rm -f "/usr/share/icons/hicolor/128x128/apps/openstudioapp.png"
rm -f "/usr/share/icons/hicolor/256x256/apps/openstudioapp.png"
# OS App is the only one that also has 512 and 1024
rm -f "/usr/share/icons/hicolor/512x512/mimetypes/openstudioapp.png"
rm -f "/usr/share/icons/hicolor/1024x1024/mimetypes/openstudioapp.png"
rm -f "/usr/share/icons/hicolor/512x512/apps/openstudioapp.png"
rm -f "/usr/share/icons/hicolor/1024x1024/apps/openstudioapp.png"

fi;

Expand Down

0 comments on commit 3d25b44

Please sign in to comment.