Skip to content

Commit a8f87f7

Browse files
committed
Update create_installer.sh
1 parent c7044e6 commit a8f87f7

File tree

4 files changed

+79
-14
lines changed

4 files changed

+79
-14
lines changed

BlackHole.xcodeproj/project.pbxproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@
393393
INFOPLIST_FILE = BlackHole/BlackHole.plist;
394394
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Audio/Plug-Ins/HAL";
395395
MACOSX_DEPLOYMENT_TARGET = 10.9;
396-
PRODUCT_BUNDLE_IDENTIFIER = audio.existential.BlackHole2ch;
396+
PRODUCT_BUNDLE_IDENTIFIER = audio.existential.BlackHole;
397397
PRODUCT_NAME = "$(TARGET_NAME)";
398398
WRAPPER_EXTENSION = driver;
399399
};
@@ -412,7 +412,7 @@
412412
INFOPLIST_FILE = BlackHole/BlackHole.plist;
413413
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Audio/Plug-Ins/HAL";
414414
MACOSX_DEPLOYMENT_TARGET = 10.9;
415-
PRODUCT_BUNDLE_IDENTIFIER = audio.existential.BlackHole2ch;
415+
PRODUCT_BUNDLE_IDENTIFIER = audio.existential.BlackHole;
416416
PRODUCT_NAME = "$(TARGET_NAME)";
417417
WRAPPER_EXTENSION = driver;
418418
};
@@ -431,7 +431,7 @@
431431
INFOPLIST_FILE = BlackHole/BlackHole.plist;
432432
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Audio/Plug-Ins/HAL";
433433
MACOSX_DEPLOYMENT_TARGET = 10.9;
434-
PRODUCT_BUNDLE_IDENTIFIER = audio.existential.BlackHole2ch;
434+
PRODUCT_BUNDLE_IDENTIFIER = audio.existential.BlackHole;
435435
PRODUCT_NAME = "$(TARGET_NAME)";
436436
WRAPPER_EXTENSION = driver;
437437
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1340"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "3D89663D2849C318002AB3F0"
18+
BuildableName = "BlackHole.driver"
19+
BlueprintName = "BlackHole"
20+
ReferencedContainer = "container:BlackHole.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
</TestAction>
33+
<LaunchAction
34+
buildConfiguration = "Debug"
35+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37+
launchStyle = "0"
38+
useCustomWorkingDirectory = "NO"
39+
ignoresPersistentStateOnLaunch = "NO"
40+
debugDocumentVersioning = "YES"
41+
debugServiceExtension = "internal"
42+
allowLocationSimulation = "YES">
43+
</LaunchAction>
44+
<ProfileAction
45+
buildConfiguration = "Release"
46+
shouldUseLaunchSchemeArgsEnv = "YES"
47+
savedToolIdentifier = ""
48+
useCustomWorkingDirectory = "NO"
49+
debugDocumentVersioning = "YES">
50+
<MacroExpansion>
51+
<BuildableReference
52+
BuildableIdentifier = "primary"
53+
BlueprintIdentifier = "3D89663D2849C318002AB3F0"
54+
BuildableName = "BlackHole.driver"
55+
BlueprintName = "BlackHole"
56+
ReferencedContainer = "container:BlackHole.xcodeproj">
57+
</BuildableReference>
58+
</MacroExpansion>
59+
</ProfileAction>
60+
<AnalyzeAction
61+
buildConfiguration = "Debug">
62+
</AnalyzeAction>
63+
<ArchiveAction
64+
buildConfiguration = "Release"
65+
revealArchiveInOrganizer = "YES">
66+
</ArchiveAction>
67+
</Scheme>

BlackHole/BlackHole.plist

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
24-
<string>524</string>
24+
<string>528</string>
2525
<key>CFPlugInFactories</key>
2626
<dict>
27-
<key>ff5ed090-1521-11ea-8d71-362b9e155667</key>
27+
<key>e395c745-4eea-4d94-bb92-46224221047c</key>
2828
<string>BlackHole_Create</string>
2929
</dict>
3030
<key>CFPlugInTypes</key>
3131
<dict>
3232
<key>443ABAB8-E7B3-491A-B985-BEB9187030DB</key>
3333
<array>
34-
<string>ff5ed090-1521-11ea-8d71-362b9e155667</string>
34+
<string>e395c745-4eea-4d94-bb92-46224221047c</string>
3535
</array>
3636
</dict>
3737
</dict>

Installer/create_installer.sh

+6-8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44

55
# create installer for different channel versions
6+
67
for channels in 2 16 64 128 256
78
do
89

@@ -15,7 +16,8 @@ xcodebuild \
1516
-project BlackHole.xcodeproj \
1617
-configuration Release \
1718
-target BlackHole CONFIGURATION_BUILD_DIR=build \
18-
GCC_PREPROCESSOR_DEFINITIONS='$GCC_PREPROCESSOR_DEFINITIONS kNumber_Of_Channels='$channels' kPlugIn_BundleID=\"'$bundleID'\" '
19+
PRODUCT_BUNDLE_IDENTIFIER=$bundleID \
20+
GCC_PREPROCESSOR_DEFINITIONS='$GCC_PREPROCESSOR_DEFINITIONS kNumber_Of_Channels='$channels' kPlugIn_BundleID=\"'$bundleID'\"'
1921

2022
mkdir installer/root
2123
mv build/BlackHole.driver installer/root/BlackHole$ch.driver
@@ -28,7 +30,7 @@ codesign --force --deep --options runtime --sign Q5C99V536K Installer/root/Black
2830
chmod 755 Installer/Scripts/preinstall
2931
chmod 755 Installer/Scripts/postinstall
3032

31-
sudo pkgbuild --sign "Q5C99V536K" --root Installer/root --scripts Installer/Scripts --install-location /Library/Audio/Plug-Ins/HAL Installer/BlackHole.pkg
33+
pkgbuild --sign "Q5C99V536K" --root Installer/root --scripts Installer/Scripts --install-location /Library/Audio/Plug-Ins/HAL Installer/BlackHole.pkg
3234
rm -r Installer/root
3335

3436
# Create installer with productbuild
@@ -63,13 +65,9 @@ rm distribution.xml
6365
rm -f BlackHole.pkg
6466

6567
# Notarize
66-
xcrun altool --notarize-app -f BlackHole$ch.$version.pkg --primary-bundle-id $bundleID --username devinroth@existential.audio -progress -wait
67-
68-
# sudo xcrun stapler staple BlackHole$ch.$version.pkg
69-
70-
# Clean up
68+
xcrun notarytool submit BlackHole$ch.$version.pkg --team-id Q5C99V536K --progress --wait --keychain-profile "Notarize"
7169

72-
# rm BlackHole$ch.$version.pkg
70+
xcrun stapler staple BlackHole$ch.$version.pkg
7371

7472
cd ..
7573

0 commit comments

Comments
 (0)