Skip to content

Commit

Permalink
Update create_installer.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
devinroth committed Feb 10, 2023
1 parent 8922120 commit e9ce8a2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion BlackHole/BlackHole.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>592</string>
<string>593</string>
<key>CFPlugInFactories</key>
<dict>
<key>e395c745-4eea-4d94-bb92-46224221047c</key>
Expand Down
16 changes: 12 additions & 4 deletions Installer/create_installer.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env zsh

#!/usr/bin/env bash

# run for BlackHole directory.

# create installer for different channel versions

Expand All @@ -18,7 +18,15 @@ xcodebuild \
-configuration Release \
-target BlackHole CONFIGURATION_BUILD_DIR=build \
PRODUCT_BUNDLE_IDENTIFIER=$bundleID \
GCC_PREPROCESSOR_DEFINITIONS='$GCC_PREPROCESSOR_DEFINITIONS kNumber_Of_Channels='$channels' kPlugIn_BundleID=\"'$bundleID'\" kDriver_Name=\"'$driverName'\"'
GCC_PREPROCESSOR_DEFINITIONS='$GCC_PREPROCESSOR_DEFINITIONS
kNumber_Of_Channels='$channels'
kPlugIn_BundleID=\"'$bundleID'\"
kDriver_Name=\"'$driverName'\"'

# Generate a new UUID
uuid=$(uuidgen)
awk '{sub(/e395c745-4eea-4d94-bb92-46224221047c/,"'$uuid'")}1' build/BlackHole.driver/Contents/Info.plist > Temp.plist
mv Temp.plist build/BlackHole.driver/Contents/Info.plist

mkdir installer/root
mv build/BlackHole.driver installer/root/$driverName$ch.driver
Expand Down Expand Up @@ -66,7 +74,7 @@ rm distribution.xml
rm -f BlackHole.pkg

# Notarize
xcrun notarytool submit $driverName$ch.$version.pkg --team-id Q5C99V536K --progress --wait --keychain-profile "Notarize"
xcrun notarytool submit $driverName$ch.$version.pkg --team-id Q5C99V536K --progress --wait --keychain-profile "notarize"

xcrun stapler staple $driverName$ch.$version.pkg

Expand Down

0 comments on commit e9ce8a2

Please sign in to comment.