mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
cmd/gogio: group buildInfo related code
Signed-off-by: Walter Werner SCHNEIDER <contact@schnwalter.eu>
This commit is contained in:
committed by
Elias Naur
parent
7eb32360e5
commit
3c739323cb
@@ -111,7 +111,7 @@ func buildAndroid(tmpDir string, bi *buildInfo) error {
|
||||
"CGO_ENABLED=1",
|
||||
),
|
||||
}
|
||||
pkgs, err := packages.Load(cfg, bi.pkg)
|
||||
pkgs, err := packages.Load(cfg, bi.pkgPath)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -205,7 +205,7 @@ func compileAndroid(tmpDir string, tools *androidTools, bi *buildInfo) (err erro
|
||||
"-buildmode=c-shared",
|
||||
"-tags", bi.tags,
|
||||
"-o", libFile,
|
||||
bi.pkg,
|
||||
bi.pkgPath,
|
||||
)
|
||||
cmd.Env = append(
|
||||
os.Environ(),
|
||||
@@ -352,7 +352,7 @@ func exeAndroid(tmpDir string, tools *androidTools, bi *buildInfo, extraJars, pe
|
||||
}
|
||||
icon := *iconPath
|
||||
if icon == "" {
|
||||
icon = filepath.Join(bi.dir, "appicon.png")
|
||||
icon = filepath.Join(bi.pkgDir, "appicon.png")
|
||||
}
|
||||
iconSnip := ""
|
||||
if _, err := os.Stat(icon); err == nil {
|
||||
|
||||
Reference in New Issue
Block a user