diff options
author | archshift <gh@archshift.com> | 2015-03-07 00:54:09 +0100 |
---|---|---|
committer | archshift <gh@archshift.com> | 2015-03-17 02:09:20 +0100 |
commit | 6cc1a0723583817d1c1bad13db5167c07aa84aa2 (patch) | |
tree | b4fd54fd6347e6d114819536bfd7fe8f95c68ecc /appveyor.yml | |
parent | Merge pull request #629 from archshift/lcdfb (diff) | |
download | yuzu-6cc1a0723583817d1c1bad13db5167c07aa84aa2.tar yuzu-6cc1a0723583817d1c1bad13db5167c07aa84aa2.tar.gz yuzu-6cc1a0723583817d1c1bad13db5167c07aa84aa2.tar.bz2 yuzu-6cc1a0723583817d1c1bad13db5167c07aa84aa2.tar.lz yuzu-6cc1a0723583817d1c1bad13db5167c07aa84aa2.tar.xz yuzu-6cc1a0723583817d1c1bad13db5167c07aa84aa2.tar.zst yuzu-6cc1a0723583817d1c1bad13db5167c07aa84aa2.zip |
Diffstat (limited to 'appveyor.yml')
-rw-r--r-- | appveyor.yml | 39 |
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" + } |