[ttssh2-commit] [10415] AppVeyor で Visual Studio 2022 でビルドできるよう修正

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2022年 12月 20日 (火) 00:59:39 JST


Revision: 10415
          https://osdn.net/projects/ttssh2/scm/svn/commits/10415
Author:   zmatsuo
Date:     2022-12-20 00:59:39 +0900 (Tue, 20 Dec 2022)
Log Message:
-----------
AppVeyor で Visual Studio 2022 でビルドできるよう修正

- ci_scripts/appveyor_release_bat_vs2022.yml 追加
- release.bat も修正
  - デフォルトは vs2019

Modified Paths:
--------------
    trunk/ci_scripts/appveyor_release_bat.yml
    trunk/ci_scripts/appveyor_release_bat_vs2022.yml
    trunk/installer/release.bat

-------------- next part --------------
Modified: trunk/ci_scripts/appveyor_release_bat.yml
===================================================================
--- trunk/ci_scripts/appveyor_release_bat.yml	2022-12-19 15:24:13 UTC (rev 10414)
+++ trunk/ci_scripts/appveyor_release_bat.yml	2022-12-19 15:59:39 UTC (rev 10415)
@@ -2,6 +2,7 @@
 
 environment:
   APPVEYOR_SAVE_CACHE_ON_ERROR: true
+  VS_VERSION: 2019
 
 build: off
 

Modified: trunk/ci_scripts/appveyor_release_bat_vs2022.yml
===================================================================
--- trunk/ci_scripts/appveyor_release_bat_vs2022.yml	2022-12-19 15:24:13 UTC (rev 10414)
+++ trunk/ci_scripts/appveyor_release_bat_vs2022.yml	2022-12-19 15:59:39 UTC (rev 10415)
@@ -2,6 +2,7 @@
 
 environment:
   APPVEYOR_SAVE_CACHE_ON_ERROR: true
+  VS_VERSION: 2022
 
 build: off
 

Modified: trunk/installer/release.bat
===================================================================
--- trunk/installer/release.bat	2022-12-19 15:24:13 UTC (rev 10414)
+++ trunk/installer/release.bat	2022-12-19 15:59:39 UTC (rev 10415)
@@ -3,7 +3,8 @@
 set CUR=%~dp0
 cd /d %CUR%
 
-set VS_VERSION=2019
+if "%VS_VERSION%" == "" set VS_VERSION=2019
+rem if "%VS_VERSION%" == "" set VS_VERSION=2022
 
 if "%APPVEYOR%" == "True" set NOPAUSE=1
 if exist ..\buildtools\svnrev\sourcetree_info.bat del ..\buildtools\svnrev\sourcetree_info.bat
@@ -138,8 +139,12 @@
 :setup_tools_env
 
 set CYGWIN_PATH=C:\cygwin64\bin
+set VS_BASE=C:\Program Files\Microsoft Visual Studio\%VS_VERSION%
+if exist "%VS_BASE%" goto vs_base_pass
 set VS_BASE=C:\Program Files (x86)\Microsoft Visual Studio\%VS_VERSION%
+:vs_base_pass
 
+
 if exist toolinfo.bat (
     echo found toolinfo.bat
     call toolinfo.bat


ttssh2-commit メーリングリストの案内
Back to archive index