forked from germanztz/gnome-shell-extension-rclone-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (28 loc) · 1.28 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
MODULES = extension.js confirmDialog.js locale/ metadata.json stylesheet.css LICENSE.rst README.md prefs.js schemas/ fileMonitorHelper.js
INSTALLPATH=~/.local/share/gnome-shell/extensions/[email protected]/
all: compile-locales compile-settings
compile-settings:
glib-compile-schemas --strict --targetdir=schemas/ schemas
compile-locales:
$(foreach file, $(wildcard locale/*/LC_MESSAGES/*.po), \
msgfmt $(file) -o $(subst .po,.mo,$(file));)
update-po-files:
xgettext -L Python --from-code=UTF-8 -k_ -kN_ -o rclone-manager.pot *.js
$(foreach file, $(wildcard locale/*/LC_MESSAGES/*.po), \
msgmerge $(file) rclone-manager.pot -o $(file);)
install: all
rm -rf $(INSTALLPATH)
mkdir -p $(INSTALLPATH)
cp -r $(MODULES) $(INSTALLPATH)/
bundle: all
zip -r [email protected] $(MODULES) -x "*.po"
run:
dbus-run-session -- gnome-shell --nested --wayland
vmrun: bundle
ps -ef | grep -v grep | grep -e 'virtualbox.*rclone-manager' || vagrant up
vagrant ssh -c '\
gsettings set org.gnome.shell disable-user-extensions false && \
gnome-extensions install --force ~/[email protected]/[email protected] && \
sudo service gdm3 restart && \
gnome-extensions enable [email protected] && \
journalctl -f --no-hostname -b /usr/bin/gnome-shell'