Skip to content

Commit 5086da0

Browse files
add linux support
looks like Microsoft fixed `hostfxr_initialize_for_runtime_config`
1 parent 2110152 commit 5086da0

File tree

6 files changed

+56
-1
lines changed

6 files changed

+56
-1
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,23 @@ on:
55
workflow_dispatch:
66

77
jobs:
8-
build:
8+
linux-build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 20
17+
18+
- name: Build project
19+
run: ./_build.sh
20+
21+
- name: Run project
22+
run: ./_run.sh
23+
24+
windows-build:
925
runs-on: windows-latest
1026

1127
steps:

Bootstrapper/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
set -ex
3+
4+
mkdir -p build && cd build
5+
6+
cmake ..
7+
cmake --build . --config Release

DemoApplication/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
set -ex
3+
dotnet publish -c Release -r linux-x64 -p:PublishDir="$(pwd)/dist" --self-contained

RuntimePatcher/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
set -ex
3+
dotnet publish -c Release -p:PublishDir="$(pwd)/dist"

_build.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
set -ex
3+
4+
npm install
5+
6+
cd Bootstrapper
7+
./build.sh
8+
cd ..
9+
10+
cd DemoApplication
11+
./build.sh
12+
cd ..
13+
14+
cd RuntimePatcher
15+
./build.sh
16+
cd ..

_run.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
set -ex
3+
4+
./DemoApplication/dist/DemoApplication &
5+
npm start -- inject \
6+
DemoApplication \
7+
Bootstrapper/build/libBootstrapper.so \
8+
RuntimePatcher/dist/RuntimePatcher.runtimeconfig.json \
9+
RuntimePatcher/dist/RuntimePatcher.dll \
10+
"RuntimePatcher.Main, RuntimePatcher" "InitializePatches"

0 commit comments

Comments
 (0)