File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,16 @@ Param (
15
15
16
16
$login = $variables [" SecureLogin" ]
17
17
$pass = $variables [" SecurePass" ]
18
+ $fd = false;
19
+ $hd = false;
18
20
19
21
foreach ($artifact in $artifacts.values )
20
22
{
21
23
Write-Output " Upload artifact: $ ( $artifact.name ) "
22
24
$ext = [System.IO.Path ]::GetExtension($artifact.name )
23
25
$name = [System.IO.Path ]::GetFileNameWithoutExtension($artifact.name )
26
+ IF ($name - eg " FlashDevelop" ) { $fd = true; }
27
+ IF ($name - eg " HaxeDevelop" ) { $hd = true; }
24
28
IF ($ext -eq " .xml" )
25
29
{
26
30
# Upload appman.xml file
@@ -38,5 +42,11 @@ $date = Get-Date
38
42
$file = [System.IO.Path ]::GetTempFileName()
39
43
$data = " Build: $projectVersion `r`n Time: " + $date.ToUniversalTime () + " GMT"
40
44
$data | Set-Content $file
41
- ncftpput.exe - u " $login " - p " $pass " - C ftp.flashdevelop.org " $file " " downloads/builds/FlashDevelop-$env: APPVEYOR_REPO_BRANCH .txt" ;
42
- ncftpput.exe - u " $login " - p " $pass " - C ftp.flashdevelop.org " $file " " downloads/builds/HaxeDevelop-$env: APPVEYOR_REPO_BRANCH .txt" ;
45
+ IF ($fd )
46
+ {
47
+ ncftpput.exe - u " $login " - p " $pass " - C ftp.flashdevelop.org " $file " " downloads/builds/FlashDevelop-$env: APPVEYOR_REPO_BRANCH .txt" ;
48
+ }
49
+ IF ($hd )
50
+ {
51
+ ncftpput.exe - u " $login " - p " $pass " - C ftp.flashdevelop.org " $file " " downloads/builds/HaxeDevelop-$env: APPVEYOR_REPO_BRANCH .txt" ;
52
+ }
You can’t perform that action at this time.
0 commit comments