forked from Foundation-Devices/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
63 lines (50 loc) · 1.95 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
docker_image := 'envoy'
docker-build:
docker build -t {{docker_image}} .
docker-build-android: docker-build
mkdir -p release && \
docker run --mount type=bind,source="$(pwd)"/release,target=/release \
-t {{docker_image}} /bin/bash \
-c "flutter build apk --release -P nosign && flutter build appbundle --release -P nosign \
&& cp /root/build/app/outputs/flutter-apk/app-release.apk /release \
&& cp /root/build/app/outputs/bundle/release/app-release.aab /release"
docker-build-android-sign: docker-build
mkdir -p release && \
docker run --mount type=bind,source="$(pwd)"/release,target=/release \
-e ALIAS_PASSWORD=$ALIAS_PASSWORD -e KEY_PASSWORD=$KEY_PASSWORD \
-t {{docker_image}} /bin/bash \
-c "flutter build apk --release && flutter build appbundle --release \
&& cp /root/build/app/outputs/flutter-apk/app-release.apk /release \
&& cp /root/build/app/outputs/bundle/release/app-release.aab /release"
docker-test: docker-build
docker run -t {{docker_image}} flutter test
docker-test-integration: docker-build
docker run -t {{docker_image}} bash integration_test_headless.sh
docker-run: docker-build
xhost +local:root
docker run -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY \
-v $HOME/.Xauthority:/home/root/.Xauthority -t {{docker_image}} flutter run -d linux
xhost -local:root
docker-console:
docker run -it {{docker_image}} bash
# run the APK through SHA256
verify-sha sha:
#!/usr/bin/env bash
sha=$(shasum -a 256 release/app-release.apk | awk '{print $1}')
echo -e "Expected SHA:\t{{sha}}"
echo -e "Actual SHA:\t${sha}"
if [ "$sha" = "{{sha}}" ]; then
echo "Hashes match!"
else
echo "ERROR: Hashes DO NOT match!"
fi
generate:
flutter pub run build_runner build --delete-conflicting-outputs
bump:
bash bump_version.sh
format:
bash fix_formatting.sh
build-ffi:
bash build_ffi.sh
copy:
bash fetch_copy.sh