mirror of
https://github.com/jcefmaven/jcefbuild.git
synced 2025-12-24 23:45:56 +08:00
Refactor to support dynamic repositories
This commit is contained in:
@@ -15,6 +15,7 @@ if [ ! -f "/jcef/README.md" ]; then
|
||||
git clone ${REPO} /jcef
|
||||
cd /jcef
|
||||
git checkout ${REF}
|
||||
#Temporary CMakeLists patching - beautify in the future
|
||||
rm CMakeLists.txt
|
||||
curl -o CMakeLists.txt https://raw.githubusercontent.com/jcefmaven/jcefbuild/master/CMakeLists.txt
|
||||
else
|
||||
|
||||
@@ -8,12 +8,12 @@ certutil -generateSSTFromWU roots.sst && certutil -addstore -f root roots.sst &&
|
||||
|
||||
:: Check residency of workdir
|
||||
cd ..
|
||||
if exist "jcef\README.md" (echo "Found existing files to build") ^
|
||||
if exist "jcef\README.md" (echo "Found existing files to build" && cd jcef) ^
|
||||
else (echo "Did not find files to build - cloning..." && GOTO :CLONE)
|
||||
|
||||
:BUILD
|
||||
cd jcef
|
||||
rm CMakeLists.txt
|
||||
:: Temporary CMakeLists patching - beautify in the future
|
||||
del /f CMakeLists.txt
|
||||
curl -o CMakeLists.txt https://raw.githubusercontent.com/jcefmaven/jcefbuild/master/CMakeLists.txt
|
||||
|
||||
:: Prepare build dir
|
||||
@@ -51,5 +51,7 @@ GOTO :EOF
|
||||
|
||||
:CLONE
|
||||
if exist jcef rmdir /S /Q jcef
|
||||
git clone https://bitbucket.org/chromiumembedded/java-cef jcef
|
||||
git clone %REPO% jcef
|
||||
cd jcef
|
||||
git checkout %REF%
|
||||
GOTO :BUILD
|
||||
|
||||
Reference in New Issue
Block a user