forked from kyokan/bob-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cirrus.yml
60 lines (49 loc) · 1.81 KB
/
.cirrus.yml
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
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-xcode:latest
build_task:
# Load public key to env
environment:
SIGNING_PUBLIC_KEY: ENCRYPTED[9ecd1dce11858b0bdbaf664e08c89de152aa57a32cf46bd56a28c3ed38127464ca4f17f1fbca1e00894f442949ba6205]
APPSTORECONNECT_KEY: ENCRYPTED[7ff7b3572ccb3bbe0e4ca4c1b3219731b5a6eaa9296ad3446ef67557e843725d3f64955983620c135542e6d7cd1620a5]
# Save public key from env to file
signing_public_key_file:
path: /tmp/signing_public_key.pem
variable_name: SIGNING_PUBLIC_KEY
# Save appstoreconnect key from env to file
appstoreconnect_key_file:
path: /tmp/appstoreconnect_key.json
variable_name: APPSTORECONNECT_KEY
# Install nodejs
nodejs_script:
# - brew update
- brew install node
# # Cache
# node_modules_cache:
# folder: node_modules
# reupload_on_changes: false # since there is a fingerprint script
# fingerprint_script:
# - echo $CIRRUS_OS
# - node --version
# - cat package.json package-lock.json
# Install deps
install_deps_script:
- npm install dmg-license --no-save
- npm rebuild
# Build and Test
test_script:
- npm run test
# Package app
package_script:
- npm run package-mac
- unzip release/Bob-2.0.0-arm64-mac.zip -d release/
# # Install rcodesign
# install_rcodesign_script:
# - curl -sL https://github.com/indygreg/apple-platform-rs/releases/download/apple-codesign%2F0.22.0/apple-codesign-0.22.0-aarch64-apple-darwin.tar.gz | tar xzvf -
# # Sign and notarize zip
# sign_and_notarize_script:
# - chmod +x scripts/macos-ci-sign.sh
# - ./scripts/macos-ci-sign.sh `pwd`/apple-codesign-0.22.0-aarch64-apple-darwin/rcodesign
# - zip -r release/Bob-macos-arm64-signed.zip --symlinks release/Bob.app
# Upload artifacts
binaries_artifacts:
path: "release/*"