Skip to content

Commit

Permalink
Fea,添加PEImportAnalyzer,便于快速分析依赖缺失
Browse files Browse the repository at this point in the history
  • Loading branch information
mingkuang-Chuyu committed May 29, 2024
1 parent c418ce8 commit c93311c
Show file tree
Hide file tree
Showing 10 changed files with 137,995 additions and 6 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/Build&Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
&7z e Bin\Procdump.zip "-o$Env:GITHUB_WORKSPACE\Bin"
Invoke-WebRequest -Uri https://github.com/Chuyu-Team/YY-Thunks/releases/download/v1.0.2.8/LibMaker.exe -OutFile Bin\LibMaker.exe
Invoke-WebRequest -Uri https://github.com/Chuyu-Team/LibMaker/releases/download/v1.0.2/LibMaker.exe -OutFile Bin\LibMaker.exe
Invoke-WebRequest -Uri https://github.com/Chuyu-Team/YY-Thunks/releases/download/v1.0.2.8/MinimumRequiredVersionHelper.exe -OutFile Bin\MinimumRequiredVersionHelper.exe
$ProgramFiles = ${env:ProgramFiles(x86)}
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
working-directory: ${{env.GITHUB_WORKSPACE}}
shell: cmd
run: |
set Path=%GITHUB_WORKSPACE%\Bin;%Path%
set Path=%GITHUB_WORKSPACE%\Bin;${{env.MSBuildBinPath}};%Path%
set LatestVisualStudioRoot=${{env.LatestVisualStudioRoot}}
setlocal
Expand All @@ -107,13 +107,15 @@ jobs:
call "%GITHUB_WORKSPACE%\src\Build.cmd"
endlocal
msbuild src\PEImportAnalyzer\PEImportAnalyzer.vcxproj "-p:Configuration=Release;Platform=Win32;OutDir=%GITHUB_WORKSPACE%\;SolutionDir=%GITHUB_WORKSPACE%\src\\"
- name: 执行单元测试
working-directory: ${{env.GITHUB_WORKSPACE}}
shell: pwsh
run: |
# MSBuild、PROCDUMP_PATH目录更新到 Path
$Env:Path="$Env:GITHUB_WORKSPACE\Bin;${{env.MSBuildBinPath}};${{env.LatestVisualStudioRoot}}\Common7\IDE\CommonExtensions\Microsoft\TestWindow;" + $Env:Path
# 编译单元测试项目
&msbuild src\YY-Thunks.UnitTest\YY-Thunks.UnitTest.vcxproj "-p:Configuration=Release;Platform=Win32;SolutionDir=$Env:GITHUB_WORKSPACE\src\\"
if($lastexitcode -ne 0)
Expand Down Expand Up @@ -157,8 +159,11 @@ jobs:
shell: cmd
run: |
::打包Release
7z a -tzip YY-Thunks-${{env.BuildVersion}}-Binary.zip objs LICENSE ReadMe.md ThunksList.md
7z a -tzip %GITHUB_WORKSPACE%\YY-Thunks-${{env.BuildVersion}}-Binary.zip objs LICENSE ReadMe.md ThunksList.md PEImportAnalyzer.exe
pushd ".\src\PEImportAnalyzer"
7z a -tzip %GITHUB_WORKSPACE%\YY-Thunks-${{env.BuildVersion}}-Binary.zip Config
popd
::打包Nuget
if "${{env.BuildVersion}}" NEQ "" (
nuget pack YY-Thunks-New.nuspec -Properties version=${{env.BuildVersion}};commit=%GITHUB_SHA%
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="VC-LTL">
<Version>5.0.4-Beta3</Version>
<Version>5.1.1-Beta1</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
Expand Down
Loading

0 comments on commit c93311c

Please sign in to comment.