-
Notifications
You must be signed in to change notification settings - Fork 2
/
build-package.ps1
34 lines (29 loc) · 1.35 KB
/
build-package.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
27
28
29
30
31
32
33
34
param(
[string]$ProjectDir = ".",
[string]$RepoName,
[string]$Name = "Release_x64",
[string]$Configuration = "Release",
[string]$Arch = "x64",
[Parameter(Mandatory=$true)]
[string]$Version,
[Parameter(Mandatory=$true)]
[Hashtable]$Keys
)
# Path to this repository
$BinaryFilesFolder = [IO.Path]::Combine($pwd, $RepoName)
# Path to where the dll files are downloaded for all the platfoms
$PackageFilesPath = [IO.Path]::Combine($pwd, "package-files")
# Copy files over from target to package-files folder
$Files = Get-ChildItem -Path $PackageFilesPath/* -Recurse -Include "linux", "windows", "macos"
foreach($file in $Files){
Write-Output "Copying '$file' into '$BinaryFilesFolder'"
Copy-Item -Path $file -Destination $BinaryFilesFolder -Recurse -Force
}
ls $BinaryFilesFolder
./dotnet/build-package-nuget.ps1 -RepoName $RepoName -ProjectDir $ProjectDir -Name $Name -Configuration $Configuration -Version $Version -SolutionName "FiftyOne.DeviceDetection.sln" `
-CodeSigningKeyVaultUrl $Keys.CodeSigningKeyVaultUrl `
-CodeSigningKeyVaultClientId $Keys.CodeSigningKeyVaultClientId `
-CodeSigningKeyVaultTenantId $Keys.CodeSigningKeyVaultTenantId `
-CodeSigningKeyVaultClientSecret $Keys.CodeSigningKeyVaultClientSecret `
-CodeSigningKeyVaultCertificateName $Keys.CodeSigningKeyVaultCertificateName
exit $LASTEXITCODE