{"id":18678079,"url":"https://github.com/pegvin/appimage-go","last_synced_at":"2026-05-01T06:33:52.487Z","repository":{"id":106283174,"uuid":"474986535","full_name":"pegvin/appimage-go","owner":"pegvin","description":"AppImage Manipulation/Interaction From Go","archived":false,"fork":false,"pushed_at":"2022-03-28T15:11:04.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-18T13:49:55.530Z","etag":null,"topics":["appimage","go","golang","linux"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pegvin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-28T12:12:37.000Z","updated_at":"2022-03-28T15:10:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"cc62cf7d-d38d-40c1-920f-8703607d787f","html_url":"https://github.com/pegvin/appimage-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pegvin/appimage-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegvin%2Fappimage-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegvin%2Fappimage-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegvin%2Fappimage-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegvin%2Fappimage-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pegvin","download_url":"https://codeload.github.com/pegvin/appimage-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegvin%2Fappimage-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32487544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["appimage","go","golang","linux"],"created_at":"2024-11-07T09:35:57.720Z","updated_at":"2026-05-01T06:33:52.469Z","avatar_url":"https://github.com/pegvin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AppImage Go\nAppImage Manipulation/Interaction From Go. (Fork of [GoAppImage](https://github.com/probonopd/go-appimage/tree/master/src/goappimage))\n\n---\n## API\n\n#### `NewAppImage(filePath string) error`\nTakes A Path To A AppImage File \u0026 Returns A Struct \u0026 Error, Here The Struct Contains Properties \u0026 Functions To Modify And Get Information About AppImage.\n\n```go\nai, err := appimagego.NewAppImage(\"/path/to/my/application.appimage\")\nif err != nil {\n  panic(err)\n}\n```\n\n---\n\n## Functions\n\n#### `(ai AppImage) Type() int`\nReturns A Integer Between Which Represents The AppImage Type, Where `-1` means invalid AppImage, [See What Other Integers Represent](https://github.com/AppImage/AppImageSpec/blob/master/draft.md#image-format)\n\n```go\nappImageType := ai.Type()\nif appImageType == -1 {\n  panic(\"invalid appimage type: \" + appImageType)\n}\n```\n\n#### `(ai AppImage) ExtractFile(filePath string, destination string, resolveSymlinks bool) (error)`\nExtract a file from the AppImage to the destination (here destination is path to a file \u0026 not a directory).\n\nIf `resolveSymlinks` is true \u0026 if the filepath specified is a symlink, then the actual file is extracted in it's place.\n\n`resolveSymlinks` will have no effect on absolute symlinks (symlinks that start at root).\n\n```go\nerr = ai.ExtractFile(\"application.desktop\", \"extractedEntry.desktop\", true)\nif err != nil {\n  panic(err)\n}\n```\n\n#### `(ai AppImage) ExtractFileReader(filepath string) (io.ReadCloser, error)`\nTries to get an `io.ReadCloser` for the file at filepath \u0026 Returns an error if the path is pointing to a folder.\n\nIf the path is pointing to a symlink, it will try to return the file being pointed to, but only if it's within the AppImage.\n\n```go\nfileReader, err := ai.ExtractFileReader(\"some/file/in/appimage\")\n```\n\n#### `(ai AppImage) Thumbnail() (io.ReadCloser, error)`\nTries to get an `io.ReadCloser` of the AppImage Thumbnail\n\n```go\nthumbnailReader, err := ai.Thumbnail()\n```\n\n#### `(ai AppImage) Icon() (io.ReadCloser, string, error)`\nTries to get an `io.ReadCloser` of the AppImage Icon, returns the `io.ReadCloser` if no errors \u0026 icon path in the appimage\n\n```go\niconReader, iconName, err := ai.Icon()\n```\n\n#### `(ai AppImage) GetUpdateInformation() (string, error)`\nGets the update information string from the AppImage\n\n```go\nupdateInformation, err := ai.GetUpdateInformation()\n```\n\n#### `(ai AppImage) ShallBeIntegrated() bool`\nReturns a boolean representing if that AppImage should be integrated or not.\n\n```go\nshouldBeIntegrated := ai.ShallBeIntegrated()\n```\n\n#### `(ai AppImage) ModTime() time.Time`\nReturns last time the AppImage was modified, it will try to get the information from squashfs if fails then returns the last time the AppImage file was modified.\n\n```go\nlastTimeModified := ai.ModTime()\nfmt.Println(\"Last Time Modified:\", lastTimeModified)\n```\n\n---\n\n## Properties\n\n#### `(ai AppImage) Desktop`\nThe Desktop entry of the appimage as [ini.File](https://pkg.go.dev/gopkg.in/ini.v1#File), which can be used to get properties out of the AppImage's Desktop Entry\n\n#### `(ai AppImage) Name`\nName of the AppImage specified in the Desktop Entry\n\n#### `(ai AppImage) Description`\nDescription of the AppImage specified in the Desktop Entry (The Comment Property)\n\n#### `(ai AppImage) Version`\nVersion of the AppImage specified in the Desktop Entry\n\n#### `(ai AppImage) Categories`\nString array containing the AppImage's Categories specified in the Desktop Entry\n\n#### `(ai AppImage) MimeType`\nString array containing the AppImage's Mime Types\n\n#### `(ai AppImage) Path`\nPath to the AppImage\n\n#### `(ai AppImage) UpdateInformation`\nString which contains information related to appimage's update, contained in the AppImage itself\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpegvin%2Fappimage-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpegvin%2Fappimage-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpegvin%2Fappimage-go/lists"}