-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrelease.txt
More file actions
46 lines (39 loc) · 2.39 KB
/
release.txt
File metadata and controls
46 lines (39 loc) · 2.39 KB
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
#Variables per treballar (Mholita20?)
source ./android.sh
#Build apk
meteor build ../MCG --server=https://www.myclassgame.es
#Now you can sign your app by
#keytool -genkey -alias mcg -keyalg RSA -keysize 2048 -validity 10000
cd MCG/android/project/build/outputs/apk/release
#jarsigner -digestalg SHA1 mcg.apk mcg
#Per a pujar a Play Store
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore myclassgame.jks myclassgame.apk mcg
#Alinia el apk
/home/juantoman/Android/Sdk/build-tools/29.0.2/zipalign -v -p 4 myclassgame.apk myclassgame-align.apk
#Introduir dades en Google Development https://console.developers.google.com/apis/credentials
#Crear OAuth Android o IOS
#Traure el SHA1
keytool -exportcert -alias mcg -list -v
#Buscar per a Android en MCG/android/project/build/intermediates/manifests/full/release/AndroidManifest.xml la variable "package"
#Play console
https://play.google.com/apps/publish/?authuser=1&hl=es&account=8941321232150302134#AppListPlace
#ERRADES
Has penjat un APK que no està signat amb el certificat penjat. Has de fer servir el mateix certificat. El certificat penjat té l'empremta digital
[ SHA1: A6:20:84:81:19:6E:BB:BE:BD:5D:5E:40:33:26:73:F0:13:9B:9B:3E ]
i el certificat utilitzat per signar l'APK que has penjat té l'empremta digital
[ SHA1: BD:C5:76:71:EA:92:7D:96:B2:C1:DD:BF:55:E4:3D:4C:65:AB:E2:F6 ]
#Google
Here’s how to generate and register a new upload key:
Follow the instructions in the Android Studio Help Center to generate a new key. It must be different from any previous keys. Alternatively, you can use the following command line to generate a new key:
keytool -genkeypair -alias myclassgame -keyalg RSA -keysize 2048 -validity 9125 -keystore myclassgame.jks
This key must be a 2048 bit RSA key and have 25-year validity.
Export the certificate for that key to PEM format:
keytool -export -rfc -alias myclassgame -file myclassgame_certificate.pem -keystore myclassgame.jks
Reply to this email and attach the upload_certificate.pem file.
I look forward to your response. Please let me know if you have any questions in the meantime.
#script
source ./android.sh
meteor build ../MCG --server=https://www.myclassgame.es
cd ~/MCG/android/project/build/outputs/apk/release
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore myclassgame.jks myclassgame.apk myclassgame
/home/juantoman/Android/Sdk/build-tools/29.0.2/zipalign -v -p 4 myclassgame.apk myclassgame-align.apk