cmd/gio: change all occurences of *appID with the buildInfo field

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-08-24 17:44:14 +01:00
parent b34389ac2c
commit 6433cb2d88
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -200,7 +200,7 @@ func archiveAndroid(tmpDir string, bi *buildInfo) (err error) {
}
func exeAndroid(tmpDir string, tools *androidTools, bi *buildInfo) (err error) {
if *appID == "" {
if bi.appID == "" {
return errors.New("app id is empty; use -appid to set it")
}
classes := filepath.Join(tmpDir, "classes")
@@ -310,7 +310,7 @@ func exeAndroid(tmpDir string, tools *androidTools, bi *buildInfo) (err error) {
</intent-filter>
</activity>
</application>
</manifest>`, *appID, bi.version, bi.version, iconSnip, appName, appName)
</manifest>`, bi.appID, bi.version, bi.version, iconSnip, appName, appName)
manifest := filepath.Join(tmpDir, "AndroidManifest.xml")
if err := ioutil.WriteFile(manifest, []byte(manifestSrc), 0660); err != nil {
return err