diff --git a/icons/gnome-mime-application-x-scratch-project-128.png b/icons/gnome-mime-application-x-scratch-project-128.png new file mode 100644 index 0000000..5bb39a1 Binary files /dev/null and b/icons/gnome-mime-application-x-scratch-project-128.png differ diff --git a/icons/gnome-mime-application-x-scratch-project-48.png b/icons/gnome-mime-application-x-scratch-project-48.png new file mode 100644 index 0000000..278927b Binary files /dev/null and b/icons/gnome-mime-application-x-scratch-project-48.png differ diff --git a/icons/scratch2-editor-128.png b/icons/scratch2-editor-128.png new file mode 100644 index 0000000..bbd3d03 Binary files /dev/null and b/icons/scratch2-editor-128.png differ diff --git a/icons/scratch2-editor-48.png b/icons/scratch2-editor-48.png new file mode 100644 index 0000000..be87423 Binary files /dev/null and b/icons/scratch2-editor-48.png differ diff --git a/icons/scratch2-editor.desktop b/icons/scratch2-editor.desktop new file mode 100644 index 0000000..bfbb8ec --- /dev/null +++ b/icons/scratch2-editor.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Name=Scratch 2 +Comment=You can program your own interactive stories, games, and animations +Exec=scratch2 %f +StartupNotify=true +Terminal=false +Type=Application +Encoding=UTF-8 +Icon=scratch2-editor +Categories=Development;Education; +MimeType=application/x-scratch-project; +Keywords=Build;Develop; diff --git a/install_scratch2.sh b/install_scratch2.sh index bddc766..7566705 100755 --- a/install_scratch2.sh +++ b/install_scratch2.sh @@ -61,6 +61,15 @@ EOF chmod a+x "/usr/local/bin/scratch2" +# Upload icons and create a .desktop entry +cp -f icons/scratch2-editor-48.png /usr/share/icons/hicolor/48x48/apps/scratch2-editor.png +cp -f icons/scratch2-editor-128.png /usr/share/icons/hicolor/128x128/apps/scratch2-editor.png +cp -n icons/gnome-mime-application-x-scratch-project-48.png /usr/share/icons/hicolor/48x48/mimetypes/gnome-mime-application-x-scratch-project.png +cp -n icons/gnome-mime-application-x-scratch-project-128.png /usr/share/icons/hicolor/128x128/mimetypes/gnome-mime-application-x-scratch-project.png +gtk-update-icon-cache /usr/share/icons/hicolor +update-mime-database /usr/share/mime +cp -f icons/scratch2-editor.desktop /usr/share/applications/ + cat << EOF Do not forget to install the following packages! 1. # dnf install libXt.i686