File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -8,16 +8,21 @@ IF "%PVER%" == "" GOTO :EMPTY_VERSION
88ECHO  Version found: %PVER% 
99ECHO .
1010
11- ECHO  Verifying prerequisites 
11+ ECHO  Searching for Visual Studio 
1212
1313IF  DEFINED  ProgramFiles(x86) (
14-   SET  DEVENV_EXE_PATH = " %ProgramFiles(x86)% \Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe " 
14+   SET  VS_WHERE_PATH = " %ProgramFiles(x86)% \Microsoft Visual Studio\Installer " 
1515) ELSE  (
16-   SET  DEVENV_EXE_PATH = " %ProgramFiles% \Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe" 
16+   SET  VS_WHERE_PATH = " %ProgramFiles% \Microsoft Visual Studio\Installer" 
17+ )
18+ 
19+ SET  PATH = %PATH% ;%VS_WHERE_PATH% 
20+ for  /f " usebackq tokens=1* delims=: " %%i  in  (`vswhere.exe -latest -requires Microsoft.VisualStudio.Workload.NativeDesktop`) do  (
21+ 	if  /i " %%i " == " productPath" set  DEVENV_EXE_PATH = " %%j " 
1722)
1823
1924IF  EXIST  %DEVENV_EXE_PATH%  GOTO  VS_FOUND
20- ECHO  [ERROR] MS Visual Studio 2013  is not found. Exiting.
25+ ECHO  [ERROR] MS Visual Studio 2017  is not found. Exiting.
2126PAUSE 
2227EXIT  1 
2328
@@ -65,7 +70,7 @@ IF NOT EXIST ..\bin\Release-%~1-%~2\ EXIT /B 1
6570ECHO  Packing archive
6671SET  SCRIPTS = 
6772IF  " %~1 " ==  " Far3" SET  SCRIPTS = .\*.lua
68- rar.exe a -y -r -ep1 -apIntChecker2 -- ..\bin\IntChecker2_%~1 _%~3 _%PVER% .rar " ..\bin\Release-%~1 -%~2 \*" %SCRIPTS%  >  nul 
73+ rar.exe a -y -r -ep1 -apIntChecker2 -x*.iobj -x*.ipdb - - ..\bin\IntChecker2_%~1 _%~3 _%PVER% .rar " ..\bin\Release-%~1 -%~2 \*" %SCRIPTS%  >  nul 
6974if  NOT  ERRORLEVEL  ==  0  EXIT  /B 2 
7075ECHO  Cleanup
7176rmdir  /s /q " ..\bin\Release-%~1 -%~2 \" 
Original file line number Diff line number Diff line change 236236      <TargetMachine >MachineX86</TargetMachine >
237237      <ImportLibrary >$(IntDir)$(TargetName).lib</ImportLibrary >
238238      <AdditionalDependencies >Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies >
239+       <GenerateDebugInformation >false</GenerateDebugInformation >
239240    </Link >
240241    <PostBuildEvent  />
241242  </ItemDefinitionGroup >
262263      <TargetMachine >MachineX64</TargetMachine >
263264      <ImportLibrary >$(IntDir)$(TargetName).lib</ImportLibrary >
264265      <AdditionalDependencies >Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies >
266+       <GenerateDebugInformation >false</GenerateDebugInformation >
265267    </Link >
266268    <PostBuildEvent  />
267269  </ItemDefinitionGroup >
330332      <ImportLibrary >$(IntDir)$(TargetName).lib</ImportLibrary >
331333      <AdditionalDependencies >Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies >
332334      <GenerateMapFile >true</GenerateMapFile >
335+       <GenerateDebugInformation >false</GenerateDebugInformation >
333336    </Link >
334337    <PostBuildEvent  />
335338  </ItemDefinitionGroup >
357360      <ImportLibrary >$(IntDir)$(TargetName).lib</ImportLibrary >
358361      <AdditionalDependencies >Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies >
359362      <GenerateMapFile >true</GenerateMapFile >
363+       <GenerateDebugInformation >false</GenerateDebugInformation >
360364    </Link >
361365    <PostBuildEvent  />
362366  </ItemDefinitionGroup >
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments