mbproxy/install: add Windows service-management batch files
Four simple .bat files — install / remove / start / stop-service — that manage the 'mbproxy' Windows service against the Mbproxy.exe in their own folder. publish.ps1 / publish.sh copy them into each win-* publish flavour, so a published Windows folder is self-managing. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -94,6 +94,24 @@ for flavour in self-contained framework-dependent; do
|
||||
printf ' %-22s <- %s\n' "$flavour" "$config_template"
|
||||
done
|
||||
|
||||
# Ship the Windows service-management batch files (win RIDs only). Each acts on the
|
||||
# Mbproxy.exe in its own folder, so the published folder is self-managing.
|
||||
if [[ "$rid" == win-* ]]; then
|
||||
echo
|
||||
echo "=== Service scripts ==="
|
||||
for flavour in self-contained framework-dependent; do
|
||||
for script in install-service.bat remove-service.bat start-service.bat stop-service.bat; do
|
||||
src="$repo_root/install/$script"
|
||||
if [[ ! -f "$src" ]]; then
|
||||
echo "Cannot find service script: $src" >&2
|
||||
exit 1
|
||||
fi
|
||||
cp -f "$src" "$output_dir/$flavour/$script"
|
||||
done
|
||||
printf ' %-22s <- install/*-service.bat\n' "$flavour"
|
||||
done
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "=== Result ($rid) ==="
|
||||
for flavour in self-contained framework-dependent; do
|
||||
|
||||
Reference in New Issue
Block a user