Skip to content

Commit 4fdd55c

Browse files
committed
Force restart on installation
1 parent 85ed0b8 commit 4fdd55c

File tree

6 files changed

+23
-17
lines changed

6 files changed

+23
-17
lines changed

BlackHole.xcodeproj/project.pbxproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@
530530
INFOPLIST_FILE = BlackHole/BlackHole.plist;
531531
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Audio/Plug-Ins/HAL";
532532
MACOSX_DEPLOYMENT_TARGET = 10.10;
533-
MARKETING_VERSION = 0.6.0;
533+
MARKETING_VERSION = 0.6.1;
534534
PRODUCT_BUNDLE_IDENTIFIER = audio.existential.BlackHole;
535535
PRODUCT_NAME = "$(TARGET_NAME)";
536536
WRAPPER_EXTENSION = driver;
@@ -550,7 +550,7 @@
550550
INFOPLIST_FILE = BlackHole/BlackHole.plist;
551551
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Audio/Plug-Ins/HAL";
552552
MACOSX_DEPLOYMENT_TARGET = 10.10;
553-
MARKETING_VERSION = 0.6.0;
553+
MARKETING_VERSION = 0.6.1;
554554
PRODUCT_BUNDLE_IDENTIFIER = audio.existential.BlackHole;
555555
PRODUCT_NAME = "$(TARGET_NAME)";
556556
WRAPPER_EXTENSION = driver;
@@ -570,7 +570,7 @@
570570
INFOPLIST_FILE = BlackHole/BlackHole.plist;
571571
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Audio/Plug-Ins/HAL";
572572
MACOSX_DEPLOYMENT_TARGET = 10.10;
573-
MARKETING_VERSION = 0.6.0;
573+
MARKETING_VERSION = 0.6.1;
574574
PRODUCT_BUNDLE_IDENTIFIER = audio.existential.BlackHole;
575575
PRODUCT_NAME = "$(TARGET_NAME)";
576576
WRAPPER_EXTENSION = driver;

CHANGELOG.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,21 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1717

1818
### Changed
1919

20-
## [0.6.0] - Mar 22, 2024
20+
## [0.6.1] - 2025-02-06
21+
- Updated installer to force a computer reboot as recommended by Apple.
22+
- Updated create_installer.sh script.
23+
24+
### Changed
25+
26+
27+
## [0.6.0] - 2024-03-22
2128

2229
## Added
23-
Added precompiler constant for kCanBeDefaultDevice and kCanBeDefaultSystemDevice.
30+
- Added precompiler constant for kCanBeDefaultDevice and kCanBeDefaultSystemDevice.
2431

2532
## Changed
26-
Updated postinstall script to use 'kill' instead of 'kickstart'.
27-
Updated strings for model name,
33+
- Updated postinstall script to use 'kill' instead of 'kickstart'.
34+
- Updated strings for model name,
2835

2936

3037
## [0.5.1] - 2023-11-06

Installer/create_installer.sh

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/usr/bin/env bash
1+
#!/usr/bin/env sh
2+
set -euo pipefail
23

34
# Creates installer for different channel versions.
45
# Run this script from the local BlackHole repo's root directory.
@@ -24,13 +25,13 @@ fi
2425

2526
version=`cat VERSION`
2627

27-
#Version Validation
28+
#Version Validation6
2829
if [ -z "$version" ]; then
2930
echo "Could not find version number. VERSION file is missing from repo root or is empty."
3031
exit 1
3132
fi
3233

33-
for channels in 2; do #16 64 128 256; do
34+
for channels in 2 16 64 128 256; do
3435
# Env
3536
ch=$channels"ch"
3637
driverVartiantName=$driverName$ch
@@ -100,7 +101,7 @@ for channels in 2; do #16 64 128 256; do
100101
<choice id=\"$bundleID\" visible='true' title=\"$driverName $ch\" start_selected='true'>
101102
<pkg-ref id=\"$bundleID\"/>
102103
</choice>
103-
<pkg-ref id=\"$bundleID\" version=\"$version\" onConclusion='none'>$driverName.pkg</pkg-ref>
104+
<pkg-ref id=\"$bundleID\" version=\"$version\" onConclusion='RequireRestart'>$driverName.pkg</pkg-ref>
104105
</installer-gui-script>" >> distribution.xml
105106

106107
# Build

Installer/scripts/postinstall

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/bin/zsh
1+
#!/bin/sh
22

3-
sudo chown -R root:wheel /Library/Audio/Plug-Ins/HAL
4-
sudo killall -9 coreaudiod
3+
sudo chown -R root:wheel /Library/Audio/Plug-Ins/HAL/BlackHole*ch.driver

Installer/scripts/preinstall

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
sudo mkdir -p /Library/Audio/Plug-Ins/HAL
44
sudo chown root:wheel /Library/Audio/Plug-Ins/HAL
5-
sudo chown -R root:wheel /Library/Audio/Plug-Ins/HAL/BlackHole*ch.driver

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.6.0
1+
0.6.1

0 commit comments

Comments
 (0)