fix xmrig bundling issues
This commit is contained in:
7
setup.sh
7
setup.sh
@@ -627,8 +627,13 @@ XMRIG_SRC="$PROJECT_DIR/external/xmrig-hac"
|
||||
XMRIG_PREBUILT="$PROJECT_DIR/prebuilt-binaries/xmrig-hac"
|
||||
|
||||
# Clean previous prebuilt xmrig binaries so we always rebuild
|
||||
# Only clean the binary for the platform(s) we are actually building,
|
||||
# otherwise a plain ./setup.sh deletes xmrig.exe without rebuilding it.
|
||||
if ! $CHECK_ONLY; then
|
||||
rm -f "$XMRIG_PREBUILT/xmrig" "$XMRIG_PREBUILT/xmrig.exe" 2>/dev/null || true
|
||||
rm -f "$XMRIG_PREBUILT/xmrig" 2>/dev/null || true
|
||||
if $SETUP_WIN; then
|
||||
rm -f "$XMRIG_PREBUILT/xmrig.exe" 2>/dev/null || true
|
||||
fi
|
||||
fi
|
||||
|
||||
# Helper: clone xmrig-hac if not present
|
||||
|
||||
Reference in New Issue
Block a user