Use the new deploy scripts.
This commit is contained in:
parent
e408aad47c
commit
afa08311c8
8 changed files with 47 additions and 93 deletions
|
@ -16,7 +16,7 @@ REM along with Webcamoid. If not, see <http://www.gnu.org/licenses/>.
|
|||
REM
|
||||
REM Web-Site: http://webcamoid.github.io/
|
||||
|
||||
set INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%\ports\deploy\temp_priv
|
||||
set INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%\webcamoid-data
|
||||
|
||||
echo.
|
||||
echo Building x64 virtual camera driver
|
||||
|
|
|
@ -22,11 +22,14 @@ if "%PLATFORM%" == "x86" (
|
|||
set PYTHON_PATH=C:\%PYTHON_VERSION%-x64
|
||||
)
|
||||
|
||||
cd ports/deploy
|
||||
git clone https://github.com/webcamoid/DeployTools.git
|
||||
cd ../..
|
||||
set INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%\webcamoid-data
|
||||
set PACKAGES_DIR=%APPVEYOR_BUILD_FOLDER%\webcamoid-packages
|
||||
|
||||
set PYTHONPATH=%cd%\ports\deploy\DeployTools
|
||||
git clone https://github.com/webcamoid/DeployTools.git
|
||||
|
||||
set PYTHONPATH=%cd%\DeployTools
|
||||
set BUILD_PATH=%cd%\build-x64
|
||||
set INSTALL_PATH=%INSTALL_PREFIX%
|
||||
%PYTHON_PATH%\python.exe ports\deploy\deploy.py
|
||||
%PYTHON_PATH%\python.exe DeployTools\deploy.py ^
|
||||
-d "%INSTALL_PREFIX%" ^
|
||||
-c "%BUILD_PATH%\package_info.conf" ^
|
||||
-o "%PACKAGES_DIR%"
|
||||
|
|
|
@ -16,8 +16,10 @@ REM along with Webcamoid. If not, see <http://www.gnu.org/licenses/>.
|
|||
REM
|
||||
REM Web-Site: http://webcamoid.github.io/
|
||||
|
||||
set PACKAGES_DIR=%APPVEYOR_BUILD_FOLDER%\webcamoid-packages
|
||||
|
||||
if not "%DAILY_BUILD%" == "" (
|
||||
for %%f in (ports\deploy\packages_auto\windows\*.exe) do (
|
||||
for %%f in (%PACKAGES_DIR%\*) do (
|
||||
appveyor PushArtifact %%f
|
||||
)
|
||||
)
|
||||
|
|
|
@ -16,13 +16,15 @@ REM along with Webcamoid. If not, see <http://www.gnu.org/licenses/>.
|
|||
REM
|
||||
REM Web-Site: http://webcamoid.github.io/
|
||||
|
||||
set PACKAGES_DIR=%APPVEYOR_BUILD_FOLDER%\webcamoid-packages
|
||||
|
||||
if not "%DAILY_BUILD%" == "" (
|
||||
jfrog bt config ^
|
||||
--user=hipersayanx ^
|
||||
--key=%BT_KEY% ^
|
||||
--licenses=GPL-3.0-or-later
|
||||
|
||||
for %%f in (ports\deploy\packages_auto\windows\*.exe) do (
|
||||
for %%f in (%PACKAGES_DIR%\*) do (
|
||||
jfrog bt upload ^
|
||||
--user=hipersayanx ^
|
||||
--key=%BT_KEY% ^
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
# Web-Site: http://webcamoid.github.io/
|
||||
|
||||
BUILDSCRIPT=dockerbuild.sh
|
||||
INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/ports/deploy/temp_priv
|
||||
INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/webcamoid-data
|
||||
|
||||
if [ "${TRAVIS_OS_NAME}" = linux ]; then
|
||||
sudo mount --bind root.x86_64 root.x86_64
|
||||
|
|
|
@ -22,9 +22,7 @@ if [ "${TRAVIS_OS_NAME}" = linux ]; then
|
|||
EXEC='sudo ./root.x86_64/bin/arch-chroot root.x86_64'
|
||||
fi
|
||||
|
||||
cd ports/deploy
|
||||
git clone https://github.com/webcamoid/DeployTools.git
|
||||
cd ../..
|
||||
|
||||
DEPLOYSCRIPT=deployscript.sh
|
||||
|
||||
|
@ -38,9 +36,10 @@ if [ "${TRAVIS_OS_NAME}" = linux ]; then
|
|||
export LC_ALL=C
|
||||
export HOME=${HOME}
|
||||
export PATH="${TRAVIS_BUILD_DIR}/.local/bin:\$PATH"
|
||||
export PYTHONPATH="${TRAVIS_BUILD_DIR}/ports/deploy/DeployTools"
|
||||
export INSTALL_PREFIX="${TRAVIS_BUILD_DIR}/webcamoid-data"
|
||||
export PACKAGES_DIR="${TRAVIS_BUILD_DIR}/webcamoid-packages/windows"
|
||||
export PYTHONPATH="${TRAVIS_BUILD_DIR}/DeployTools"
|
||||
export BUILD_PATH="${TRAVIS_BUILD_DIR}/build-x64"
|
||||
export INSTALL_PATH=${TRAVIS_BUILD_DIR}/ports/deploy/temp_priv
|
||||
export WINEPREFIX=/opt/.wine
|
||||
cd $TRAVIS_BUILD_DIR
|
||||
EOF
|
||||
|
@ -58,7 +57,10 @@ cd ..
|
|||
cd build-x86
|
||||
cmake --build . --target install
|
||||
cd ..
|
||||
python ports/deploy/deploy.py
|
||||
python ports/deploy/deploy.py \
|
||||
-d "\${INSTALL_PREFIX}" \
|
||||
-c "\${BUILD_PATH}/package_info.conf" \
|
||||
-o "\${PACKAGES_DIR}"
|
||||
EOF
|
||||
chmod +x ${DEPLOYSCRIPT}
|
||||
sudo cp -vf ${DEPLOYSCRIPT} root.x86_64/$HOME/
|
||||
|
@ -71,8 +73,12 @@ elif [ "${TRAVIS_OS_NAME}" = osx ]; then
|
|||
cmake --build . --target install
|
||||
cd ..
|
||||
|
||||
export PYTHONPATH="${PWD}/ports/deploy/DeployTools"
|
||||
export INSTALL_PREFIX="${PWD}/webcamoid-data"
|
||||
export PACKAGES_DIR="${PWD}/webcamoid-packages/mac"
|
||||
export PYTHONPATH="${PWD}/DeployTools"
|
||||
export BUILD_PATH="${PWD}/build"
|
||||
export INSTALL_PATH=${TRAVIS_BUILD_DIR}/ports/deploy/temp_priv
|
||||
python3 ports/deploy/deploy.py
|
||||
python3 ports/deploy/deploy.py \
|
||||
-d "${INSTALL_PREFIX}" \
|
||||
-c "${BUILD_PATH}/package_info.conf" \
|
||||
-o "${PACKAGES_DIR}"
|
||||
fi
|
||||
|
|
|
@ -1,62 +0,0 @@
|
|||
function Controller()
|
||||
{
|
||||
installer.autoRejectMessageBoxes();
|
||||
installer.setMessageBoxAutomaticAnswer("OverwriteTargetDirectory", QMessageBox.Yes);
|
||||
installer.setMessageBoxAutomaticAnswer("stopProcessesForUpdates", QMessageBox.Ignore);
|
||||
installer.installationFinished.connect(function() {
|
||||
gui.clickButton(buttons.NextButton);
|
||||
})
|
||||
}
|
||||
|
||||
Controller.prototype.WelcomePageCallback = function()
|
||||
{
|
||||
gui.clickButton(buttons.NextButton, 10000);
|
||||
}
|
||||
|
||||
Controller.prototype.CredentialsPageCallback = function()
|
||||
{
|
||||
gui.clickButton(buttons.NextButton);
|
||||
}
|
||||
|
||||
Controller.prototype.IntroductionPageCallback = function()
|
||||
{
|
||||
gui.clickButton(buttons.NextButton);
|
||||
}
|
||||
|
||||
Controller.prototype.TargetDirectoryPageCallback = function()
|
||||
{
|
||||
//gui.currentPageWidget().TargetDirectoryLineEdit.setText(installer.value("HomeDir") + "/Qt");
|
||||
gui.currentPageWidget().TargetDirectoryLineEdit.setText(installer.value("InstallerDirPath") + "/Qt");
|
||||
gui.clickButton(buttons.NextButton);
|
||||
}
|
||||
|
||||
Controller.prototype.ComponentSelectionPageCallback = function()
|
||||
{
|
||||
var widget = gui.currentPageWidget();
|
||||
|
||||
widget.deselectAll();
|
||||
widget.selectComponent("qt.qt5.5141.android");
|
||||
|
||||
gui.clickButton(buttons.NextButton);
|
||||
}
|
||||
|
||||
Controller.prototype.LicenseAgreementPageCallback = function()
|
||||
{
|
||||
gui.currentPageWidget().AcceptLicenseRadioButton.setChecked(true);
|
||||
gui.clickButton(buttons.NextButton);
|
||||
}
|
||||
|
||||
Controller.prototype.ReadyForInstallationPageCallback = function()
|
||||
{
|
||||
gui.clickButton(buttons.NextButton);
|
||||
}
|
||||
|
||||
Controller.prototype.FinishedPageCallback = function()
|
||||
{
|
||||
var checkBoxForm = gui.currentPageWidget().LaunchQtCreatorCheckBoxForm
|
||||
|
||||
if (checkBoxForm && checkBoxForm.launchQtCreatorCheckBox)
|
||||
checkBoxForm.launchQtCreatorCheckBox.checked = false;
|
||||
|
||||
gui.clickButton(buttons.FinishButton);
|
||||
}
|
|
@ -24,12 +24,15 @@ else
|
|||
export DOWNLOAD_CMD="curl --retry 10 -sS -kLOC -"
|
||||
fi
|
||||
|
||||
if [ "${TRAVIS_OS_NAME}" = linux ]; then
|
||||
BUILD_FOLDER=build-x64
|
||||
else
|
||||
BUILD_FOLDER=build
|
||||
fi
|
||||
|
||||
if [[ ! -z "$DAILY_BUILD" || ! -z "$RELEASE_BUILD" ]]; then
|
||||
if [ -z "$DAILY_BUILD" ]; then
|
||||
VER_MAJ=$(grep -re '^VER_MAJ[[:space:]]*=[[:space:]]*' commons.pri | awk '{print $3}')
|
||||
VER_MIN=$(grep -re '^VER_MIN[[:space:]]*=[[:space:]]*' commons.pri | awk '{print $3}')
|
||||
VER_PAT=$(grep -re '^VER_PAT[[:space:]]*=[[:space:]]*' commons.pri | awk '{print $3}')
|
||||
version=$VER_MAJ.$VER_MIN.$VER_PAT
|
||||
version=$(grep -re '^version[[:space:]]*=[[:space:]]*' ${BUILD_FOLDER}/package_info.conf | awk -F= '{print $2}' | tr -d ' ')
|
||||
publish=false
|
||||
else
|
||||
version=daily-$TRAVIS_BRANCH
|
||||
|
@ -45,7 +48,7 @@ if [[ ! -z "$DAILY_BUILD" || ! -z "$RELEASE_BUILD" ]]; then
|
|||
--key=$BT_KEY \
|
||||
--licenses=GPL-3.0-or-later
|
||||
|
||||
path=ports/deploy/packages_auto
|
||||
path=webcamoid-packages
|
||||
|
||||
for f in $(find $path -type f); do
|
||||
packagePath=${f#$path/}
|
||||
|
@ -89,7 +92,7 @@ if [[ ! -z "$DAILY_BUILD" || ! -z "$RELEASE_BUILD" ]]; then
|
|||
fi
|
||||
|
||||
if [ ! -z "$hubTag" ]; then
|
||||
path=ports/deploy/packages_auto
|
||||
path=webcamoid-packages
|
||||
|
||||
for f in $(find $path -type f); do
|
||||
hubTag=$(hub release -df '%T %t%n' | grep 'Daily Build' | awk '{print $1}' | sed 's/.*://')
|
||||
|
|
Loading…
Reference in a new issue