This repository contains a unified solution with my SMAPI mods for Stardew Valley for convenience. The actual mod projects are in separate Git repos; this readme explains how to fetch them into the solution folder.
The commands assume Bash, which you can run in a terminal in Linux/Mac or using Git Bash on Windows.
-
Clone this repo.
-
Run this from the solution folder to clone the mod repos:
cat mod-list.txt | grep -e '^\w' | sed -e 's/^[[:space:]]*(.*)[[:space:]]*$/$1/' | while read -r repo; do git clone https://github.com/spacechase0/$repo.git done
-
Clone Tiled.Net:
git clone https://github.com/napen123/Tiled.Net.git
-
Open the solution in Visual Studio.
To update all repos to match the server (assuming you have no local changes):
cat mod-list.txt | grep -e '^\w' | sed -e 's/^[[:space:]]*(.*)[[:space:]]*$/$1/' | while read -r repo; do
(
cd $repo;
git pull;
)
done
Although you can make changes across all repos, each mod still has its own separate repo. To commit changes, you'll need to open each individual repo folder and commit the changes there.
The mod list is in mod-list.txt
; just add new repo names to that file, and it'll be handled by
the commands in this file.