[Groonga-commit] groonga/groonga at 562cf00 [master] appveyor: create VC++ runtime bundled package (#935)

Back to archive index
Kentaro Hayashi null+****@clear*****
Fri Apr 12 17:27:42 JST 2019


Kentaro Hayashi	2019-04-12 17:27:42 +0900 (Fri, 12 Apr 2019)

  Revision: 562cf008906cc1f39e07810f36d250693796fd04
  https://github.com/groonga/groonga/commit/562cf008906cc1f39e07810f36d250693796fd04

  Message:
    appveyor: create VC++ runtime bundled package (#935)

  Modified files:
    appveyor.yml

  Modified: appveyor.yml (+25 -0)
===================================================================
--- appveyor.yml    2019-04-12 16:09:40 +0900 (eeff739cd)
+++ appveyor.yml    2019-04-12 17:27:42 +0900 (c244eceb5)
@@ -129,4 +129,29 @@ on_success:
   - set ARTIFACT=%GROONGA_INSTALL_FOLDER%.zip
   - 7z a %ARTIFACT% %FULL_GROONGA_INSTALL_FOLDER%
   - ps: Push-AppveyorArtifact $Env:ARTIFACT
+  - if "%ARCH%" == "amd64" set ARCH=x64
+  - ps: |
+      switch -Exact ($Env:VS_VERSION) {
+        "15" {
+          $Env:REDIST_VERSION = (Get-Content "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\Microsoft.VCRedistVersion.default.txt")
+          $Env:VCREDIST_DIR = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\$Env:REDIST_VERSION\$Env:ARCH"
+          $Env:VCREDIST_VCRUNTIME = "$Env:VCREDIST_DIR\Microsoft.VC141.CRT\vcruntime140.dll"
+          $Env:VCREDIST_MSVCP = "$Env:VCREDIST_DIR\Microsoft.VC141.CRT\msvcp140.dll"
+        }
+        "14" {
+          $Env:VCREDIST_DIR = "C:\Program Files (x86)\Microsoft Visual Studio $Env:VS_VERSION.0\VC\redist\$Env:ARCH"
+          $Env:VCREDIST_VCRUNTIME = "$Env:VCREDIST_DIR\Microsoft.VC140.CRT\vcruntime140.dll"
+          $Env:VCREDIST_MSVCP = "$Env:VCREDIST_DIR\Microsoft.VC140.CRT\msvcp140.dll"
+        }
+        "12" {
+          $Env:VCREDIST_DIR = "C:\Program Files (x86)\Microsoft Visual Studio $Env:VS_VERSION.0\VC\redist\$Env:ARCH"
+          $Env:VCREDIST_VCRUNTIME = "$Env:VCREDIST_DIR\Microsoft.VC120.CRT\msvcr120.dll"
+          $Env:VCREDIST_MSVCP = "$Env:VCREDIST_DIR\Microsoft.VC120.CRT\msvcp120.dll"
+        }
+      }
+  - copy "%VCREDIST_VCRUNTIME%" "%FULL_GROONGA_INSTALL_FOLDER%\bin"
+  - copy "%VCREDIST_MSVCP%" "%FULL_GROONGA_INSTALL_FOLDER%\bin"
+  - set ARTIFACT=%GROONGA_INSTALL_FOLDER%-with-vcruntime.zip
+  - 7z a %ARTIFACT% %FULL_GROONGA_INSTALL_FOLDER%
+  - ps: Push-AppveyorArtifact $Env:ARTIFACT
   - cd ..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190412/405186fa/attachment-0001.html>


More information about the Groonga-commit mailing list
Back to archive index