From 2b407b33ac6ec52fc707d857bc90f89fd74e6a19 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Wed, 27 Oct 2021 19:08:13 +0200 Subject: [PATCH 1/2] Exclude IDA plugins from the default build --- ScyllaHide.sln | 9 +++------ release.bat | 5 ----- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/ScyllaHide.sln b/ScyllaHide.sln index ab7675f4..99fef206 100644 --- a/ScyllaHide.sln +++ b/ScyllaHide.sln @@ -107,19 +107,13 @@ Global {9EEA6D78-4E74-47B9-8746-B8754B15525D}.Release|Win32.Build.0 = Release|Win32 {9EEA6D78-4E74-47B9-8746-B8754B15525D}.Release|x64.ActiveCfg = Release|Win32 {A94B6222-ABEF-41A0-BE48-06801157AAA5}.Debug|Win32.ActiveCfg = Debug|Win32 - {A94B6222-ABEF-41A0-BE48-06801157AAA5}.Debug|Win32.Build.0 = Debug|Win32 {A94B6222-ABEF-41A0-BE48-06801157AAA5}.Debug|x64.ActiveCfg = Debug|Win32 {A94B6222-ABEF-41A0-BE48-06801157AAA5}.Release|Win32.ActiveCfg = Release|Win32 - {A94B6222-ABEF-41A0-BE48-06801157AAA5}.Release|Win32.Build.0 = Release|Win32 {A94B6222-ABEF-41A0-BE48-06801157AAA5}.Release|x64.ActiveCfg = Release|Win32 {4506D672-19C3-439B-8E1B-F1BA8BE28844}.Debug|Win32.ActiveCfg = Debug|Win32 - {4506D672-19C3-439B-8E1B-F1BA8BE28844}.Debug|Win32.Build.0 = Debug|Win32 {4506D672-19C3-439B-8E1B-F1BA8BE28844}.Debug|x64.ActiveCfg = Debug|x64 - {4506D672-19C3-439B-8E1B-F1BA8BE28844}.Debug|x64.Build.0 = Debug|x64 {4506D672-19C3-439B-8E1B-F1BA8BE28844}.Release|Win32.ActiveCfg = Release|Win32 - {4506D672-19C3-439B-8E1B-F1BA8BE28844}.Release|Win32.Build.0 = Release|Win32 {4506D672-19C3-439B-8E1B-F1BA8BE28844}.Release|x64.ActiveCfg = Release|x64 - {4506D672-19C3-439B-8E1B-F1BA8BE28844}.Release|x64.Build.0 = Release|x64 {B00C9DA1-867E-4438-9C6E-1B53AE0506B7}.Debug|Win32.ActiveCfg = Debug|Win32 {B00C9DA1-867E-4438-9C6E-1B53AE0506B7}.Debug|Win32.Build.0 = Debug|Win32 {B00C9DA1-867E-4438-9C6E-1B53AE0506B7}.Debug|x64.ActiveCfg = Debug|x64 @@ -172,4 +166,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {C656F8F6-F616-40A9-9343-90FC1032D65C} + EndGlobalSection EndGlobal diff --git a/release.bat b/release.bat index 492da1c3..de217bd8 100644 --- a/release.bat +++ b/release.bat @@ -35,11 +35,6 @@ if "%MSBUILD%"=="" ( exit /b ) -if not exist 3rdparty\idasdk ( - echo IDA SDK not found - exit /b -) - "%MSBUILD%" /m /property:Configuration=Release,Platform=Win32 if not %ERRORLEVEL%==0 exit /b From ea3e3c2d9753c765ad2750611cab49132915bb26 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Wed, 27 Oct 2021 19:08:45 +0200 Subject: [PATCH 2/2] Build ScyllaHide with GitHub Actions --- .github/workflows/build.yml | 45 +++++++++++++++++++++++++++++++++++++ Scylla/Scylla.vcxproj | 5 +++++ release.bat | 2 ++ 3 files changed, 52 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..1336a5dc --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,45 @@ +name: Visual Studio + +on: [push, pull_request] + +jobs: + build: + # Skip building pull requests from the same repository + if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) }} + runs-on: windows-2019 + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Build + run: | + cmd /c call release.bat + + - name: Get current time + uses: srfrnk/current-time@v1.1.0 + id: current-time + with: + format: YYYY-MM-DD_HH-MM + + - uses: actions/upload-artifact@v2 + with: + name: ${{ github.event.repository.name }}_${{ steps.current-time.outputs.formattedTime }} + path: Release/ + + - name: Compress artifacts + uses: papeloto/action-zip@v1 + if: ${{ startsWith(github.ref, 'refs/tags/') }} + with: + files: Release/ + dest: ${{ github.event.repository.name }}_${{ steps.current-time.outputs.formattedTime }}.zip + + - name: Release + uses: softprops/action-gh-release@v1 + if: ${{ startsWith(github.ref, 'refs/tags/') }} + with: + prerelease: ${{ !startsWith(github.ref, 'refs/tags/v') || contains(github.ref, '-pre') }} + files: ${{ github.event.repository.name }}_${{ steps.current-time.outputs.formattedTime }}.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/Scylla/Scylla.vcxproj b/Scylla/Scylla.vcxproj index 4da574ce..af77c7a1 100644 --- a/Scylla/Scylla.vcxproj +++ b/Scylla/Scylla.vcxproj @@ -41,6 +41,11 @@ + + + {4cef9c8e-91c8-4148-94b1-af2a3b597762} + + 16.0 {E468DA07-48EA-40EB-A845-FA69C39D3396} diff --git a/release.bat b/release.bat index de217bd8..d90da2ac 100644 --- a/release.bat +++ b/release.bat @@ -91,3 +91,5 @@ copy /y /b Release\scylla_hide.ini Release\IDA\ copy /y /b Release\HookLibraryx64.dll Release\IDA\ copy /y /b Release\HookLibraryx86.dll Release\IDA\ move Release\ScyllaHideIDAServer* Release\IDA\ + +exit 0 \ No newline at end of file