spotube: use makeBinaryWrapper

This commit is contained in:
Guanran Wang 2024-03-22 02:03:13 +08:00 committed by Weijia Wang
parent 952804a3d2
commit 7b058b7d0e

View file

@ -4,6 +4,7 @@
, autoPatchelfHook
, dpkg
, makeBinaryWrapper
, makeWrapper
, undmg
, wrapGAppsHook
@ -51,13 +52,13 @@ let
sourceRoot = ".";
nativeBuildInputs = [ undmg ];
nativeBuildInputs = [ undmg makeBinaryWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out/Applications $out/bin
cp -r spotube.app $out/Applications
ln -s $out/Applications/spotube.app/Contents/MacOS/spotube $out/bin/spotube
makeBinaryWrapper $out/Applications/spotube.app/Contents/MacOS/spotube $out/bin/spotube
runHook postInstall
'';
};