|
|
|
|
@ -123,15 +123,15 @@ jobs:
@@ -123,15 +123,15 @@ jobs:
|
|
|
|
|
(gc .\funchook-static.vcxproj) -replace '<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>', '<RuntimeLibrary>MultiThreaded</RuntimeLibrary>' | Out-File .\funchook-static.vcxproj |
|
|
|
|
cmake --build . --config Release |
|
|
|
|
|
|
|
|
|
# - name: Build funchook arm64 |
|
|
|
|
# shell: powershell |
|
|
|
|
# run: | |
|
|
|
|
# cd libs/funchook |
|
|
|
|
# md build-arm64 |
|
|
|
|
# cd build-arm64 |
|
|
|
|
# cmake -G "Visual Studio 17 2022" -A ARM64 -DFUNCHOOK_CPU=arm64 -DFUNCHOOK_DISASM=capstone -DFUNCHOOK_BUILD_TESTS=OFF .. |
|
|
|
|
# (gc .\funchook-static.vcxproj) -replace '<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>', '<RuntimeLibrary>MultiThreaded</RuntimeLibrary>' | Out-File .\funchook-static.vcxproj |
|
|
|
|
# cmake --build . --config Release |
|
|
|
|
- name: Build funchook arm64 |
|
|
|
|
shell: powershell |
|
|
|
|
run: | |
|
|
|
|
cd libs/funchook |
|
|
|
|
md build-arm64 |
|
|
|
|
cd build-arm64 |
|
|
|
|
cmake -G "Visual Studio 17 2022" -A ARM64 -DFUNCHOOK_CPU=arm64 -DFUNCHOOK_DISASM=capstone -DFUNCHOOK_BUILD_TESTS=OFF .. |
|
|
|
|
(gc .\funchook-static.vcxproj) -replace '<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>', '<RuntimeLibrary>MultiThreaded</RuntimeLibrary>' | Out-File .\funchook-static.vcxproj |
|
|
|
|
cmake --build . --config Release |
|
|
|
|
|
|
|
|
|
- name: Build EP IA-32 |
|
|
|
|
if: github.event.inputs.config == '' |
|
|
|
|
@ -145,11 +145,11 @@ jobs:
@@ -145,11 +145,11 @@ jobs:
|
|
|
|
|
run: | |
|
|
|
|
msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=amd64 ${{env.SOLUTION_FILE_PATH}} |
|
|
|
|
|
|
|
|
|
# - name: Build EP arm64 |
|
|
|
|
# if: github.event.inputs.config == '' |
|
|
|
|
# working-directory: ${{env.GITHUB_WORKSPACE}} |
|
|
|
|
# run: | |
|
|
|
|
# msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=arm64 ${{env.SOLUTION_FILE_PATH}} |
|
|
|
|
- name: Build EP arm64 |
|
|
|
|
if: github.event.inputs.config == '' |
|
|
|
|
working-directory: ${{env.GITHUB_WORKSPACE}} |
|
|
|
|
run: | |
|
|
|
|
msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=arm64 /p:WithArm64XBinaries=true ${{env.SOLUTION_FILE_PATH}} |
|
|
|
|
|
|
|
|
|
- name: Build EP custom |
|
|
|
|
if: github.event.inputs.config != '' |
|
|
|
|
@ -170,11 +170,20 @@ jobs:
@@ -170,11 +170,20 @@ jobs:
|
|
|
|
|
if [[ -f "build/Release/x64/ExplorerPatcher.amd64.dll" ]]; then cp build/Release/x64/ExplorerPatcher.amd64.dll build/Release/x64/dxgi.dll; fi |
|
|
|
|
if [[ -f "build/Release/ARM64/ExplorerPatcher.arm64.dll" ]]; then cp build/Release/ARM64/ExplorerPatcher.arm64.dll build/Release/ARM64/dxgi.dll; fi |
|
|
|
|
|
|
|
|
|
- name: Patch setup |
|
|
|
|
- name: Patch amd64 setup |
|
|
|
|
shell: cmd |
|
|
|
|
working-directory: build/Release/x64 |
|
|
|
|
run: | |
|
|
|
|
ep_setup_patch.exe |
|
|
|
|
if exist "build\Release\x64\ExplorerPatcher.amd64.dll" ( |
|
|
|
|
"build\Release\x64\ep_setup_patch.exe" "build\Release\x64\ExplorerPatcher.amd64.dll" "build\Release\x64\ep_setup.exe" |
|
|
|
|
) |
|
|
|
|
exit /b 0 |
|
|
|
|
|
|
|
|
|
- name: Patch arm64 setup |
|
|
|
|
shell: cmd |
|
|
|
|
run: | |
|
|
|
|
if exist "build\Release\ARM64\ExplorerPatcher.arm64.dll" ( |
|
|
|
|
"build\Release\x64\ep_setup_patch.exe" "build\Release\ARM64\ExplorerPatcher.arm64.dll" "build\Release\ARM64\ep_setup.exe" |
|
|
|
|
) |
|
|
|
|
exit /b 0 |
|
|
|
|
|
|
|
|
|
- name: Upload artifacts |
|
|
|
|
@ -184,6 +193,19 @@ jobs:
@@ -184,6 +193,19 @@ jobs:
|
|
|
|
|
path: | |
|
|
|
|
build/Release/ |
|
|
|
|
|
|
|
|
|
# build/Release/x64/ep_setup.exe -> build/Release/ep_setup.exe |
|
|
|
|
# build/Release/ARM64/ep_setup.exe -> build/Release/ep_setup.arm64.exe |
|
|
|
|
- name: Stage files for release |
|
|
|
|
if: github.ref == 'refs/heads/master' && github.event.inputs.ref == '' |
|
|
|
|
shell: bash |
|
|
|
|
run: | |
|
|
|
|
if [ -d "build/Release/x64" ] && ls build/Release/x64/ep_setup.exe 1> /dev/null 2>&1; then |
|
|
|
|
cp build/Release/x64/ep_setup.exe build/Release/ep_setup.exe |
|
|
|
|
fi |
|
|
|
|
if [ -d "build/Release/ARM64" ] && ls build/Release/ARM64/ep_setup.exe 1> /dev/null 2>&1; then |
|
|
|
|
cp build/Release/ARM64/ep_setup.exe build/Release/ep_setup.arm64.exe |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
- name: Generate release name |
|
|
|
|
shell: bash |
|
|
|
|
working-directory: build/Release/x64 |
|
|
|
|
@ -213,7 +235,8 @@ jobs:
@@ -213,7 +235,8 @@ jobs:
|
|
|
|
|
tag_name: ${{ steps.release_name.outputs.data }}_${{ steps.vars.outputs.sha_short }} |
|
|
|
|
body: ${{ steps.release_description.outputs.data }} |
|
|
|
|
files: | |
|
|
|
|
build/Release/x64/ep_setup.exe |
|
|
|
|
build/Release/ep_setup.exe |
|
|
|
|
build/Release/ep_setup.arm64.exe |
|
|
|
|
env: |
|
|
|
|
GITHUB_TOKEN: ${{ secrets.PAT }} |
|
|
|
|
|
|
|
|
|
@ -228,6 +251,7 @@ jobs:
@@ -228,6 +251,7 @@ jobs:
|
|
|
|
|
tag_name: ${{ steps.release_name.outputs.data }}_${{ steps.vars.outputs.sha_short }} |
|
|
|
|
body: ${{ steps.release_description.outputs.data }} |
|
|
|
|
files: | |
|
|
|
|
build/Release/x64/ep_setup.exe |
|
|
|
|
build/Release/ep_setup.exe |
|
|
|
|
build/Release/ep_setup.arm64.exe |
|
|
|
|
env: |
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
|
|