Skip to content

Commit

Permalink
fix icon path so now the icon is customizable #36
Browse files Browse the repository at this point in the history
  • Loading branch information
yatima1460 committed May 23, 2019
1 parent e93ac38 commit cf34327
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 11 additions & 10 deletions build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -371,16 +371,17 @@ deb() {
fi



# add desktop file
mkdir -p DEBFILE/"$1"/usr/share/applications
desktop-file-validate $DEB_PACKAGE_NAME.desktop
cp $DEB_PACKAGE_NAME.desktop DEBFILE/"$1"/usr/share/applications/

# add icon
mkdir -p DEBFILE/"$1"/usr/share/icons/$DEB_PACKAGE_NAME
cp ../../assets/icon.png DEBFILE/"$1"/usr/share/icons/$DEB_PACKAGE_NAME/drill.png
#cp ../../assets/icon.svg DEBFILE/usr/share/app-install/icons/drill.svg
if [[ $1 == "ui" ]]; then
# add desktop file
mkdir -p DEBFILE/"$1"/usr/share/applications
desktop-file-validate $DEB_PACKAGE_NAME.desktop
cp $DEB_PACKAGE_NAME.desktop DEBFILE/"$1"/usr/share/applications/

# add icon
mkdir -p DEBFILE/"$1"/usr/share/pixmaps
cp ../../assets/icon.svg DEBFILE/"$1"/usr/share/pixmaps/"$DEB_PACKAGE_NAME".svg
#cp ../../assets/icon.svg DEBFILE/usr/share/app-install/icons/drill.svg
fi

# build the .deb file

Expand Down
2 changes: 1 addition & 1 deletion tools/deb/drill-search.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Name=Drill
Type=Application
Comment=Search files without using indexing, but clever crawling
Icon=/usr/share/icons/drill-search/drill.png
Icon=drill-search
Exec=/usr/bin/drill-search
TryExec=/usr/bin/drill-search
Terminal=false
Expand Down

0 comments on commit cf34327

Please sign in to comment.