Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
scl
boilerplate
mobile-moko-boilerplate
Commits
04163606
Commit
04163606
authored
Sep 21, 2021
by
Aleksey Mikhailov
🗻
Browse files
setup android signing script
parent
cb855043
Changes
3
Hide whitespace changes
Inline
Side-by-side
setup-android-signing.sh
0 → 100755
View file @
04163606
#!/bin/bash
set
-euo
pipefail
KEY_ALIAS
=
$1
GITLAB_TOKEN
=
$2
GITLAB_PROJECT_ID
=
$3
PASSWORD
=
$(
openssl rand
-base64
16
)
KEYSTORE_PATH
=
"signing/release.jks"
mkdir
signing
||
true
keytool
-genkey
-v
-keystore
$KEYSTORE_PATH
-alias
"
$KEY_ALIAS
"
-storepass
"
$PASSWORD
"
-keypass
"
$PASSWORD
"
-keyalg
RSA
-sigalg
SHA256withRSA
-keysize
2048
-validity
10000
-noprompt
echo
"created store at:
$KEYSTORE_PATH
"
echo
"key alias:
$KEY_ALIAS
"
echo
"store password:
$PASSWORD
"
echo
"key password:
$PASSWORD
"
curl
--request
POST
--header
"PRIVATE-TOKEN:
$GITLAB_TOKEN
"
\
"https://gitlab.icerockdev.com/api/v4/projects/
$GITLAB_PROJECT_ID
/variables"
\
--form
"key=RELEASE_KEY_ALIAS"
--form
"value=
$KEY_ALIAS
"
curl
--request
POST
--header
"PRIVATE-TOKEN:
$GITLAB_TOKEN
"
\
"https://gitlab.icerockdev.com/api/v4/projects/
$GITLAB_PROJECT_ID
/variables"
\
--form
"key=RELEASE_STORE_PASSWORD"
--form
"value=
$PASSWORD
"
curl
--request
POST
--header
"PRIVATE-TOKEN:
$GITLAB_TOKEN
"
\
"https://gitlab.icerockdev.com/api/v4/projects/
$GITLAB_PROJECT_ID
/variables"
\
--form
"key=RELEASE_KEY_PASSWORD"
--form
"value=
$PASSWORD
"
firebase-
setup
.sh
→
setup-
firebase-
apps
.sh
View file @
04163606
File moved
signing/release.jks
0 → 100644
View file @
04163606
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment