Skip to content

Commit

Permalink
feat: try to extract .png icon (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eggrror404 authored Oct 12, 2024
1 parent 9090a77 commit 77eb3d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/appimage.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ func (deflated *DeflatedAppImage) ExtractExecName() (string, error) {
func (metadata *DeflatedAppImageMetadata) CopyIconFile(paths *AppPaths) error {
src, err := os.Open(metadata.IconPath)
if err != nil {
return err
pngPath := path.Join(metadata.AppDir, fmt.Sprintf("%s.png", metadata.ExecName))
src, err = os.Open(pngPath)
if err != nil {
return err
}
}
defer src.Close()
dest, err := os.Create(paths.Icon)
Expand Down

0 comments on commit 77eb3d3

Please sign in to comment.