akvirtualcamera/ports/ci/appveyor/deploy.bat
2021-08-03 12:32:54 -03:00

38 lines
1.4 KiB
Batchfile

REM akvirtualcamera, virtual camera for Mac and Windows.
REM Copyright (C) 2021 Gonzalo Exequiel Pedone
REM
REM akvirtualcamera 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 akvirtualcamera 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 akvirtualcamera. 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%\package-data
set PACKAGES_DIR=%APPVEYOR_BUILD_FOLDER%\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%"