-
Notifications
You must be signed in to change notification settings - Fork 81
Add packageName to CFBundleIdentifier, add .png extension to linuxDesktopFileIconPath and rename darwin app bundle to remove version in the darwin-dmg packaging #158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ktopFileIconPath and rename darwin app bundle to remove version in the darwin-dmg packaging
I have renamed the .app file to remove the version from it so that when installed the version doesn't show up in the Launchpad, Also I added .png to the linuxDesktopFileIconPath property everywhere since without it right now when the deb is installed, the icon is missing in the launcher. Also added the packageName to CFBundleIdentifier for darwin-dmg, again, a similar change would be needed for darwin-pkg but I couldn't make that happen. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also move the directory in darwin-pkg for consistency (I can help you with this).
(Sidenote: It is correct that the linux-appinage shouldn't contain the file extension per this document: https://docs.appimage.org/reference/appdir.html )
cmd/packaging/darwin-dmg.go
Outdated
@@ -22,6 +22,16 @@ var DarwinDmgTask = &packagingTask{ | |||
if err != nil { | |||
return "", err | |||
} | |||
appFileOriginalPath := fmt.Sprintf("dmgdir/%s %s.app", applicationName, version) | |||
appFileFinalPath := fmt.Sprintf("dmgdir/%s.app", applicationName) | |||
cmdRenameApp := exec.Command("mv", appFileOriginalPath, appFileFinalPath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can just move the directory using go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using os.Rename now in the updated PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have also updated the PR with renaming of bundle for darwin-pks (Would need you to confirm if the patch is OK).
You are correct, the specs do mention that the extension should be omitted but when I tested the linux-deb packaging,
without the extension the icon showed up as blank, atleast for me on elementary OS based on ubuntu 18.04,
and adding the extension fixed the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked at the freedesktop specifications which states that .desktop
files should have the file extension in the icon path, but appimage states that it shouldn't contain it. So everything is alright
I will give this a proper review when I'm back at home in a few days |
@jld3103 Looks like I can't use the --docker option for building darwin-dmg if I install my own fork of hover while the above issues are resolved on the main repo. |
The only reason this could be happening I can think of is that the docker image was not built. I will look at that when I'm back home, but until then you can build the docker image locally using the |
Thanks for the suggestion @jld3103 , that solved the previous error but now build fails with following command: |
That looks really odd. I will look at this tomorrow, but you can also try fixing it if you have time |
So I did a |
@jld3103 That still didn't work, here are the steps I did: Do these steps seem correct ? |
I think they are correct, but you don't need to change the name. That only introduces a new source of errors and is absolutely not necessary. When you build the docker image locally it's going to overwrite the downloaded one so everything works like it's supposed to be. |
I did try that, |
Just use the fork locally to install it by using |
Another issue I noticed is that when linux-deb is built with --docker option, |
Ouh no idea. There should be no difference. My only idea would be library incompatibilities, but I'm not sure if that could even be possible. |
Hey @jld3103 , this should be ready to merge, have tested everything and except for the above build issue with docker for linux-deb everything else works, |
Ok I'll look at this properly in a few hours or so |
LGTM |
No description provided.