akvirtualcamera/ports/ci/appveyor/deploy.bat
2021-05-24 19:47:39 -03:00

38 lines
1.4 KiB
Batchfile

REM Webcamoid, webcam capture application.
REM Copyright (C) 2017 Gonzalo Exequiel Pedone
REM
REM Webcamoid is free software: you can redistribute it and/or modify
REM it under the terms of the GNU General Public License as published by
REM the Free Software Foundation, either version 3 of the License, or
REM (at your option) any later version.
REM
REM Webcamoid is distributed in the hope that it will be useful,
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
REM GNU General Public License for more details.
REM
REM You should have received a copy of the GNU General Public License
REM along with Webcamoid. If not, see <http://www.gnu.org/licenses/>.
REM
REM Web-Site: http://webcamoid.github.io/
if "%PLATFORM%" == "x86" (
set PYTHON_PATH=C:\%PYTHON_VERSION%
) else (
set PYTHON_PATH=C:\%PYTHON_VERSION%-x64
)
set INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%\webcamoid-data
set PACKAGES_DIR=%APPVEYOR_BUILD_FOLDER%\webcamoid-packages
git clone https://github.com/webcamoid/DeployTools.git
C:\msys64\mingw32\bin\strip.exe "%INSTALL_PREFIX%"\x86\*
C:\msys64\mingw64\bin\strip.exe "%INSTALL_PREFIX%"\x64\*
set PYTHONPATH=%cd%\DeployTools
set BUILD_PATH=%cd%\build-x64
%PYTHON_PATH%\python.exe DeployTools\deploy.py ^
-d "%INSTALL_PREFIX%" ^
-c "%BUILD_PATH%\package_info.conf" ^
-o "%PACKAGES_DIR%"