Update mod from a repo
- The
Modz
class in the updatz file, take two parametersmodz_folder
: the path where to installmodz
modz
: a mod list:
- The
modz
dict is formated as the default config.py file- a
repo_name
, must be uniq, it's contain:- a repo tuple with:
- the branch, if not provided, defaulting to
master
- the link of the repo, mandatory
- the branch, if not provided, defaulting to
- list of
modz
- each target is tried to be found in the
manifest.succ
, where: target
==Name
THEN,target
==id
- each target is tried to be found in the
- a repo tuple with:
- a
- The
Modz
file clone the repo link into.cache/repo_dev_name
if it's not found, otherwise update if needed - see exemple bellow
# INPUT
modz_folder = "/home/pix/.local/share/Steam/steamapps/common/Logic World/GameData"
modz = {
"Ecconia's Main repo": {
"repo": (
"master",
"https://github.com/Ecconia/Ecconia-LogicWorld-Mods.git"
),
"modz": [
"EccsWindowHelper",
"AssemblyLoader",
"WireTracer",
"CustomWirePlacer",
]
},
"GHXX's Main repo": {
"repo": (
"master",
"https://github.com/GHXX/LogicWorld-TcpBridge"
),
"modz": [
"Tcp Bridge"
]
},
}
import git
import os
import re
import requests
import shutils
- implement it in C#