cmd/gio: add -version flag

For Android and iOS.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-08-14 17:07:16 +02:00
parent 105d094030
commit b10175b233
3 changed files with 13 additions and 10 deletions
+3 -3
View File
@@ -280,8 +280,8 @@ func exeAndroid(tmpDir string, tools *androidTools, bi *buildInfo) (err error) {
manifestSrc := fmt.Sprintf(`<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="%s"
android:versionCode="1"
android:versionName="1.0">
android:versionCode="%d"
android:versionName="1.0.%d">
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="28" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-feature android:glEsVersion="0x00030000"/>
@@ -297,7 +297,7 @@ func exeAndroid(tmpDir string, tools *androidTools, bi *buildInfo) (err error) {
</intent-filter>
</activity>
</application>
</manifest>`, *appID, appName)
</manifest>`, *appID, bi.version, bi.version, appName)
manifest := filepath.Join(tmpDir, "AndroidManifest.xml")
if err := ioutil.WriteFile(manifest, []byte(manifestSrc), 0660); err != nil {
return err