diff options
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/games/build-support/build-unity.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/games/build-support/build-unity.nix b/pkgs/games/build-support/build-unity.nix index 0bcfa246..4169870c 100644 --- a/pkgs/games/build-support/build-unity.nix +++ b/pkgs/games/build-support/build-unity.nix @@ -45,7 +45,8 @@ in buildGame ({ ln -s "$out/share/$slugName" "$out/libexec/$slugName/Data" mkdir -p "$out/bin" - makeWrapper "$out/libexec/$slugName/$slugName" "$out/bin/$slugName" + makeWrapper "$out/libexec/$slugName/$slugName" "$out/bin/$slugName" \ + --run "cd '$out/share/$slugName'" iconpath="$out/share/$slugName/Resources/UnityPlayer.png" mkdir -p "$out/share/applications" @@ -62,6 +63,10 @@ in buildGame ({ cp -vRd "$dataDir" "$out/share/$slugName" + if [ -d "$fullName.app" ]; then + cp -vRd -t "$out/share/$slugName" "$fullName.app" + fi + if [ ! -e "$iconpath" ]; then echo "Desktop icon not found at $iconpath." >&2 exit 1 |