Merge pull request #51404 from fusion809/patch-7

openra: adding individual executables for each mod
This commit is contained in:
Matthew Bauer 2018-12-19 11:04:21 -06:00 committed by GitHub
commit e261fbe6c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,5 +69,11 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin
makeWrapper $out/lib/openra/launch-game.sh $out/bin/openra --run "cd $out/lib/openra"
printf "#!/bin/sh\nexec $out/bin/openra Game.Mod=ra" > $out/bin/openra-ra
chmod +x $out/bin/openra-ra
printf "#!/bin/sh\nexec $out/bin/openra Game.Mod=cnc" > $out/bin/openra-cnc
chmod +x $out/bin/openra-cnc
printf "#!/bin/sh\nexec $out/bin/openra Game.Mod=d2k" > $out/bin/openra-d2k
chmod +x $out/bin/openra-d2k
'';
}