-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathpush_beta.bat
54 lines (46 loc) · 1.1 KB
/
push_beta.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@ECHO OFF
echo ==== Pushing update to BETA branch ====
if not exist FFXIV_TexTools.sln (
echo TexTools.sln not found -- Incorrect working directory.
EXIT
)
if "%~1"=="" (
SET /P patchver= Enter Version number. [In the form of 'v2.x.x.x']:
) ELSE (
set patchver=%1
)
if %patchver%=="" (
echo Update cancelled. No version number provided.
EXIT
)
echo Creating BETA update %patchver% for Framework Repo...
pause
cd ./lib/xivmoddingframework
git checkout beta
git merge develop --no-ff --no-commit
git commit -m "Beta %patchver%"
git tag -a %patchver% -m "Beta %patchver%"
git push
git push --tags
echo Creating BETA update %patchver% for UI Repo...
pause
cd ../../
git checkout develop
git add ./lib/*
git commit -m "Update Framework Reference to Beta %patchver%"
git checkout beta
git merge develop --no-ff --no-commit
git commit -m "Beta %patchver%"
git tag -a %patchver% -m "Beta %patchver%"
git push
git push --tags
echo Returning to Develop branch...
cd ./lib/xivmoddingframework
git checkout develop
git merge beta --ff-only
git push
cd ../../
git checkout develop
git merge beta --ff-only
git push
pause