This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,23 @@ environment:
6
6
- node_version : ' 8'
7
7
8
8
install :
9
- - ps : |
9
+ - ps : >-
10
10
$full_build = Test-Path env:GHFU_KEY
11
11
12
+ $package = $full_build
13
+
14
+ $message = "Building "
15
+
16
+ if ($package) { $message += "and packaging "}
17
+
18
+ if ($full_build) { $message += "(full build)" } else { $message += "(partial build)" }
19
+
20
+ $message += " version " + $env:APPVEYOR_BUILD_NUMBER + " "
21
+
22
+ Write-Host $message
23
+
12
24
git submodule sync
25
+
13
26
git submodule init
14
27
15
28
if ($full_build) {
@@ -31,7 +44,9 @@ install:
31
44
}
32
45
33
46
git submodule update
47
+
34
48
nuget restore GitHub.Unity.sln
49
+
35
50
- if %BUILD_TYPE%==full cd submodules\packaging\unitypackage && node .\yarn.js install --prefer-offline
36
51
37
52
assembly_info :
@@ -53,13 +68,13 @@ test:
53
68
- DoNotRunOnAppVeyor
54
69
on_success :
55
70
- ps : |
56
- if ($full_build ) {
71
+ if ($package ) {
57
72
$sourcedir="$($env:appveyor_build_folder)\unity\PackageProject"
58
73
Get-ChildItem -Recurse "$($sourcedir)\*.pdb" | foreach { $_.fullname.substring(0, $_.fullname.length - $_.extension.length) } | foreach { Write-Output "Generating $($_).mdb"; & 'lib\pdb2mdb.exe' "$($_).dll" }
59
74
}
60
75
- 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-%appveyor_build_version%
61
76
- ps : |
62
- if ($full_build ) {
77
+ if ($package ) {
63
78
Set-Location $env:appveyor_build_folder
64
79
$sourcedir="$($env:appveyor_build_folder)\unity\PackageProject"
65
80
$zipfile="$($env:appveyor_build_folder)\github-for-unity-$($env:appveyor_build_version).zip"
You can’t perform that action at this time.
0 commit comments