Ok let's try another approach to the build conundrum
This commit is contained in:
Родитель
4398feb99e
Коммит
2f51bec601
|
@ -305,4 +305,6 @@ sysinfo.txt
|
|||
*.unitypackage
|
||||
/downloads
|
||||
/embedded-git.json
|
||||
lib/deps.zip
|
||||
lib/deps.zip
|
||||
nbgv.exe
|
||||
.store
|
|
@ -14,9 +14,13 @@ build:
|
|||
scripts\Get-Deps.ps1
|
||||
scripts\Build.ps1
|
||||
|
||||
Get-ChildItem Env:
|
||||
Write-Output "Do we have a version? $env:GitAssemblyInformationalVersion"
|
||||
scripts\Create-Packages.ps1 $env:GitAssemblyInformationalVersion
|
||||
dotnet tool install --tool-path . nbgv
|
||||
Push-Location src\com.unity.git.api
|
||||
$version = ..\..\nbgv get-version -f json | ConvertFrom-Json
|
||||
Pop-Location
|
||||
|
||||
Write-Output "Packaging version $($version.AssemblyInformationalVersion)"
|
||||
scripts\Create-Packages.ps1 $($version.AssemblyInformationalVersion)
|
||||
|
||||
triggers:
|
||||
branches:
|
||||
|
|
|
@ -11,7 +11,9 @@ Param(
|
|||
[string]
|
||||
$Version,
|
||||
[switch]
|
||||
$Trace = $false
|
||||
$Trace = $false,
|
||||
[switch]
|
||||
$Verbose = $false
|
||||
)
|
||||
|
||||
Set-StrictMode -Version Latest
|
||||
|
@ -35,6 +37,9 @@ $ignorefile="$srcDir\$pkgName\.npmignore"
|
|||
$baseInstall="Packages\$pkgName"
|
||||
$outDir=$artifactDir
|
||||
|
||||
if ($Verbose) {
|
||||
Write-Output "$packagingScriptsDir\run.ps1 $pkgSrcDir $outDir $pkgName $Version $extrasDir $ignorefile $baseInstall"
|
||||
}
|
||||
Run-Command -Fatal -Quiet { & $packagingScriptsDir\run.ps1 $pkgSrcDir $outDir $pkgName $Version $extrasDir $ignorefile $baseInstall }
|
||||
|
||||
$pkgName="com.unity.git.ui"
|
||||
|
@ -44,4 +49,7 @@ $ignorefile="$srcDir\$pkgName\.npmignore"
|
|||
$baseInstall="Packages\$pkgName"
|
||||
$outDir=$artifactDir
|
||||
|
||||
if ($Verbose) {
|
||||
Write-Output "$packagingScriptsDir\run.ps1 $pkgSrcDir $outDir $pkgName $Version $extrasDir $ignorefile $baseInstall"
|
||||
}
|
||||
Run-Command -Fatal { & $packagingScriptsDir\run.ps1 $pkgSrcDir $outDir $pkgName $Version $extrasDir $ignorefile $baseInstall }
|
||||
|
|
Загрузка…
Ссылка в новой задаче