https://github.com/pkg6/appgo
Analyzing Apple IPK or Android APK information
https://github.com/pkg6/appgo
Last synced: 3 months ago
JSON representation
Analyzing Apple IPK or Android APK information
- Host: GitHub
- URL: https://github.com/pkg6/appgo
- Owner: pkg6
- License: apache-2.0
- Created: 2024-03-29T15:20:26.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-15T09:04:04.000Z (about 1 year ago)
- Last Synced: 2024-04-16T00:13:03.575Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 460 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# description
The source code comes from a third-party project and is independently used to parse the app package information. Competent people are welcome to submit code.
# According to file suffix
> AppParsePath
>
> AppParseFile
>
> AppParseReader
>
> AppParseMultipartFile~~~
package mainimport (
"fmt"
"io"
"os""github.com/pkg6/appgo"
)func main() {
filename := "./.test_data/ipa.ipa"
f, err := os.Open(filename)
if err != nil {
fmt.Println(err)
}
defer f.Close()
info, _ := appgo.AppParseFile(f)
// ico 保存在本地
filename, buf, _ := info.Icon()
file, _ := os.Create(filename)
defer file.Close()
io.Copy(file, buf)
}
~~~# Obtain APK information
> APKParsePath
>
> APKParseFile
>
> APKParseReader
>
> APKParseMultipartFile~~~
package mainimport (
"fmt""github.com/pkg6/appgo"
)func main() {
info, err := appgo.APKParseFile(".test_data/helloworld.apk")
fmt.Println(info, err)
}~~~
# Obtain IPA information
> IPAParsePath
>
> IPAParseFile
>
> IPAParseReader
>
> IPAParseMultipartFile~~~
package mainimport (
"fmt""github.com/pkg6/appgo"
)func main() {
info, err := appgo.IPAParsePath(".test_data/ipa.ipa")
fmt.Println(info, err)
}
~~~# Link
- https://github.com/iineva/ipa-server/
- https://github.com/pkg6/go-lzfse
- https://github.com/pkg6/go-plist#