flutter.mkFlutterApp: fix installing .desktop

Previously this was pulling from $built, which got moved to $out/app,
so the glob didn't do anything. Now uses find on $out/app
This commit is contained in:
Maciej Krüger 2022-02-20 18:44:18 +01:00
parent 141644ff03
commit 0bd82b7767
No known key found for this signature in database
GPG Key ID: 0D948CE19CF49C5F

View File

@ -254,9 +254,10 @@ let
mkdir -p $out/bin
mv $built $out/app
for f in $built/data/flutter_assets/assets/*.desktop; do
for f in $(find $out/app -iname "*.desktop" -type f); do
install -D $f $out/share/applications/$(basename $f)
done
for f in $(find $out/app -maxdepth 1 -type f); do
ln -s $f $out/bin/$(basename $f)
done