forked from tom-james-watson/Emote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (39 loc) · 1.64 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
OS := $(shell uname)
.PHONY: dev dev-debug install update-emojis flatpak flatpak-install flatpak-requirements flatpak-validate flatpak-clean flathub snap snap-clean
dev:
ENV=dev GDK_BACKEND="x11" pipenv run start
dev-debug:
GTK_DEBUG=interactive GDK_BACKEND="x11" ENV=dev pipenv run start
format:
pipenv run black emote
install:
pipenv install -d
clean:
rm -r .flatpak-builder build/
update-emojis:
wget -O static/emojis.csv https://raw.githubusercontent.com/hfg-gmuend/openmoji/master/data/openmoji.csv
flatpak:
flatpak-builder --user --install --force-clean build com.tomjwatson.Emote.yml
flatpak run com.tomjwatson.Emote
flatpak-install:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub -y org.flatpak.Builder org.gnome.Platform//44 org.gnome.Sdk//44 org.freedesktop.appstream-glib
wget -N https://raw.githubusercontent.com/flatpak/flatpak-builder-tools/master/pip/flatpak-pip-generator
chmod x flatpak-pip-generator
flatpak-requirements:
pipenv lock
pipenv requirements > requirements.txt
pipenv run ./flatpak-pip-generator --runtime='org.gnome.Sdk//44' --output python3-requirements -r requirements.txt
mv python3-requirements.json flatpak/python3-requirements.json
flatpak-validate:
desktop-file-validate static/com.tomjwatson.Emote.desktop
flatpak run org.freedesktop.appstream-glib validate flatpak/com.tomjwatson.Emote.metainfo.xml
flatpak-clean:
rm -r .flatpak-builder build/
flatpak remove com.tomjwatson.Emote -y --delete-data
flathub:
flatpak-builder --repo=flathub --force-clean build flatpak/com.tomjwatson.Emote.yml
snap:
snapcraft
snap-clean:
snapcraft clean