localsend: darwin: link binary to $out/bin

This commit is contained in:
Guanran Wang 2024-02-11 20:23:05 +08:00
parent 952804a3d2
commit ed27463277
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,7 @@
, pkg-config
, libayatana-appindicator
, undmg
, makeBinaryWrapper
}:
let
@ -72,13 +73,14 @@ let
hash = "sha256-L7V48QoOA0cjx45n+9Xav/zzCzCsZB3TBip0WGusMXg=";
};
nativeBuildInputs = [ undmg ];
nativeBuildInputs = [ undmg makeBinaryWrapper ];
sourceRoot = ".";
installPhase = ''
mkdir -p $out/Applications
cp -r *.app $out/Applications
makeBinaryWrapper $out/Applications/LocalSend.app/Contents/MacOS/LocalSend $out/bin/localsend
'';
meta = metaCommon // {