बिल्ड, रन और इंस्टॉल

अपने एजेंटों से Android ऐप या PSP, PS Vita और Nintendo 3DS के लिए PocketJS गेम माँगें, उसे Preview में आज़माएँ, APK डाउनलोड करें, और ऐप की Google Play upload key चुनें।

अपने iPhone ऐप के अलावा, किसी प्रोजेक्ट में एक Android ऐप, handhelds (PSP, PS Vita और Nintendo 3DS) के लिए एक PocketJS ऐप, या दोनों हो सकते हैं। आपके एजेंट उन्हें बनाते और build करते हैं। आप उन्हें Preview में आज़माते हैं, और Android के लिए आप वह key चुनते हैं जिससे ऐप sign होता है।

Android या PocketJS version माँगें

  1. प्रोजेक्ट की चैट खोलें।
  2. किसी एजेंट से वह माँगें जो आप चाहते हैं, जैसे “इस ऐप का Android version बनाएँ” या “PSP और PS Vita के लिए इस गेम का PocketJS version बनाएँ”।
  3. एजेंट ऐप लिखता है और उसे build करता है। build पूरा होने पर उसे आज़माने के लिए Preview खोलें।

build कहाँ चलता है, यह आपकी टीम पर निर्भर है:

Cloud टीम Local टीम
Android cloud में। उपलब्ध नहीं।
PocketJS आपकी टीम के environment में। आपके Mac पर, प्रोजेक्ट की एक copy में। आपके फ़ोल्डर में वापस कुछ नहीं लिखा जाता। अगर build के लिए ज़रूरी कोई tool आपके Mac पर इंस्टॉल नहीं है, तो build का output बताता है कि उसे कैसे इंस्टॉल करें।

एजेंट हर तरह का build runbuild --platform android_beta या runbuild --platform pocketjs_beta से करते हैं। हर build क्या बनाता है, यह जानने के लिए देखें runbuild।

Android ऐप आज़माएँ

  1. Preview खोलें और device मेनू खोलें (device के नाम पर टैप या क्लिक करें)।
  2. Android Beta के नीचे कोई Android फ़ोन चुनें। Mac पर, Android Beta तब दिखता है जब प्रोजेक्ट में Android ऐप हो।
  3. फ़ोन को वैसे ही इस्तेमाल करें जैसे Preview में अपना ऐप चलाएँ में बताया गया है। Android फ़ोन में Back भी होता है।

अगर प्रोजेक्ट में अभी कोई Android ऐप नहीं है, तो फ़ोन की पंक्ति में “No Android build yet” लिखा होता है। वहाँ Restart App (या Reinstall) दबाने पर No Android build yet दिखता है: “Ask an agent to build the Android app, then you can install it here.” प्रोजेक्ट की चैट में आपके संदेश के रूप में “Build this project’s Android app for Android Preview.” भेजने के लिए Ask an Agent to Build टैप करें। उल्टी तरफ़ भी यही होता है: Preview के iPhone पर, जिस प्रोजेक्ट में सिर्फ़ Android ऐप है, वह “No iOS build yet” दिखाता है।

जब किसी प्रोजेक्ट में दोनों ऐप हों, तो Restart App और Reinstall का नाम बताता है कि वह किस ऐप पर काम करता है, जैसे “Restart App (Android)”। यह हमेशा स्क्रीन पर दिख रहे device का ऐप होता है।

APK डाउनलोड करें

जब प्रोजेक्ट में Android ऐप हो, तो Preview के ⋯ मेनू में Download APK होता है: iPhone और iPad पर Restart App के नीचे, Mac पर मेनू में सबसे पहले। डाउनलोड होते समय पंक्ति में Downloading APK… लिखा होता है। फिर share sheet खुलती है, जहाँ आप फ़ाइल सहेज या भेज सकते हैं। APK वही build है जो Preview का फ़ोन चलाता है, ऐप की key से signed।

Google Play के लिए ऐप की upload key चुनें

किसी टीम में हर Android ऐप की एक signing key होती है। यह हर build को sign करती है: Preview फ़ोन के लिए build, आपका डाउनलोड किया APK, और Google Play के लिए release builds। AirBuild यह key ऐप के पहले build पर बनाता है।

