Skip to content

Initial release

Initial release #1

Workflow file for this run

name: Build and Release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_15.4.app
- name: Build Release
run: |
xcodebuild \
-project NetworkMonitor.xcodeproj \
-scheme NetworkMonitor \
-configuration Release \
-derivedDataPath .build \
CODE_SIGN_IDENTITY="-" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO \
ONLY_ACTIVE_ARCH=NO
- name: Sign ad-hoc
run: |
codesign --force --deep --sign "-" .build/Build/Products/Release/NetworkMonitor.app
- name: Remove quarantine
run: xattr -rc .build/Build/Products/Release/NetworkMonitor.app
- name: Package release zip
run: |
mkdir -p dist/daemon
cp -R .build/Build/Products/Release/NetworkMonitor.app dist/
cp daemon/network_monitor.sh dist/daemon/
cp daemon/netmon-toggle.sh dist/daemon/
cp install.sh dist/
cp README.md dist/
zip -r NetworkMonitor-release.zip dist/ -x "*.DS_Store"
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: NetworkMonitor-release.zip
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}