Skip to content

Force Proxy to any Windows/MacOS/Linux Application TCP and UDP traffic

added pkg inthe workflow

AnoF-Cyber44fdb75d0231
diff --git a/.github/workflows/build-mac.yml b/.github/workflows/build-mac.yml
index af5ff73..2a77c68 100644
--- a/.github/workflows/build-mac.yml
+++ b/.github/workflows/build-mac.yml
@@ -54,16 +54,24 @@ jobs:
security unlock-keychain -p "${{ secrets.MACOS_KEYCHAIN_PASSWORD }}" build.keychain
security set-keychain-settings -t 3600 -u build.keychain
- # Import certificate into the keychain
+ # Import Developer ID Application certificate
security import /tmp/certificate.p12 \
-k build.keychain \
-P "${{ secrets.MACOS_CERTIFICATE_PASSWORD }}" \
-T /usr/bin/codesign
- # Allow codesign to access the keychain without prompting
+ # Import Developer ID Installer certificate
+ echo "${{ secrets.MACOS_INSTALLER_CERTIFICATE }}" | base64 --decode > /tmp/installer.p12
+ security import /tmp/installer.p12 \
+ -k build.keychain \
+ -P "${{ secrets.MACOS_INSTALLER_CERTIFICATE_PASSWORD }}" \
+ -T /usr/bin/codesign \
+ -T /usr/bin/productsign
+
+ # Allow codesign and productsign to access the keychain without prompting
security set-key-partition-list -S apple-tool:,apple: -s -k "${{ secrets.MACOS_KEYCHAIN_PASSWORD }}" build.keychain
- # Verify certificate is available
+ # Verify both certificates are available
security find-identity -v -p codesigning build.keychain
- name: Build Universal Binary
@@ -129,6 +137,33 @@ jobs:
# Verify notarization
spctl -a -vvv -t install "$APP_PATH"
+ - name: Build PKG Installer
+ run: |
+ # Create .env for build.sh
+ {
+ echo "APPLE_ID=\"${{ secrets.APPLE_ID }}\""
+ echo "APPLE_APP_PASSWORD=\"${{ secrets.APPLE_APP_PASSWORD }}\""
+ echo "SIGNING_IDENTITY=\"${{ secrets.MACOS_SIGNING_IDENTITY }}\""
+ echo "TEAM_ID=\"${{ secrets.APPLE_TEAM_ID }}\""
+ } > MacOS/ProxyBridge/.env
+
+ # Copy notarized .app into output/ where build.sh expects it
+ mkdir -p MacOS/ProxyBridge/output
+ cp -R MacOS/ProxyBridge/build/DerivedData/Build/Products/Release/ProxyBridge.app \
+ MacOS/ProxyBridge/output/ProxyBridge.app
+
+ # Run build script to create, sign and notarize the pkg
+ cd MacOS/ProxyBridge
+ chmod +x build.sh
+ bash build.sh
+
+ - name: Upload PKG Artifact
+ uses: actions/upload-artifact@v4
+ with:
+ name: ProxyBridge-macOS-Installer
+ path: MacOS/ProxyBridge/output/ProxyBridge-*.pkg
+ retention-days: 30
+
- name: Upload Notarized App
run: |
# Use ditto to zip preserving macOS metadata, symlinks and permissions
@@ -153,7 +188,10 @@ jobs:
rm -f ~/Library/MobileDevice/Provisioning\ Profiles/*.provisionprofile || true
# Remove temp cert and profile files
- rm -f /tmp/certificate.p12 /tmp/app.provisionprofile /tmp/ext.provisionprofile /tmp/ProxyBridge.zip /tmp/ProxyBridge-macOS.zip || true
+ rm -f /tmp/certificate.p12 /tmp/installer.p12 /tmp/app.provisionprofile /tmp/ext.provisionprofile /tmp/ProxyBridge.zip /tmp/ProxyBridge-macOS.zip || true
+
+ # Remove .env with sensitive data
+ rm -f MacOS/ProxyBridge/.env || true
# Remove xcconfig files with sensitive data
rm -f MacOS/ProxyBridge/Signing-Config-app.xcconfig || true