Google Play किसी ऐप के updates तभी स्वीकार करता है जब वे उसी key से signed हों जो ऐप पहले से इस्तेमाल करता है। AirBuild, Google Play से नहीं जुड़ता, इसलिए वह नहीं बता सकता कि आपका ऐप पहले से वहाँ है या नहीं:

  • ऐप कभी Google Play पर नहीं रहा: AirBuild की बनाई key, या कोई नई key, ठीक है।
  • ऐप पहले से Google Play पर है: AirBuild को वह keystore दें जिससे आप उसे sign करते हैं। आप यह पहले build से पहले या बाद में कर सकते हैं। बदली गई key रखी जाती है, मिटाई नहीं जाती।

जब किसी एजेंट को यह जानना होता है कि कौन-सी key इस्तेमाल करे, तो वह चैट में ऐप के package name के साथ एक Choose the upload key for Google Play कार्ड भेजता है, जिस पर लिखा होता है “Google Play only accepts updates signed with the key this app already uses. Upload that keystore, or create a new key if the app has never been on Google Play.” टीम में कोई भी इसका जवाब दे सकता है।

अपना keystore अपलोड करें

  1. कार्ड पर Upload Keystore टैप करें।
  2. Upload Keystore sheet में Choose Keystore File… टैप करें और फ़ाइल चुनें: “The keystore this app already uses on Google Play: a .jks, .keystore or .p12 file.” कोई दूसरी फ़ाइल चुनने के लिए Choose Another File… टैप करें।
  3. Keystore Password लिखें। “AirBuild checks the keystore and keeps its key to sign this app’s release builds. The password is used once and never stored.”
  4. Upload टैप करें।

फिर कार्ड पर certificate के fingerprint की शुरुआत के साथ “Upload key added, SHA-256 …” लिखा होता है। आप इसे Google Play Console में upload key certificate से मिला सकते हैं।

नई key बनाएँ

यह सिर्फ़ ऐसे ऐप के लिए है जो कभी Google Play पर नहीं रहा। कार्ड पर Create New Key टैप करें। AirBuild तुरंत key बनाता है, और कार्ड पर लिखा होता है “A new upload key signs this app”।

जवाब देने के बाद

दोनों में से किसी भी तरह, एजेंट को बताया जाता है कि key तैयार है और वह आगे बढ़ता है। आप चैट में किसी एजेंट को keystore भेज भी सकते हैं, या शब्दों में नई key माँग सकते हैं; एजेंट android-key command इस्तेमाल करता है। देखें android-key, जिसमें पहले की key वापस लाना और key export करना भी बताया गया है। key की copy माँगने या किसी पिछली key पर वापस जाने के लिए, देखें अपनी Android upload key की copy पाएँ, या किसी पिछली key पर वापस जाएँ।

जब आप प्रोजेक्ट को दूसरी टीम में ले जाते हैं, तो उसकी upload keys उसके साथ जाती हैं।

PocketJS ऐप आज़माएँ

  1. Preview खोलें और device मेनू खोलें।
  2. PocketJS Beta के नीचे PSP, PS Vita या Nintendo 3DS चुनें।
  3. handheld की स्क्रीन पर खेलें।

तैयार होते समय स्क्रीन पर Loading… या Starting Environment… लिखा होता है। पहले build से पहले उस पर लिखा होता है “The app appears here after its first build.” अगर प्रोजेक्ट में कोई PocketJS ऐप नहीं है, तो लिखा होता है “This project has no PocketJS app yet. Ask the Agent to make one.” अगर build आपके चुने handheld के लिए नहीं बना था, तो लिखा होता है “This build was not made for the handheld.” किसी एजेंट से उस handheld के लिए भी build करने को कहें।

जब कोई एजेंट नया build बनाता है, तो एक सूचना कहती है “A new build is ready.” आप जो गेम खेल रहे हैं वह बदला नहीं जाता: नया build शुरू करने के लिए Reload टैप करें।

Tool यह क्या करता है
Screenshot स्क्रीन की तस्वीर चैट के message box में रखता है, ताकि आप उसे अपने एजेंटों को भेज सकें।
Restart App गेम फिर से शुरू करता है।
Enter Full Screen handheld को अकेले दिखाता है। Exit Full Screen चैट वापस लाता है।

