Skip to content

Commit

Permalink
build: fichiers d’installations pour Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
DjLeChuck committed Jun 2, 2024
1 parent 528bccf commit 5a78c58
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
26 changes: 26 additions & 0 deletions build/linux/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# If PREFIX isn't provided, we check for $(DESTDIR)/usr/local and use that if it exists.
# Otherwice we fall back to using /usr.

LOCAL != test -d $(DESTDIR)/usr/local && echo -n "/local" || echo -n ""
LOCAL ?= $(shell test -d $(DESTDIR)/usr/local && echo "/local" || echo "")
PREFIX ?= /usr$(LOCAL)

Name := "toggl-redmine"
Exec := "toggl-redmine"
Icon := "toggl-redmine.png"

default:
# User install
# Run "make install" to install in ~/.local/
# Run "make uninstall" to uninstall from ~/.local/

install:
install -Dm00644 usr/local/share/applications/$(Name).desktop $(DESTDIR)$(HOME)/.local/share/applications/$(Name).desktop
install -Dm00755 usr/local/bin/$(Exec) $(DESTDIR)$(HOME)/.local/bin/$(Exec)
install -Dm00644 usr/local/share/pixmaps/$(Icon) $(DESTDIR)$(HOME)/.local/share/icons/$(Icon)
sed -i -e "s,Exec=.*,Exec=$(DESTDIR)$(HOME)/.local/bin/$(Exec),g" $(DESTDIR)$(HOME)/.local/share/applications/$(Name).desktop

uninstall:
-rm $(DESTDIR)$(HOME)/.local/share/applications/$(Name).desktop
-rm $(DESTDIR)$(HOME)/.local/bin/$(Exec)
-rm $(DESTDIR)$(HOME)/.local/share/icons/$(Icon)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Desktop Entry]
Type=Application
Name=toggl track - Redmine
Exec=
Icon=toggl-redmine
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion wails.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
},
"info": {
"companyName": "UmanIT",
"productName": "toggl track - Redmine"
"productName": "toggl track - Redmine",
"productVersion": "2.0.0"
}
}

0 comments on commit 5a78c58

Please sign in to comment.