-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (23 loc) · 850 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
all:
true
pre-build:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.freedesktop.Platform//18.08 org.freedesktop.Sdk//18.08
build:
curl -LJ -o chatty.zip `curl -s https://api.github.com/repos/chatty/chatty/releases/latest | grep browser_download_url | cut -d '"' -f 4 | head -n 1`
curl -LJ -o jre.tar.gz `curl -s https://java.com/en/download/linux_manual.jsp | grep '"Download Java software for Linux x64" href=' | cut -d '"' -f 4 | head -n 1`
flatpak-builder --repo=repo chatty chatty.json
flatpak build-bundle repo Chatty.flatpak org.chatty.chatty
install:
flatpak install --user --bundle Chatty.flatpak
uninstall:
flatpak uninstall --user org.chatty.chatty
clean:
rm -rf chatty/
rm -rf repo/
rm -rf .flatpak-builder/
rm *.flatpak
rm *.zip
rm *.tar.gz
make:
true