DEADSOFTWARE

AppVeyor: Update files on server
authorStas'M <x86corez@gmail.com>
Mon, 1 Oct 2018 21:16:39 +0000 (00:16 +0300)
committerStas'M <x86corez@gmail.com>
Mon, 1 Oct 2018 21:16:39 +0000 (00:16 +0300)
appveyor.yml

index fd7da3bafbf5a0c38a40209af1908b38d34a9f90..e6e60d70df5fab5015ab509cb1894ba98fb7d241 100644 (file)
@@ -5,6 +5,8 @@ environment:
     secure: nmt2wy+rrB3V3E0VaH6Wkw==
   UploadPass:
     secure: RSpIXLDEgnLc1s8K4/kXtg==
+  UpdateKey:
+    secure: qabkF43L5XDdfCgJloTznxAUFP+dxwOIO/xlj3ApOk8=
 build_script:
 - cmd: make.cmd
 on_success:
@@ -56,6 +58,9 @@ on_success:
           $check = uploadFtp $ftp $user $pass $item.Name $item.FullName
         }
       }
+      Write-Host "[*] Updating..."
+      $postParams = @{key=$env:UpdateKey}
+      (Invoke-WebRequest -UseBasicParsing -Uri http://doom2d.org/doom2d_forever/latest/update_wads.php -Method POST -Body $postParams).Content
     }
 
     else