Update packaging/releasing resources/informations
This commit is contained in:
@@ -1,25 +1,26 @@
|
||||
rem add new release tag to master branch of AssaulCube and documentation before start of AC installer preparing
|
||||
rem local branches should be compatible with remote
|
||||
rem you need to have installed 7-Zip and Subversion and added 7z.exe and svn.exe to PATH
|
||||
set acdir=ac
|
||||
set acdircompiled=ac_compiled
|
||||
if not exist "%acdir%\" (mkdir %acdir%) else (rmdir /S /Q %acdir% & mkdir %acdir%)
|
||||
if not exist "%acdircompiled%\" (mkdir %acdircompiled%) else (rmdir /S /Q %acdircompiled% & mkdir %acdircompiled%)
|
||||
set ACDIR=AC
|
||||
set ACDIRTESTING=AC_testing
|
||||
if not exist "%ACDIR%\" (mkdir %ACDIR%) else (rmdir /S /Q %ACDIR% & mkdir %ACDIR%)
|
||||
if not exist "%ACDIRTESTING%\" (mkdir %ACDIRTESTING%) else (rmdir /S /Q %ACDIRTESTING% & mkdir %ACDIRTESTING%)
|
||||
|
||||
rem get tag with name of latest AC version
|
||||
git describe --tags --abbrev=0 > tmpFile
|
||||
set /p latest= < tmpFile
|
||||
set /p NEWACTAG= < tmpFile
|
||||
del tmpFile
|
||||
|
||||
rem get AC files from latest local release tag
|
||||
cd ..\..\..\
|
||||
git archive --format zip --output source\vcpp\buildEnv\%acdir%\%latest%.zip %latest%
|
||||
cd source\vcpp\buildEnv\%acdir%
|
||||
7z x %latest%.zip
|
||||
7z x %latest%.zip -o..\%acdircompiled%
|
||||
del %latest%.zip
|
||||
git archive --format zip --output source\vcpp\buildEnv\%ACDIR%\%NEWACTAG%.zip experimental
|
||||
cd source\vcpp\buildEnv\%ACDIR%
|
||||
7z x %NEWACTAG%.zip
|
||||
7z x %NEWACTAG%.zip -o..\%ACDIRTESTING%
|
||||
del ..\%ACDIRTESTING%\assaultcube.bat
|
||||
del %NEWACTAG%.zip
|
||||
|
||||
rem get documentation files from latest remote release tag
|
||||
svn export --force https://github.com/assaultcube/assaultcube.github.io/tags/%latest%/htdocs/docs/ docs
|
||||
svn export --force https://github.com/assaultcube/assaultcube.github.io/tags/%NEWACTAG%/htdocs/docs/ docs
|
||||
|
||||
pause
|
||||
|
||||
Reference in New Issue
Block a user