mirror of
https://github.com/PabloMK7/citra.git
synced 2025-09-09 20:30:05 +00:00
CI: upload builds to builds.citra-emu.org instead of MEGA
This commit is contained in:
parent
b56829df02
commit
6cc1a07235
6 changed files with 65 additions and 48 deletions
39
appveyor.yml
39
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"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue