This repository was archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
58 lines (44 loc) · 1.41 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
54
55
56
57
linux-run: buildstamp
cd viewer; flutter run -d linux
linux: buildstamp
cd viewer; flutter build linux
macos-run: buildstamp
cd viewer; flutter run -d macos
macos: buildstamp
cd viewer; flutter build macos
web-run: buildstamp
cd viewer; flutter run -d chrome --web-hostname localhost --web-port 8888
web: buildstamp
cd viewer; flutter build web
buildstamp:
tools/BUILDSTAMP.sh
protos:
cd third_party; ./SETUP.sh
flutter pub global activate protoc_plugin
./tools/COMPILE-PROTOS.sh
create:
flutter create --no-overwrite viewer
# we're not using these (yet)
rm -rf viewer/test viewer/integration_test
clean:
cd viewer; flutter clean
rm -rf registry/lib/src/generated
clobber: clean
rm -rf viewer/ios viewer/android viewer/ios viewer/linux
rm -rf viewer/viewer.iml
rm -rf third_party/api-common-protos third_party/gnostic third_party/registry
rm -rf site/public
staging: buildstamp
cd viewer; flutter build web
rm -rf site/public
cp -r viewer/build/web site/public
build: staging
ifndef REGISTRY_PROJECT_IDENTIFIER
@echo "Error! REGISTRY_PROJECT_IDENTIFIER must be set."; exit 1
endif
gcloud builds submit --tag gcr.io/${REGISTRY_PROJECT_IDENTIFIER}/registry-app
deploy:
ifndef REGISTRY_PROJECT_IDENTIFIER
@echo "Error! REGISTRY_PROJECT_IDENTIFIER must be set."; exit 1
endif
gcloud run deploy registry-app --image gcr.io/${REGISTRY_PROJECT_IDENTIFIER}/registry-app --platform managed