Do the same fix for payload-generator on MinGW64 as we did for PCCS

This commit is contained in:
RisingPhil 2025-12-16 10:15:05 +01:00
parent bb9f4ae0f1
commit 8fda76db5c
2 changed files with 25 additions and 8 deletions

View File

@ -151,7 +151,17 @@ all: $(BUILD)
generate_data:
mkdir -p data
mkdir -p to_compress
@env -i "PATH=$(PATH)" $(MAKE) -C tools/payload-generator
@env - \
PATH="$(PATH)" \
TMPDIR=/tmp TMP=/tmp TEMP=/tmp \
SYSTEMROOT="$(SYSTEMROOT)" \
CC=cc \
CXX=c++ \
CFLAGS= \
CXXFLAGS= \
LDFLAGS= \
AR=ar \
$(MAKE) -C tools/payload-generator
@echo
@echo "----------------------------------------------------------------"
@echo

View File

@ -16,12 +16,19 @@ services:
build:
image: ptgb-builder:latest
working_dir: /usr/Poke_Transporter_GB
command: tail -F anything
command: tail -f /dev/null
environment:
# Set SSH_AUTH_SOCK inside container only if forwarding is possible
- SSH_AUTH_SOCK=/ssh-agent
volumes:
- type: bind
source: ${SSH_AUTH_SOCK}
target: ${SSH_AUTH_SOCK}
- type: bind
source: ${PWD}
target: /usr/Poke_Transporter_GB
# Mount the project directory (portable)
- ${COMPOSE_PROJECT_DIR}:/usr/Poke_Transporter_GB
# Mount SSH agent only if available (Linux/WSL2)
- type: bind
source: ${SSH_AUTH_SOCK:-}
target: /ssh-agent
read_only: true
# Only mount if SSH_AUTH_SOCK is set
consistency: cached