<p></p>
<p>The current android packaging system is based on rebuilding the whole commandergenius-based port of the ohrrpgce source with additional data files, but this is unnecessary and overcomplicated</p>
<p>Instead we should have a pre-compiled apk template, and then the distribute game menu can download it, and handle</p>
<ul>
<li>adding the rpg datafiles</li>
<li>updating whatever apk metadata needs to change</li>
<li>updating the icon</li>
<li>updating the button images</li>
<li>zip aligning</li>
<li>apk signing</li>
</ul>
<h1>template build</h1>
<p>The template build will be similar to the existing ohrrpgce-game-android-debug.apk build, except that it will be a release build instead of a debug build, and that it will not attempt any signing</p>
<p>Getting this into the build system is a necessary prerequisite to have a template that can be used to perform all the other steps on</p>
<h1>dependencies</h1>
<p>We need to figure out the minimum set of tools necessary to make all the needed changes to the apk file. Then we can check the licensing on those, and determine if we can distribute them the same way as we currently distribute other helper applications. If that isn't possible, either because of licenses or because of the number of tools, or their own chain of dependencies, then it might turn out to be simpler to require the user to install the Android SDK themselves, and the distribute game menu would just have to know the location of it before it could proceed with exporting for android. (That would still be a big improvement on the current build android system)</p>
<h1>Icon and button images</h1>
<p>These could conceivable be included in the rpg file, although we would probably still make copies of them in the apk file. We could also just require them to be placed into a special subfolder with a simple naming scheme</p>
<h1>Signing</h1>
<p>The signing certificates can be automatically generated, but they CANNOT be embedded into the rpg file, and it will be important to let the users know the importance of protecting them and keeping them backed up, as we will not be able to recover lost certificates, and we need to make sure people understand the importance of not sharing them. Possible naming scheme: <strong>gamename-please-backup-this-file-and-seriously-do-not-share-it-with-anyone.keystore</strong></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/ohrrpgce/ohrrpgce/issues/1228">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMWGWZT7XAYXHFFVJBYZ64LUKSAMJANCNFSM5HO6NGGA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AMWGWZTOK6Z2H52ERE3TAM3UKSAMJA5CNFSM5HO6NGGKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4PS5UIYQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/ohrrpgce/ohrrpgce/issues/1228",
"url": "https://github.com/ohrrpgce/ohrrpgce/issues/1228",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>