Skip to content

Commit b00a350

Browse files
committed
feat(warcraft): add warcraft offline start script
1 parent e858f00 commit b00a350

File tree

3 files changed

+16
-30
lines changed

3 files changed

+16
-30
lines changed

nix/modules/w3champions/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ in {
9292
categories = ["Game"];
9393
genericName = "The godfather of RTS";
9494
icon = "${self}/assets/Warcraft.png";
95-
exec = "${warcraft-scripts}/bin/battlenet";
95+
exec = "${warcraft-scripts}/bin/warcraft";
9696
terminal = false;
9797
};
9898
};

nix/modules/w3champions/flo/default.nix

Lines changed: 0 additions & 29 deletions
This file was deleted.

nix/overlays/warcraft-scripts.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,21 @@
7272
LUTRIS_SKIP_INIT=1 lutris lutris:rungame/battlenet
7373
'';
7474
};
75+
warcraft = pkgs.writeShellApplication {
76+
name = "warcraft";
77+
runtimeInputs = [
78+
pkgs.lutris
79+
pkgs.libnotify
80+
kill-games
81+
];
82+
text = ''
83+
notify-send "Starting Warcraft III - Offline"
84+
85+
kill-games
86+
87+
LUTRIS_SKIP_INIT=1 lutris lutris:rungame/warcraft
88+
'';
89+
};
7590
w3champions = pkgs.writeShellApplication {
7691
name = "w3champions";
7792
runtimeInputs = [

0 commit comments

Comments
 (0)