feat: clanker fixxes + postgress
This commit is contained in:
@@ -10,22 +10,6 @@ type Info struct {
|
||||
VersionCode int32
|
||||
}
|
||||
|
||||
// Version returns the versionName from an APK's manifest.
|
||||
func Version(path string) (string, error) {
|
||||
a, err := apk.OpenFile(path)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
defer a.Close()
|
||||
|
||||
v, err := a.Manifest().VersionName.String()
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
return v, nil
|
||||
}
|
||||
|
||||
// Read returns version name and version code from an APK's manifest.
|
||||
func Read(path string) (*Info, error) {
|
||||
a, err := apk.OpenFile(path)
|
||||
|
||||
Reference in New Issue
Block a user