From ef3b5f9935207cd15ae51dbe3b0b7bf45802377c Mon Sep 17 00:00:00 2001 From: develar Date: Fri, 21 Jun 2019 20:24:16 +0200 Subject: [PATCH] fix(appimage): Ensure that AppImages contain valid .DirIcon file Close https://github.com/electron-userland/electron-builder/issues/3988 --- pkg/package-format/appimage/appLauncher.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/package-format/appimage/appLauncher.go b/pkg/package-format/appimage/appLauncher.go index 6ad386b..8428d74 100644 --- a/pkg/package-format/appimage/appLauncher.go +++ b/pkg/package-format/appimage/appLauncher.go @@ -94,6 +94,11 @@ func copyIcons(options *AppImageOptions) ([]IconTemplateInfo, error) { if err != nil { return errors.WithStack(err) } + + err = os.Symlink(iconRelativeToStageFile, filepath.Join(stageDir, ".DirIcon")) + if err != nil { + return errors.WithStack(err) + } } return nil