Skip to content

Commit

Permalink
fix(build): add python lib to artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Insineer committed Sep 9, 2019
1 parent 0bf5e7d commit 9f259be
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CI/appveyor/appveyor-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,20 @@ install:
- vcpkg integrate install
- cd %APPVEYOR_BUILD_FOLDER%

- move /Y CI\appveyor\vcpkg-patch\*.* C:\Tools\vcpkg\triplets\

- vcpkg install "python3:%platform%-windows"
- vcpkg install "python3:%platform%-windows-static"
- vcpkg install "sfml:%platform%-windows-static"
- vcpkg install "gtest:%platform%-windows-static"

cache: c:\tools\vcpkg\installed\
cache: c:\tools\vcpkg\

after_build:
- set BIN_FOLDER_SUFFIX=%platform%
- if "%BIN_FOLDER_SUFFIX%"=="x86" (set BIN_FOLDER_SUFFIX=Win32)

- 7z a "OSS13-%platform%-%appveyor_build_version%.zip" "%APPVEYOR_BUILD_FOLDER%\bin\Release-%BIN_FOLDER_SUFFIX%\OSS13 Client.exe" "%APPVEYOR_BUILD_FOLDER%\bin\Release-%BIN_FOLDER_SUFFIX%\OSS13 Server.exe" Resources -ir!GameLogic\*.py Arialuni.ttf LICENSE README.md UsersDB
- 7z a "OSS13-%platform%-%appveyor_build_version%.zip" "%APPVEYOR_BUILD_FOLDER%\bin\Release-%BIN_FOLDER_SUFFIX%\OSS13 Client.exe" "%APPVEYOR_BUILD_FOLDER%\bin\Release-%BIN_FOLDER_SUFFIX%\OSS13 Server.exe" "C:\Tools\vcpkg\installed\%platform%-windows\bin\python37.dll" Resources -ir!GameLogic\*.py Arialuni.ttf LICENSE README.md UsersDB

artifacts:
- path: "OSS13-$(platform)-%appveyor_build_version%.zip"
Expand All @@ -52,4 +55,5 @@ deploy:
auth_token:
secure: ZcnounehZDOonSsgvbGJvqxU+3N+s8nY6TvkQldbw7OWOjWujaExqvYoHsqsapgf
force_update: true
prerelease: true
artifacts: /.*\.zip
8 changes: 8 additions & 0 deletions CI/appveyor/vcpkg-patch/x64-windows-static.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE static)
set(VCPKG_LIBRARY_LINKAGE static)

if("${PORT}" STREQUAL "python3")
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE dynamic)
endif()
8 changes: 8 additions & 0 deletions CI/appveyor/vcpkg-patch/x86-windows-static.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE static)
set(VCPKG_LIBRARY_LINKAGE static)

if("${PORT}" STREQUAL "python3")
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE dynamic)
endif()

0 comments on commit 9f259be

Please sign in to comment.