Skip to content

Commit d856191

Browse files
update dependencies, switch to Node.js 24
1 parent f219914 commit d856191

File tree

17 files changed

+122
-160
lines changed

17 files changed

+122
-160
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515

16-
- uses: actions/setup-node@v4
16+
- uses: actions/setup-node@v6
1717
with:
18-
node-version: 22
18+
node-version: 24
1919

2020
- name: Build project
2121
run: ./_build.sh
@@ -30,11 +30,11 @@ jobs:
3030
runs-on: windows-latest
3131

3232
steps:
33-
- uses: actions/checkout@v4
33+
- uses: actions/checkout@v5
3434

35-
- uses: actions/setup-node@v4
35+
- uses: actions/setup-node@v6
3636
with:
37-
node-version: 22
37+
node-version: 24
3838

3939
- name: Install node packages
4040
run: npm install

Bootstrapper/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ target_include_directories(${PROJECT_NAME} PRIVATE include)
1010
if (NOT WIN32)
1111
target_link_libraries(${PROJECT_NAME} PRIVATE dl)
1212
endif ()
13+
14+
install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_BINARY_DIR}/bin)

Bootstrapper/build.bat

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
@echo off
22

3+
set CMAKE_BUILD_TYPE="Release"
4+
35
if not exist build mkdir build
46
cd build
57

@@ -8,7 +10,7 @@ set cmakeLookup=call %vswhere% -latest -requires Microsoft.VisualStudio.Componen
810

911
for /f "tokens=*" %%i in ('%cmakeLookup%') do set cmake="%%i"
1012

11-
%cmake% ..
12-
%cmake% --build . --config Release
13+
%cmake% -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON ..
14+
%cmake% --build . --config %CMAKE_BUILD_TYPE% --target INSTALL
1315

1416
cd ..

Bootstrapper/build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ set -ex
33

44
mkdir -p build && cd build
55

6-
cmake ..
7-
cmake --build . --config Release
6+
cmake -DCMAKE_BUILD_TYPE=Release ..
7+
8+
cmake --build .
9+
cmake --install .

Bootstrapper/src/library.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define EXPORT __declspec(dllexport)
33
#include <windows.h>
44
#else
5-
#define EXPORT __attribute__((visibility("default")))
5+
#define EXPORT [[gnu::visibility("default")]]
66
#include <dlfcn.h>
77
#include <thread>
88
#endif
@@ -120,7 +120,7 @@ std::string getEnvVar(const char *name) {
120120
return val == nullptr ? std::string() : std::string(val);
121121
}
122122

123-
__attribute__((constructor))
123+
[[gnu::constructor]]
124124
void initialize_library() {
125125
auto runtime_config_path = getEnvVar("RUNTIME_CONFIG_PATH");
126126
auto assembly_path = getEnvVar("ASSEMBLY_PATH");

DemoApplication/DemoApplication.sln

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<Solution>
2+
<Project Path="DemoApplication/DemoApplication.csproj" />
3+
</Solution>

DemoApplication/DemoApplication/DemoApplication.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
</PropertyGroup>

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ CLI tool that can replace C# methods in .NET Core applications
1212
### Requirements
1313

1414
- C++ & C#
15-
- Linux: g++, .NET 8: https://dotnet.microsoft.com/en-us/download/dotnet/8.0
16-
- Windows: Visual Studio 2022 with installed C++ & C# build tools: https://visualstudio.microsoft.com/en/vs/
15+
- Linux: g++, .NET 8: https://dotnet.microsoft.com/en-us/download/dotnet/10.0
16+
- Windows: Visual Studio 2026 with installed C++ & C# build tools: https://visualstudio.microsoft.com/en/vs/
1717
- Node.js: https://nodejs.org/en/download/
1818
- frida: https://frida.re
1919

@@ -61,7 +61,7 @@ start DemoApplication\dist\DemoApplication.exe
6161
6262
npm start -- inject ^
6363
DemoApplication.exe ^
64-
Bootstrapper\build\Release\Bootstrapper.dll ^
64+
Bootstrapper\build\bin\Bootstrapper.dll ^
6565
RuntimePatcher\dist\RuntimePatcher.runtimeconfig.json ^
6666
RuntimePatcher\dist\RuntimePatcher.dll ^
6767
"RuntimePatcher.Main, RuntimePatcher" "InitializePatches"

RuntimePatcher/RuntimePatcher.sln

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)