mirror of
https://git.sr.ht/~eliasnaur/gio-cmd
synced 2026-07-05 17:35:33 +00:00
gogio: add support for setting app name via command line
This allows the app name to have spaces and other characters not allowed in Go modules. Signed-off-by: Ilia Demianenko <ilia.demianenko@gmail.com>
This commit is contained in:
committed by
Elias Naur
parent
5c14d1ba64
commit
cf291ca3bd
+5
-1
@@ -37,12 +37,16 @@ func newBuildInfo(pkgPath string) (*buildInfo, error) {
|
||||
if *iconPath != "" {
|
||||
appIcon = *iconPath
|
||||
}
|
||||
appName := getPkgName(pkgMetadata)
|
||||
if *name != "" {
|
||||
appName = *name
|
||||
}
|
||||
bi := &buildInfo{
|
||||
appID: appID,
|
||||
archs: getArchs(),
|
||||
ldflags: getLdFlags(appID),
|
||||
minsdk: *minsdk,
|
||||
name: getPkgName(pkgMetadata),
|
||||
name: appName,
|
||||
pkgDir: pkgMetadata.Dir,
|
||||
pkgPath: pkgPath,
|
||||
iconPath: appIcon,
|
||||
|
||||
Reference in New Issue
Block a user