forked from sdslabs/Rootex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
assets.bat
33 lines (32 loc) · 1.21 KB
/
assets.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@echo off
IF "%1"=="assets-test" (
git submodule deinit -f game/assets
rm -r --force .\game\assets
rm -r --force .\.git\modules\assets
git config --file=.gitmodules submodule.assets.url https://gitlab.com/sdslabs/rootex-assets.git
git config --file=.gitmodules submodule.assets.branch main
git submodule update --init --recursive --remote
cd game/assets
git remote add upstream [email protected]:sdslabs/rootex-assets.git
cd ../..
)
IF "%1"=="assets-game" (
git submodule deinit -f game/assets
rm -r --force .\game\assets
rm -r --force .git\modules\assets
git config --file=.gitmodules submodule.assets.url https://gitlab.com/sdslabs/rootex-game.git
git config --file=.gitmodules submodule.assets.branch main
git submodule update --init --recursive --remote
cd game/assets
git remote add upstream [email protected]:sdslabs/rootex-game.git
cd ../..
)
IF "%1"=="assets-custom" (
git submodule deinit -f game/assets
rm -r --force .\game\assets
rm -r --force .git\modules\assets
git config --file=.gitmodules submodule.assets.url %2
git config --file=.gitmodules submodule.assets.branch main
git submodule update --init --recursive --remote
cd ../..
)