diff --git a/config/build/mac/pkg/scripts/postinstall b/config/build/mac/pkg/scripts/postinstall index e90d1ae..eaa7a45 100755 --- a/config/build/mac/pkg/scripts/postinstall +++ b/config/build/mac/pkg/scripts/postinstall @@ -1,5 +1,8 @@ #!/bin/sh +PRODUCT_NAME="overFlow-NetworkScanner" + +cp "$2/$PRODUCT_NAME.app/Contents/Resources/ChmodBPF" "/Library/Application Support/overFlow-NetworkScanner/" CHMOD_BPF="/Library/LaunchDaemons/com.loafle.overflow.scanner.ChmodBPF.plist" BPF_GROUP="access_bpf" diff --git a/electron-builder.json b/electron-builder.json index 9d654cc..371b4d3 100644 --- a/electron-builder.json +++ b/electron-builder.json @@ -78,8 +78,15 @@ "icon": "config/build/mac/icon/overflow_1024.icns", "extraResources": [ { - "from": "config/build/${os}/bin/probe-${os}-${arch}", + "from": "config/build/mac/bin/probe-${os}-${arch}", "to": "./bin/probe" + }, + { + "filter": [ + "**/*" + ], + "from": "config/build/mac/ChmodBPF", + "to": "./ChmodBPF" } ] },