handheld के बटन दबाएँ, या keyboard इस्तेमाल करें:

Key बटन
Arrow keys D-pad
X Cross
Z Circle
C Square
V Triangle
Space या Return Start
Tab Select
Q बायाँ shoulder बटन
E दायाँ shoulder बटन

AirBuild में गेम को असली handheld पर डालने का कोई तरीका नहीं है।

सवाल

जब कार्ड पर अपलोड काम नहीं करता, तो कार्ड खुला रहता है ताकि आप फिर से कोशिश कर सकें:

आपको क्या दिखता है क्या करें
“This keystore uses the old JKS format, which isn’t supported. Convert it with “keytool -importkeystore -srckeystore upload.jks -destkeystore upload.p12 -deststoretype pkcs12”, or export the key again from Android Studio, then upload the new file.” नीचे दी गई command से keystore बदलें, फिर .p12 फ़ाइल अपलोड करें।
“That password doesn’t open this keystore. Check it and try again.” keystore का password फिर से लिखें।
“This file isn’t a keystore AirBuild can read. Choose the .p12, .jks or .keystore file the app is signed with.” या “This file can’t be read as a keystore. Choose the .jks, .keystore or .p12 file the app is signed with.” वह keystore फ़ाइल चुनें जिससे ऐप signed है।
“This keystore holds more than one key. Export only the key you sign this app with into a keystore of its own, then upload that.” सिर्फ़ वह key एक नए keystore में export करें और उसे अपलोड करें।
“The key in this keystore doesn’t match its certificate. Export the key you sign this app with again, then upload that.” key फिर से export करें और नई फ़ाइल अपलोड करें।
“This file is too large to be a keystore. Choose the .p12, .jks or .keystore file the app is signed with.” आपने किसी दूसरी तरह की फ़ाइल चुनी है। keystore चुनें।
“Unable to upload the keystore. Check your connection and try again.” जाँचें कि आप online हैं और Upload फिर से टैप करें।
“This answer can’t be sent. Update AirBuild and try again.” AirBuild अपडेट करें।

पुराने JKS keystore को PKCS#12 में बदलने के लिए:

टर्मिनल विंडो
keytool -importkeystore -srckeystore upload.jks -destkeystore upload.p12 -deststoretype pkcs12
प्रोजेक्ट ले जाते समय संदेश आता है कि दूसरी टीम के पास पहले से एक अलग Android upload key है।
संदेश में लिखा होता है “Team already has a different Android upload key for package, and Google Play accepts only one, so the app was not moved. It is still on Team.” जिस टीम में आप ले जा रहे हैं, उसके पास उसी ऐप के लिए पहले से कोई दूसरी key है। प्रोजेक्ट जहाँ है वहीं रहता है।
Preview के device मेनू में Android Beta नहीं है।
Android ऐप सिर्फ़ cloud टीमों में build होते हैं, इसलिए local टीम में Android Beta नहीं होता। iPhone और iPad पर, जिस तरह के ऐप आपका प्रोजेक्ट build नहीं करता, वे एक submenu में होते हैं; Mac पर वे तब तक नहीं दिखते जब तक प्रोजेक्ट में उस तरह का ऐप न हो।
Download APK फ़ाइल की जगह एक संदेश दिखाता है।
“Couldn’t download APK. Try again.” फिर से कोशिश करें। अगर प्रोजेक्ट ने कभी अपना Android ऐप build नहीं किया है, तो पहले किसी एजेंट से उसे build करने को कहें।
Google Play पर अपलोड करने के लिए build कैसे पाऊँ?
किसी एजेंट से signed release build माँगें। AirBuild उसे आपके लिए Google Play पर अपलोड नहीं करता, और ऐप में release फ़ाइल के लिए कोई बटन नहीं है: जिस एजेंट ने उसे बनाया, उसी से कहें कि वह उसे आप तक पहुँचाए।
PocketJS स्क्रीन कहती है कि ऐप load नहीं हो सका।
“The app could not be loaded.” या “The app stopped with an error.” Try Again टैप करें। अगर फिर से ऐसा हो, तो चैट में अपने एजेंटों को बताएँ कि आपको क्या दिख रहा है, ताकि वे गेम ठीक कर सकें।