Documentation
¶
Index ¶
- Constants
- func Install(options types.InstallOptions, config config.Store) error
- func List(zapConfig config.Store, index bool) ([]string, error)
- func Remove(options types.RemoveOptions, config config.Store) error
- func Update(options types.Options, config config.Store) error
- func Upgrade(config config.Store, silent bool) ([]string, error)
- type AppImage
- type Source
- type SourceMetadata
Constants ¶
const ( SourceGitHub = "git.github" SourceDirectURL = "raw.url" SourceZapIndex = "idx.zap" )
Variables ¶
This section is empty.
Functions ¶
func Remove ¶
func Remove(options types.RemoveOptions, config config.Store) error
Remove function helps to remove an appimage, given its executable name with which it was registered
Types ¶
type AppImage ¶
type AppImage struct { Filepath string `json:"filepath"` Executable string `json:"executable"` IconPath string `json:"icon_path,omitempty"` IconPathHicolor string `json:"icon_path_hicolor,omitempty"` DesktopFile string `json:"desktop_file,omitempty"` Source Source `json:"source"` }
func RemoveAndInstall ¶
func RemoveAndInstall(options types.InstallOptions, config config.Store, app *AppImage) (*AppImage, error)
RemoveAndInstall helps to remove the AppImage first and then reinstall the appimage. this is particularly used in updating the AppImages from GitHub and Zap Index when the update information is missing
func UpdateInPlace ¶
func UpdateInPlace(options types.InstallOptions, config config.Store, app *AppImage) (*AppImage, error)
UpdateInPlace is used to first download a appImage and then after is safe remove the old one
func (AppImage) ExtractDesktopFile ¶
ExtractDesktopFile helps to extract the thumbnails to config.icons directory with the apps' basename and png as the Name */
func (*AppImage) ExtractThumbnail ¶
ExtractThumbnail helps to extract the thumbnails to config.icons directory * with the apps' basename and png as the Name
func (*AppImage) ProcessDesktopFile ¶
ProcessDesktopFile extracts the desktop file, adds appimage specific keys, and updates them.
type Source ¶
type Source struct { Identifier string `json:"identifier,omitempty"` Meta SourceMetadata `json:"meta,omitempty"` }