File tree 9 files changed +74
-20
lines changed
packaging/darwin-pkg/flat
9 files changed +74
-20
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
- on :
3
- push :
4
- branches :
5
- - master
2
+ on : [push]
3
+
6
4
jobs :
7
5
deploy :
8
6
runs-on : macos-latest
21
19
with :
22
20
flutter-version : " 1.26.0-1.0.pre"
23
21
channel : " dev"
22
+ - name : Install Go
23
+ uses : actions/setup-go@v2
24
+ with :
25
+ go-version : 1.15.x
24
26
- name : Install tools
25
27
run : |
28
+ brew update
29
+ brew install yq
30
+ GO111MODULE=on go get -u -a github.com/go-flutter-desktop/hover
26
31
flutter pub get
27
32
flutter build ios --release --no-codesign
28
33
cd ./ios && pod install
@@ -42,10 +47,11 @@ jobs:
42
47
PRIVATE_KEY : ${{ secrets.SSH_PRIVATE_KEY }}
43
48
- name : Deploy to TestFlight
44
49
run : |
50
+ make build-macos
45
51
cd ./ios
46
52
bundle exec fastlane match development --readonly
47
53
security find-identity -v -p codesigning
48
- bundle exec fastlane beta -- verbose
54
+ bundle exec fastlane mac release -- verbose
49
55
env :
50
56
TEAM_ID : ${{ secrets.TEAM_ID }}
51
57
ITC_TEAM_ID : ${{ secrets.ITC_TEAM_ID }}
Original file line number Diff line number Diff line change @@ -74,3 +74,4 @@ ios/*.zip
74
74
artifacts
75
75
ios /* .ipa
76
76
.flutter-plugins-dependencies
77
+ ios /fastlane /report.xml
Original file line number Diff line number Diff line change 1
1
NAME = $(shell yq e '.name' pubspec.yaml)
2
2
VERSION = $(shell yq e '.version' pubspec.yaml)
3
3
4
- CERT_NAME := LNCQ7FYZE7
5
- APPLE_USERNAME :=
[email protected]
6
- APPLE_PASSWORD := @keychain:AC_PASSWORD
4
+ CERT_NAME := Developer ID Application: 0x2A Ltd (LNCQ7FYZE7)
7
5
8
6
GOMOBILE_PKG := nimona.io/plugins/flutter
9
7
APP_PATH := $(CURDIR )
@@ -63,8 +61,8 @@ release-ios:
63
61
.PHONE : release-ios-verify
64
62
release-ios-verify :
65
63
@xcrun altool \
66
- --username " $( APPLE_USERNAME ) " \
67
- --password " $( APPLE_PASSWORD ) " \
64
+ --username " $( FASTLANE_USER ) " \
65
+ --password " $( FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD ) " \
68
66
--notarization-info $(REQ_ID )
69
67
70
68
.PHONY : build-macos
@@ -92,7 +90,7 @@ build-macos:
92
90
@xcrun altool \
93
91
--notarize-app \
94
92
--primary-bundle-id " io.nimona.$( NAME) " \
95
- --username " $( APPLE_USERNAME ) " \
96
- --password " $( APPLE_PASSWORD ) " \
93
+ --username " $( FASTLANE_USER ) " \
94
+ --password " $( FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD ) " \
97
95
--file ./artifacts/$(NAME ) -$(VERSION ) .app.zip
98
96
@echo " All done!"
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ require (
36
36
37
37
// replace github.com/zserge/metric => ../../metric
38
38
39
- replace nimona.io => ../../../../nimona.io
39
+ // replace nimona.io => ../../../../nimona.io
40
40
41
41
// replace github.com/go-flutter-desktop/go-flutter => ../../go-flutter
42
42
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <installer-gui-script minSpecVersion =" 1" >
3
+ <title >{{.applicationName}}</title >
4
+ <background alignment =" topleft" file =" root/Applications/{{.applicationName}}.app/Contents/MacOS/assets/icon.png" />
5
+ <choices-outline >
6
+ <line choice =" choiceBase" />
7
+ </choices-outline >
8
+ <choice id =" choiceBase" title =" base" >
9
+ <pkg-ref id =" {{.organizationName}}.base.pkg" />
10
+ </choice >
11
+ <pkg-ref id =" {{.organizationName}}.base.pkg" version =" {{.version}}" auth =" Root" >#base.pkg</pkg-ref >
12
+ </installer-gui-script >
Original file line number Diff line number Diff line change
1
+ <pkg-info format-version="2" identifier="{{.organizationName}}.base.pkg" version="{{.version}}" install-location="/" auth="root">
2
+ <bundle-version>
3
+ <bundle id="{{.organizationName}}" CFBundleIdentifier="{{.organizationName}}.{{.packageName}}" path="./Applications/{{.applicationName}}.app" CFBundleVersion="{{.version}}"/>
4
+ </bundle-version>
5
+ </pkg-info>
Original file line number Diff line number Diff line change 1
- app_identifier("io.nimona.identity") # The bundle identifier of your app
2
- apple_id("
[email protected] ") # Your Apple email address
1
+ app_identifier("io.nimona.identity")
2
+
3
3
4
- itc_team_id("120343054") # App Store Connect Team ID
5
- team_id("LNCQ7FYZE7") # Developer Portal Team ID
6
-
7
- # For more information about the Appfile, see:
8
- # https://docs.fastlane.tools/advanced/#appfile
4
+ itc_team_id("120343054")
5
+ team_id("LNCQ7FYZE7")
Original file line number Diff line number Diff line change @@ -18,4 +18,30 @@ platform :ios do
18
18
)
19
19
upload_to_testflight
20
20
end
21
+ end
22
+ platform :mac do
23
+ desc "Push a new build to macos store"
24
+ lane :release do
25
+ # setup_ci
26
+ # sync_code_signing(
27
+ # type: "appstore",
28
+ # readonly: is_ci
29
+ # )
30
+ # build_app(
31
+ # workspace: "Runner.xcworkspace",
32
+ # scheme: "Runner",
33
+ # )
34
+ app_store_connect_api_key (
35
+ key_id : ENV [ "APPSTORE_CONNECT_KEYID" ] ,
36
+ issuer_id : ENV [ "APPSTORE_CONNECT_ISSUERID" ] ,
37
+ key_content : ENV [ "APPSTORE_CONNECT_PRIVATE_KEY" ]
38
+ )
39
+ notarize (
40
+ verbose : true ,
41
+ package : "../go/build/outputs/darwin-bundle-release/identity 1.7.0.app" ,
42
+ bundle_id : "io.nimona.identity" ,
43
+ asc_provider : ENV [ "ITC_TEAM_ID" ] # "LNCQ7FYZE7"
44
+ )
45
+ # upload_to_testflight
46
+ end
21
47
end
Original file line number Diff line number Diff line change @@ -24,6 +24,15 @@ Push a new beta build to TestFlight
24
24
25
25
----
26
26
27
+ ## Mac
28
+ ### mac release
29
+ ```
30
+ fastlane mac release
31
+ ```
32
+ Push a new build to macos store
33
+
34
+ ----
35
+
27
36
This README.md is auto-generated and will be re-generated every time [ fastlane] ( https://fastlane.tools ) is run.
28
37
More information about fastlane can be found on [ fastlane.tools] ( https://fastlane.tools ) .
29
38
The documentation of fastlane can be found on [ docs.fastlane.tools] ( https://docs.fastlane.tools ) .
You can’t perform that action at this time.
0 commit comments