Files
rustnet/resources/packaging/macos/wrapper.sh
Marco Cadetg 42db7f5614 fix: release workflow (#17)
* Remove musl targets to simplify Linux builds and fix cross-compilation issues
* Enable eBPF by default on Linux via linux-default feature for better packet capture
* Add macOS code signing and notarization support with graceful fallback for unsigned builds
* Fix Windows MSI packaging with improved WiX configuration and Npcap library linking
* Auto-extract changelog content from CHANGELOG.md into GitHub release notes
* Fix ARM cross-compilation (aarch64, armv7) with proper library paths and eBPF support
* Add comprehensive installation documentation for DMG, MSI, DEB, and RPM packages
* Allow re-running releases with --clobber flag for artifact uploads
2025-09-30 09:39:26 +02:00

18 lines
752 B
Bash

#!/bin/bash
# Wrapper script for Rustnet macOS app
# This script launches the Rustnet binary in a terminal
# Note: Rustnet requires sudo for packet capture. Run: sudo rustnet
# Get the directory where the app bundle is located
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
# Check if we're running in Terminal already
if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
# Already in terminal, just run the binary
exec "$DIR/rustnet" "$@"
else
# Not in terminal, open Terminal and prompt for sudo
# This will open a new Terminal window with rustnet running with sudo
osascript -e "tell application \"Terminal\" to do script \"cd '$DIR' && sudo ./rustnet; exit\""
fi