Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
fix: packaging on appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
shana committed Mar 5, 2019
1 parent 11222cd commit 20c594d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
28 changes: 15 additions & 13 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ install:
git submodule update
nuget restore GitHub.Unity.sln
- if %BUILD_TYPE%==full cd submodules\packaging\unitypackage && node .\yarn.js install --prefer-offline
- ps: >-
Set-Location $env:appveyor_build_folder
Expand Down Expand Up @@ -75,20 +73,24 @@ test:
- DoNotRunOnAppVeyor
on_success:
- ps: |
Set-Location $env:appveyor_build_folder
if ($package) {
$sourcedir="$($env:appveyor_build_folder)\unity\PackageProject"
Get-ChildItem -Recurse "$($sourcedir)\*.pdb" | foreach { $_.fullname.substring(0, $_.fullname.length - $_.extension.length) } | foreach { Write-Output "Generating $($_).mdb"; & 'lib\pdb2mdb.exe' "$($_).dll" }
}
- if %BUILD_TYPE%==full cd %appveyor_build_folder%\submodules\packaging\unitypackage && node yarn.js start --path %appveyor_build_folder%\unity\PackageProject --out %appveyor_build_folder% --file github-for-unity-%package_version%
- ps: |
Set-Location $env:appveyor_build_folder
if ($package) {
$sourcedir="$($env:appveyor_build_folder)\unity\PackageProject"
$zipfile="$($env:appveyor_build_folder)\PackageProject-$($env:package_version).zip"
$packagefile="$($env:appveyor_build_folder)\github-for-unity-$($env:package_version).unitypackage"
$rootdir=$env:appveyor_build_folder
Set-Location $rootdir
$sourcedir="$rootdir\unity\PackageProject"
$packagename="github-for-unity-$($env:package_version)"
$packagefile="$rootdir\$($packagename).unitypackage"
$commitfile="$sourcedir\commit"
$zipfile="$rootdir\PackageProject-$($env:package_version).zip"
# generate mdb files
Write-Output "Generating mdb files"
Get-ChildItem -Recurse "$($sourcedir)\*.pdb" | foreach { $_.fullname.substring(0, $_.fullname.length - $_.extension.length) } | foreach { Write-Output "Generating $($_).mdb"; & 'lib\pdb2mdb.exe' "$($_).dll" }
# generate unitypackage
Write-Output "Generating $packagefile"
submodules\packaging\unitypackage\run.ps1 -PathToPackage:$sourcedir -OutputFolder:$rootdir -PackageName:$packagename
# save commit
Add-Content $commitfile $appveyor_repo_commit
Write-Output "Zipping $sourcedir to $zipfile"
Expand Down
2 changes: 1 addition & 1 deletion submodules/packaging
Submodule packaging updated 181 files

0 comments on commit 20c594d

Please sign in to comment.