diff options
Diffstat (limited to 'appveyor.yml')
| -rw-r--r-- | appveyor.yml | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/appveyor.yml b/appveyor.yml index f491e5f0b..954be4e8f 100644 --- a/appveyor.yml +++ b/appveyor.yml | |||
| @@ -28,7 +28,6 @@ install: | |||
| 28 | if ($env:BUILD_TYPE -eq 'mingw') { | 28 | if ($env:BUILD_TYPE -eq 'mingw') { |
| 29 | $dependencies = "mingw64/mingw-w64-x86_64-cmake", | 29 | $dependencies = "mingw64/mingw-w64-x86_64-cmake", |
| 30 | "mingw64/mingw-w64-x86_64-qt5", | 30 | "mingw64/mingw-w64-x86_64-qt5", |
| 31 | "mingw64/mingw-w64-x86_64-curl", | ||
| 32 | "mingw64/mingw-w64-x86_64-SDL2" | 31 | "mingw64/mingw-w64-x86_64-SDL2" |
| 33 | # redirect err to null to prevent warnings from becoming errors | 32 | # redirect err to null to prevent warnings from becoming errors |
| 34 | # workaround to prevent pacman from failing due to cyclical dependencies | 33 | # workaround to prevent pacman from failing due to cyclical dependencies |
| @@ -42,9 +41,9 @@ before_build: | |||
| 42 | - ps: | | 41 | - ps: | |
| 43 | if ($env:BUILD_TYPE -eq 'msvc') { | 42 | if ($env:BUILD_TYPE -eq 'msvc') { |
| 44 | # redirect stderr and change the exit code to prevent powershell from cancelling the build if cmake prints a warning | 43 | # redirect stderr and change the exit code to prevent powershell from cancelling the build if cmake prints a warning |
| 45 | cmd /C 'cmake -G "Visual Studio 15 2017 Win64" -DYUZU_USE_BUNDLED_QT=1 -DYUZU_USE_BUNDLED_SDL2=1 -DYUZU_USE_BUNDLED_UNICORN=1 -DCMAKE_USE_OPENSSL=0 .. 2>&1 && exit 0' | 44 | cmd /C 'cmake -G "Visual Studio 15 2017 Win64" -DYUZU_USE_BUNDLED_QT=1 -DYUZU_USE_BUNDLED_SDL2=1 -DYUZU_USE_BUNDLED_UNICORN=1 .. 2>&1 && exit 0' |
| 46 | } else { | 45 | } else { |
| 47 | C:\msys64\usr\bin\bash.exe -lc "cmake -G 'MSYS Makefiles' -DUSE_SYSTEM_CURL=1 -DYUZU_USE_BUNDLED_CURL=1 -DCMAKE_BUILD_TYPE=Release .. 2>&1" | 46 | C:\msys64\usr\bin\bash.exe -lc "cmake -G 'MSYS Makefiles' -DYUZU_BUILD_UNICORN=1 -DCMAKE_BUILD_TYPE=Release .. 2>&1" |
| 48 | } | 47 | } |
| 49 | - cd .. | 48 | - cd .. |
| 50 | 49 | ||
| @@ -81,11 +80,12 @@ after_build: | |||
| 81 | $env:BUILD_SYMBOLS = $MSVC_BUILD_PDB | 80 | $env:BUILD_SYMBOLS = $MSVC_BUILD_PDB |
| 82 | $env:BUILD_UPDATE = $MSVC_SEVENZIP | 81 | $env:BUILD_UPDATE = $MSVC_SEVENZIP |
| 83 | 82 | ||
| 84 | 7z a -tzip $MSVC_BUILD_PDB .\msvc_build\bin\release\*.pdb | 83 | mkdir pdb |
| 85 | rm .\msvc_build\bin\release\*.pdb | 84 | Get-ChildItem ".\msvc_build\bin\" -Recurse -Filter "*.pdb" | Copy-Item -destination .\pdb |
| 85 | 7z a -tzip $MSVC_BUILD_PDB .\pdb\*.pdb | ||
| 86 | 86 | ||
| 87 | mkdir $RELEASE_DIST | 87 | mkdir $RELEASE_DIST |
| 88 | Copy-Item .\msvc_build\bin\release\* -Destination $RELEASE_DIST -Recurse | 88 | Get-ChildItem ".\msvc_build\bin\" -Recurse -Filter "yuzu*.exe" | Copy-Item -destination $RELEASE_DIST |
| 89 | Copy-Item .\license.txt -Destination $RELEASE_DIST | 89 | Copy-Item .\license.txt -Destination $RELEASE_DIST |
| 90 | Copy-Item .\README.md -Destination $RELEASE_DIST | 90 | Copy-Item .\README.md -Destination $RELEASE_DIST |
| 91 | 7z a -tzip $MSVC_BUILD_ZIP $RELEASE_DIST\* | 91 | 7z a -tzip $MSVC_BUILD_ZIP $RELEASE_DIST\* |
| @@ -104,16 +104,14 @@ after_build: | |||
| 104 | $env:BUILD_UPDATE = $MINGW_SEVENZIP | 104 | $env:BUILD_UPDATE = $MINGW_SEVENZIP |
| 105 | 105 | ||
| 106 | $CMAKE_SOURCE_DIR = "$env:APPVEYOR_BUILD_FOLDER" | 106 | $CMAKE_SOURCE_DIR = "$env:APPVEYOR_BUILD_FOLDER" |
| 107 | $CMAKE_BINARY_DIR = "$CMAKE_SOURCE_DIR/mingw_build" | 107 | $CMAKE_BINARY_DIR = "$CMAKE_SOURCE_DIR/mingw_build/bin" |
| 108 | $RELEASE_DIST = $RELEASE_DIST + "-mingw" | 108 | $RELEASE_DIST = $RELEASE_DIST + "-mingw" |
| 109 | 109 | ||
| 110 | mkdir $RELEASE_DIST | 110 | mkdir $RELEASE_DIST |
| 111 | mkdir $RELEASE_DIST/platforms | 111 | mkdir $RELEASE_DIST/platforms |
| 112 | 112 | ||
| 113 | # copy the compiled binaries and other release files to the release folder | 113 | # copy the compiled binaries and other release files to the release folder |
| 114 | Get-ChildItem "$CMAKE_BINARY_DIR" -Recurse -Filter "yuzu*.exe" | Copy-Item -destination $RELEASE_DIST | 114 | Get-ChildItem "$CMAKE_BINARY_DIR" -Filter "yuzu*.exe" | Copy-Item -destination $RELEASE_DIST |
| 115 | # copy the libcurl dll | ||
| 116 | Get-ChildItem "$CMAKE_BINARY_DIR" -Recurse -Filter "libcurl.dll" | Copy-Item -destination $RELEASE_DIST | ||
| 117 | Copy-Item -path "$CMAKE_SOURCE_DIR/license.txt" -destination $RELEASE_DIST | 115 | Copy-Item -path "$CMAKE_SOURCE_DIR/license.txt" -destination $RELEASE_DIST |
| 118 | Copy-Item -path "$CMAKE_SOURCE_DIR/README.md" -destination $RELEASE_DIST | 116 | Copy-Item -path "$CMAKE_SOURCE_DIR/README.md" -destination $RELEASE_DIST |
| 119 | # copy all the dll dependencies to the release folder | 117 | # copy all the dll dependencies to the release folder |
| @@ -122,7 +120,7 @@ after_build: | |||
| 122 | # QT dll dependencies | 120 | # QT dll dependencies |
| 123 | "libbz2-*.dll","libicudt*.dll","libicuin*.dll","libicuuc*.dll","libffi-*.dll", | 121 | "libbz2-*.dll","libicudt*.dll","libicuin*.dll","libicuuc*.dll","libffi-*.dll", |
| 124 | "libfreetype-*.dll","libglib-*.dll","libgobject-*.dll","libgraphite2.dll","libiconv-*.dll", | 122 | "libfreetype-*.dll","libglib-*.dll","libgobject-*.dll","libgraphite2.dll","libiconv-*.dll", |
| 125 | "libharfbuzz-*.dll","libintl-*.dll","libpcre-*.dll","libpcre16-*.dll","libpng16-*.dll", | 123 | "libharfbuzz-*.dll","libintl-*.dll","libpcre-*.dll","libpcre2-16-*.dll","libpcre16-*.dll","libpng16-*.dll", |
| 126 | # Runtime/Other dependencies | 124 | # Runtime/Other dependencies |
| 127 | "libgcc_s_seh-*.dll","libstdc++-*.dll","libwinpthread-*.dll","SDL2.dll","zlib1.dll" | 125 | "libgcc_s_seh-*.dll","libstdc++-*.dll","libwinpthread-*.dll","SDL2.dll","zlib1.dll" |
| 128 | foreach ($file in $MingwDLLs) { | 126 | foreach ($file in $MingwDLLs) { |
| @@ -165,7 +163,7 @@ deploy: | |||
| 165 | provider: GitHub | 163 | provider: GitHub |
| 166 | release: $(appveyor_repo_tag_name) | 164 | release: $(appveyor_repo_tag_name) |
| 167 | auth_token: | 165 | auth_token: |
| 168 | secure: "dbpsMC/MgPKWFNJCXpQl4cR8FYhepkPLjgNp/pRMktZ8oLKTqPYErfreaIxb/4P1" | 166 | secure: "argb6oi2TYLB4wDy+HoCC8PuGAmsnocSk12CQ5614XAPO+NVPndlkLv1utnDFfg2" |
| 169 | artifact: update,build | 167 | artifact: update,build |
| 170 | draft: false | 168 | draft: false |
| 171 | prerelease: false | 169 | prerelease: false |