Merge pull request #235435 from adamcstephens/element-desktop/mac-icon

element-desktop: use upstream icon for darwin
This commit is contained in:
Weijia Wang 2023-06-03 00:48:32 +02:00 committed by GitHub
commit ef35413a1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,6 +123,10 @@ stdenv.mkDerivation (finalAttrs: builtins.removeAttrs pinData [ "hashes" ] // {
mimeTypes = [ "x-scheme-handler/element" ];
};
postFixup = lib.optionalString stdenv.isDarwin ''
cp build/icon.icns $out/Applications/Element.app/Contents/Resources/element.icns
'';
passthru = {
updateScript = ./update.sh;