-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathJustfile
38 lines (33 loc) · 1.38 KB
/
Justfile
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
VERSION := `sed -n 's/^version: \([^+ ]*\).*/\1/p' pubspec.yaml`
VERSION_FULL := `sed -n 's/^version: \([^ ]*\).*/\1/p' pubspec.yaml`
# Build generated files
build-isar:
@echo "------------------------------"
@echo "Build Isar......."
@flutter pub run build_runner build
# Build Linux deb package
build-deb: build-isar
@echo "------------------------------"
@echo "Building for Linux......"
@dart pub global activate flutter_distributor
@export PATH="$PATH":"$HOME/.pub-cache/bin" && flutter_distributor package --platform linux --targets deb
# Install Linux deb package
install-deb: build-deb
@echo "------------------------------"
@echo "Installing for Linux......"
@sudo dpkg -i ./dist/{{VERSION_FULL}}/lex-{{VERSION_FULL}}-linux.deb
# Update yarn packages
update-yarn:
@echo "------------------------------"
@echo "Updating yarn packages......"
@yarn upgrade-interactive --latest
# Install Linux dev dependencies
install-linux-dev:
@echo "------------------------------"
@echo "Installing Linux dev dependencies......"
@sudo apt-get install -y clang cmake \
pkg-config liblzma-dev libgtk-3-dev \
ninja-build libayatana-appindicator3-dev \
keybinder-3.0 libnotify-dev libkeybinder-3.0-dev \
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
gstreamer1.0-plugins-good gstreamer1.0-plugins-bad