-
Notifications
You must be signed in to change notification settings - Fork 45
/
wallet_env.sh
executable file
·78 lines (62 loc) · 3.17 KB
/
wallet_env.sh
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
#!/bin/sh
set -e
REQUIRED_BAZEL_VERSION="$(cat build-system/bazel_version)"
if which bazel >/dev/null 2>&1; then
export BAZEL="$(which bazel)"
else
echo "bazel not found in PATH"
echo "Please download bazel version $REQUIRED_BAZEL_VERSION:"
echo "https://github.com/bazelbuild/bazel/releases"
exit 1
fi
BAZEL_VERSION="$($BAZEL --version | sed -e 's/^bazel '//)"
if [ "$BAZEL_VERSION" != "$REQUIRED_BAZEL_VERSION" ]; then
echo "Required bazel version is \"$REQUIRED_BAZEL_VERSION\", you have \"$BAZEL_VERSION\" installed ($BAZEL)"
exit 1
fi
if ["$OPENSSL_PATH" == ""]; then
echo "Set OPENSSL_PATH to the local dir of OpenSSL 1.1 library\nExample: export OPENSSL_PATH=\"/opt/homebrew/Cellar/[email protected]/1.1.1u\""
exit 1
fi
if [ "$DEVELOPMENT_CODE_SIGN_IDENTITY" == "" ]; then
echo "Set DEVELOPMENT_CODE_SIGN_IDENTITY to the name of a valid development certificate\nExample: export DEVELOPMENT_CODE_SIGN_IDENTITY=\"iPhone Developer: XXXXXXXXXX (XXXXXXXXXX)\""
exit 1
fi
if [ "$DISTRIBUTION_CODE_SIGN_IDENTITY" == "" ]; then
echo "Set DISTRIBUTION_CODE_SIGN_IDENTITY to the name of a valid distribution certificate\nExample: export DISTRIBUTION_CODE_SIGN_IDENTITY=\"iPhone Distribution: XXXXXXXXXX (XXXXXXXXXX)\""
exit 1
fi
if [ "$WALLET_DEVELOPMENT_TEAM" == "" ]; then
echo "Set WALLET_DEVELOPMENT_TEAM to the name of your development team\nExample: export WALLET_DEVELOPMENT_TEAM=\"XXXXXXXXXX\""
exit 1
fi
if [ "$WALLET_BUNDLE_ID" == "" ]; then
echo "Set WALLET_BUNDLE_ID to a valid bundle ID\nExample: export WALLET_BUNDLE_ID=\"org.mycompany.TonWallet-iOS\""
exit 1
fi
if [ "$WALLET_DEVELOPMENT_PROVISIONING_PROFILE_APP" == "" ]; then
echo "Set WALLET_DEVELOPMENT_PROVISIONING_PROFILE_APP to the name of a valid development provisioning profile corresponding to the chosen bundle ID ($WALLET_BUNDLE_ID)\nExample: export WALLET_DEVELOPMENT_PROVISIONING_PROFILE_APP=\"Development $WALLET_BUNDLE_ID\""
exit 1
fi
if [ "$WALLET_DISTRIBUTION_PROVISIONING_PROFILE_APP" == "" ]; then
echo "Set WALLET_DISTRIBUTION_PROVISIONING_PROFILE_APP to the name of a valid distribution provisioning profile corresponding to the chosen bundle ID ($WALLET_BUNDLE_ID)\nExample: export WALLET_DISTRIBUTION_PROVISIONING_PROFILE_APP=\"AppStore $WALLET_BUNDLE_ID\""
exit 1
fi
if [ "$CODESIGNING_DATA_PATH" == "" ]; then
echo "Set CODESIGNING_DATA_PATH to the path to a folder containing valid provisioning profiles corresponding to the chosen bundle ID ($WALLET_BUNDLE_ID)"
echo "Example: export CODESIGNING_DATA_PATH=\"\$HOME/wallet-provisioning-profiles\""
exit 1
fi
if [ "$BUILD_NUMBER" == "" ]; then
echo "Set BUILD_NUMBER to a number that will be used as a version string for the build"
echo "Example: export BUILD_NUMBER=100"
exit 1
fi
export OPENSSL_PATH="$OPENSSL_PATH"
export DEVELOPMENT_CODE_SIGN_IDENTITY="$DEVELOPMENT_CODE_SIGN_IDENTITY"
export DISTRIBUTION_CODE_SIGN_IDENTITY="$DISTRIBUTION_CODE_SIGN_IDENTITY"
export WALLET_DEVELOPMENT_TEAM="$WALLET_DEVELOPMENT_TEAM"
export WALLET_BUNDLE_ID="$WALLET_BUNDLE_ID"
export WALLET_DEVELOPMENT_PROVISIONING_PROFILE_APP="$WALLET_DEVELOPMENT_PROVISIONING_PROFILE_APP"
export WALLET_DISTRIBUTION_PROVISIONING_PROFILE_APP="$WALLET_DISTRIBUTION_PROVISIONING_PROFILE_APP"
$@