-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
98 lines (85 loc) · 2.38 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
NAME = $(shell yq e '.name' pubspec.yaml)
VERSION = $(shell yq e '.version' pubspec.yaml)
CERT_NAME := LNCQ7FYZE7
APPLE_USERNAME := george@noodles.gr
APPLE_PASSWORD := @keychain:AC_PASSWORD
GOMOBILE_PKG := nimona.io/plugins/flutter
APP_PATH := $(CURDIR)
.PHONY: bump-patch
bump-patch: bump-patch-podspec
$(eval VERSION := $(shell yq e '.version' pubspec.yaml))
cd ios && \
fastlane run increment_build_number && \
agvtool new-marketing-version $(VERSION)
.PHONY: bump-patch-podspec
bump-patch-podspec:
pubumgo patch
.PHONY: bump-minor
bump-minor: bump-minor-podspec
$(eval VERSION := $(shell yq e '.version' pubspec.yaml))
cd ios && \
fastlane run increment_build_number && \
agvtool new-marketing-version $(VERSION)
.PHONY: bump-minor-podspec
bump-minor-podspec:
pubumgo minor
.PHONY: bump-major
bump-major: bump-major-podspec
$(eval VERSION := $(shell yq e '.version' pubspec.yaml))
cd ios && \
fastlane run increment_build_number && \
agvtool new-marketing-version $(VERSION)
.PHONY: bump-major-podspec
bump-major-podspec:
pubumgo major
.PHONE: bind-ios
bind-ios:
cd go; gomobile bind -v -target ios \
-o ${APP_PATH}/plugins/identity_mobile/ios/Frameworks/Mobileapi.framework \
nimona.io/plugins/flutter
.PHONY: build-ios
build-ios:
@echo "Building..."
@flutter build ios --release --no-codesign
@echo "All done!"
.PHONY: release-ios
release-ios:
@echo "Building..."
@flutter build ios --release --no-codesign
@cd ios; fastlane beta
@echo "All done!"
.PHONE: release-ios-verify
release-ios-verify:
@xcrun altool \
--username "$(APPLE_USERNAME)" \
--password "$(APPLE_PASSWORD)" \
--notarization-info $(REQ_ID)
.PHONY: build-macos
build-macos:
@echo "Building $(VERSION)..."
@hover build darwin-bundle
@echo "Signing..."
@codesign \
-s "$(CERT_NAME)" \
-fv \
--entitlements entitlements.xml \
--deep \
--options runtime \
--timestamp \
./go/build/outputs/darwin-bundle-release/$(NAME)\ $(VERSION).app
@rm -f ./artifacts/$(NAME)-$(VERSION).app.zip
@echo "Zipping..."
@ditto \
-c \
-k \
--keepParent \
./go/build/outputs/darwin-bundle-release/$(NAME)\ $(VERSION).app \
./artifacts/$(NAME)-$(VERSION).app.zip
@echo "Notarizing..."
@xcrun altool \
--notarize-app \
--primary-bundle-id "io.nimona.$(NAME)" \
--username "$(APPLE_USERNAME)" \
--password "$(APPLE_PASSWORD)" \
--file ./artifacts/$(NAME)-$(VERSION).app.zip
@echo "All done!"