2 Star 8 Fork 9

樊世超/obs studio-multi-rtmp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.ps1 1.27 KB
一键复制 编辑 原始数据 按行查看 历史
SoraYuki 提交于 2020-05-30 13:19 . Update CI. use same version qt as OBS
param(
[string]$OBS_BIN_DIR32 = "../OBS-Studio-25.0.8-Full-x86",
[string]$OBS_BIN_DIR64 = "../OBS-Studio-25.0.8-Full-x64",
[string]$OBS_SRC_DIR = "../obs-studio-25.0.8",
[string]$QTROOT = "C:/QtDep"
)
$ErrorActionPreference = "Stop"
Set-PSDebug -Trace 1
# find qt directory
$QTDIR32 = [System.IO.Directory]::GetDirectories("c:/QtDep/", "msvc2017", 1)[0].Replace("\", "/")
$QTDIR64 = [System.IO.Directory]::GetDirectories("c:/QtDep/", "msvc2017_64", 1)[0].Replace("\", "/")
$ver = (Select-String -Pattern "obs-multi-rtmp VERSION" -Path CMakeLists.txt -Raw)
$ver = $ver.Split(" ")[2]
$ver = $ver.Remove($ver.Length - 1)
Remove-Item -Path build_x86, build_x64, dist, *.zip -Recurse -ErrorAction Ignore
cmake -DQTDIR="$QTDIR32" -DOBS_BIN_DIR="$OBS_BIN_DIR32" -DOBS_SRC_DIR="$OBS_SRC_DIR" -G "Visual Studio 16 2019" -A Win32 -B build_x86 -DCMAKE_INSTALL_PREFIX=dist .
cmake --build build_x86 --config Release
cmake --install build_x86 --config Release
cmake -DQTDIR="$QTDIR64" -DOBS_BIN_DIR="$OBS_BIN_DIR64" -DOBS_SRC_DIR="$OBS_SRC_DIR" -G "Visual Studio 16 2019" -A x64 -B build_x64 -DCMAKE_INSTALL_PREFIX=dist .
cmake --build build_x64 --config Release
cmake --install build_x64 --config Release
cd dist
cmake -E tar cf "../obs-multi-rtmp_Windows_$ver.zip" --format=zip .
cd ..
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fanshichao/obs-studio-multi-rtmp.git
git@gitee.com:fanshichao/obs-studio-multi-rtmp.git
fanshichao
obs-studio-multi-rtmp
obs studio-multi-rtmp
master

搜索帮助