-
Notifications
You must be signed in to change notification settings - Fork 28
/
build-and-pack.ps1
21 lines (17 loc) · 904 Bytes
/
build-and-pack.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Write-Host "Setting up VS dev env...";
$vsPath = &(Join-Path ${env:ProgramFiles(x86)} "\Microsoft Visual Studio\Installer\vswhere.exe") -latest -property installationpath
Import-Module (Join-Path $vsPath "Common7\Tools\Microsoft.VisualStudio.DevShell.dll")
Enter-VsDevShell -VsInstallPath $vsPath -SkipAutomaticLocation -DevCmdArguments '-arch=x64'
Write-Host "Building native source for Windows...";
./install-deps.ps1
cmake nativesrc --preset x64-debug
cmake --build nativesrc\out\build\x64-debug
cmake nativesrc --preset x64-release
cmake --build nativesrc\out\build\x64-release
Write-Host "Building native source for Linux...";
docker build -f Dockerfile.libaurioffmpeglinuxbuild --tag libaurioffmpegproxybuilder .
docker run -it --rm -v .:/aurio libaurioffmpegproxybuilder
Write-Host "Packing...";
./build-nuget-readme.ps1
dotnet pack src -c NugetPackRelease -o dist/nuget
Write-Host "Done :)";