-
Notifications
You must be signed in to change notification settings - Fork 53
/
Build-OverallPackage.ps1
26 lines (17 loc) · 1 KB
/
Build-OverallPackage.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
param(
# If a version string is specified, a NuGet package will be created.
[string] $NugetPackageVersion,
# If a version string is specified, a NuGet package will be created.
[string] $FFmpegPackageVersion,
# If a version string is specified, a NuGet package will be created.
[string] $LibPackageVersion,
[version] $WindowsTargetPlatformVersion = '10.0.22000.0',
# FFmpegInteropX NuGet settings
[string] $FFmpegInteropXUrl = 'https://github.com/ffmpeginteropx/FFmpegInteropX.git',
[string] $FFmpegInteropXBranch = $(git branch --show-current),
[string] $FFmpegInteropXCommit = $(git --git-dir Libs/ffmpeg/.git rev-parse HEAD)
)
nuget pack .\Build\FFmpegInteropX.nuspec `
-Properties "id=FFmpegInteropX;repositoryUrl=$FFmpegUrl;repositoryCommit=$FFmpegCommit;winsdk=$WindowsTargetPlatformVersion;libversion=$LibPackageVersion;ffmpegversion=$FFmpegPackageVersion;NoWarn=NU5128" `
-Version $NugetPackageVersion `
-OutputDirectory "${PSScriptRoot}\Output\NuGet"