change wow addon manager
This commit is contained in:
@@ -15,8 +15,8 @@ with lib;
|
|||||||
};
|
};
|
||||||
startAt = mkOption {
|
startAt = mkOption {
|
||||||
type = with types; either str (listOf str);
|
type = with types; either str (listOf str);
|
||||||
default = "*:0/15";
|
default = "*-*-* 01:15:00";
|
||||||
example = "*:0/15";
|
example = "*-*-* 01:15:00";
|
||||||
description = lib.mdDoc ''
|
description = lib.mdDoc ''
|
||||||
The time(s) to run wow-addon-manager updates.
|
The time(s) to run wow-addon-manager updates.
|
||||||
Specified in systemd's time format; see
|
Specified in systemd's time format; see
|
||||||
@@ -112,6 +112,7 @@ with lib;
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
|
Environment = "PATH=${pkgs.wget}/bin:${pkgs.unzip}/bin:${pkgs.gnused}/bin:${pkgs.coreutils}/bin:${pkgs.gnugrep}/bin:${pkgs.git}/bin:${pkgs.curl}:/bin:${pkgs.rsync}/bin";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
environment.etc = {
|
environment.etc = {
|
||||||
|
|||||||
@@ -4,19 +4,17 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
user = "dominik";
|
user = "dominik";
|
||||||
addonList = ''
|
addonList = ''
|
||||||
https://www.curseforge.com/wow/addons/console-port/download
|
https://www.wowinterface.com/downloads/info23536-ConsolePort.html
|
||||||
https://www.curseforge.com/wow/addons/immersion/download
|
https://www.wowinterface.com/downloads/info24714-Immersion.html
|
||||||
https://www.curseforge.com/wow/addons/dynamiccam/download
|
https://www.wowinterface.com/downloads/info25570-DynamicCam.html
|
||||||
https://www.curseforge.com/wow/addons/bagnon/download
|
https://www.wowinterface.com/downloads/info4459-Bagnon.html
|
||||||
https://www.curseforge.com/wow/addons/guidelime/download
|
|
||||||
'';
|
'';
|
||||||
classicAddonList = ''
|
classicAddonList = ''
|
||||||
https://www.curseforge.com/wow/addons/console-port/download
|
https://www.wowinterface.com/downloads/info23536-ConsolePort.html
|
||||||
https://www.curseforge.com/wow/addons/immersion/download
|
https://www.wowinterface.com/downloads/info24714-Immersion.html
|
||||||
https://www.curseforge.com/wow/addons/dynamiccam/download
|
https://www.wowinterface.com/downloads/info25570-DynamicCam.html
|
||||||
https://www.curseforge.com/wow/addons/bagnon/download
|
https://www.wowinterface.com/downloads/info4459-Bagnon.html
|
||||||
https://www.curseforge.com/wow/addons/guidelime/download
|
https://github.com/max-ri/Guidelime.git
|
||||||
https://www.curseforge.com/wow/addons/guidelime_sage/download
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,9 +2,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "wow-addon-manager";
|
name = "wow-addon-manager";
|
||||||
src = "./";
|
src = ./src;
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
mkdir -p $out/share
|
||||||
install -Dm555 wow-addon-manager $out/bin/
|
install -Dm555 wow-addon-manager $out/bin/
|
||||||
install -Dm444 addons.list.sample $out/share/
|
install -Dm444 addons.list.sample $out/share/
|
||||||
install -Dm444 addons.classic.list.sample $out/share/
|
install -Dm444 addons.classic.list.sample $out/share/
|
||||||
|
|||||||
@@ -203,13 +203,13 @@ function dlAddon {
|
|||||||
REMEMBERPATH="$(pwd)"
|
REMEMBERPATH="$(pwd)"
|
||||||
SCRIPTDIR="$(echo $0 | sed 's/\/cullingOfStratholme.sh//g')"
|
SCRIPTDIR="$(echo $0 | sed 's/\/cullingOfStratholme.sh//g')"
|
||||||
ADDONLIST=addon.list
|
ADDONLIST=addon.list
|
||||||
ADDONPATH=/home/dominik/.local/share/Steam/steamapps/compatdata/3525601306/pfx/drive_c/Program Files (x86)/World of Warcraft/_retail_/Interface/AddOns
|
ADDONPATH="/home/dominik/.local/share/Steam/steamapps/compatdata/3525601306/pfx/drive_c/Program Files (x86)/World of Warcraft/_retail_/Interface/AddOns"
|
||||||
|
|
||||||
if [ "$1" == "classic" ]
|
if [ "$1" == "classic" ]
|
||||||
then
|
then
|
||||||
echo "Install mods for classic..."
|
echo "Install mods for classic..."
|
||||||
ADDONLIST=addon.classic.list
|
ADDONLIST=addon.classic.list
|
||||||
ADDONPATH=/home/dominik/.local/share/Steam/steamapps/compatdata/3525601306/pfx/drive_c/Program Files (x86)/World of Warcraft/_classic_/Interface/AddOns
|
ADDONPATH="/home/dominik/.local/share/Steam/steamapps/compatdata/3525601306/pfx/drive_c/Program Files (x86)/World of Warcraft/_classic_era_/Interface/AddOns"
|
||||||
echo ${ADDONLIST}
|
echo ${ADDONLIST}
|
||||||
echo ${ADDONPATH}
|
echo ${ADDONPATH}
|
||||||
fi
|
fi
|
||||||
@@ -230,9 +230,6 @@ do
|
|||||||
ADDONCOUNT=$(($ADDONCOUNT + 1))
|
ADDONCOUNT=$(($ADDONCOUNT + 1))
|
||||||
done < $ALFULL
|
done < $ALFULL
|
||||||
|
|
||||||
GREEN="$(tput setaf 2)"
|
|
||||||
CRESET="$(tput sgr0)"
|
|
||||||
|
|
||||||
if [ "$1" == "list" ]
|
if [ "$1" == "list" ]
|
||||||
then
|
then
|
||||||
printList
|
printList
|
||||||
Reference in New Issue
Block a user