summaryrefslogtreecommitdiffstats
path: root/appveyor.yml
diff options
context:
space:
mode:
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml39
1 files changed, 24 insertions, 15 deletions
diff --git a/appveyor.yml b/appveyor.yml
index c9edb9e19..ae22101eb 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -6,10 +6,8 @@ clone_depth: 5
environment:
QTDIR: C:\Qt\5.4\msvc2013_64_opengl
- MEGA_EMAIL:
- secure: rEo9CGAYX87GKTqZCZ9vLCNCNqxO5JLgbERaHF3YJWg=
- MEGA_PASSWORD:
- secure: zE1zmgjS/6GfN/19ROl/O0fVR58svORQ5gdtsxI7J8k=
+ BUILD_PASSWORD:
+ secure: EXGNlWKJsCtbeImEJ5EP9qrxZ+EqUFfNy+CP61nDOMA=
platform:
- x64
@@ -27,11 +25,6 @@ before_build:
- cd ..
after_build:
- # upload the build to Mega
- - cinst wget -x86
- - wget -q http://megatools.megous.com/builds/megatools-1.9.94-win64.zip
- # extract megatools silently. See http://stackoverflow.com/a/11629736/1748450
- - 7z x megatools-1.9.94-win64.zip | FIND /V "ing "
# copy the qt dlls
- copy C:\Qt\5.4\msvc2013_64_opengl\bin\icudt53.dll build\bin\release
- copy C:\Qt\5.4\msvc2013_64_opengl\bin\icuin53.dll build\bin\release
@@ -42,9 +35,25 @@ after_build:
- copy C:\Qt\5.4\msvc2013_64_opengl\bin\Qt5Widgets.dll build\bin\release
- mkdir build\bin\release\platforms\
- copy C:\Qt\5.4\msvc2013_64_opengl\plugins\platforms\qwindows.dll build\bin\release\platforms
- # zip up the build folder -> build.7z
- - 7z a build .\build\bin\release\*
- # rename, upload to Mega
- - npm install sanitize-filename
- - cd megatools-1.9.94-win64
- - node ..\upload_to_mega.js
+
+ - ps: >
+ if (!"$env:APPVEYOR_PULL_REQUEST_TITLE" -and ("$env:APPVEYOR_REPO_BRANCH" -eq "master"))
+ {
+ $GITDATE = $(git show -s --date=short --format='%ad') -replace "-",""
+ $GITREV = git show -s --format='%h'
+ $BUILD_NAME = "citra-${GITDATE}-${GITREV}-windows-amd64.7z"
+ # zip up the build folder
+ 7z a $BUILD_NAME .\build\bin\release\*
+
+ # download winscp
+ Invoke-WebRequest "http://hivelocity.dl.sourceforge.net/project/winscp/WinSCP/5.7/winscp570.zip" -OutFile "winscp570.zip"
+ 7z e -y winscp570.zip
+
+ # upload to server
+ .\WinSCP.com /command `
+ "option batch abort" `
+ "option confirm off" `
+ "open sftp://citra-builds:${env:BUILD_PASSWORD}@builds.citra-emu.org -hostkey=*" `
+ "put $BUILD_NAME /citra/nightly/windows-amd64/" `
+ "exit"
+ }