Skip to content

Commit cc32dbe

Browse files
author
WingLim
committed
refactor: rename to MicFix
1 parent 95c27c6 commit cc32dbe

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<key>KeepAlive</key>
66
<true/>
77
<key>Label</key>
8-
<string>com.WingLim.ComboJack-Swift</string>
8+
<string>com.WingLim.MicFix</string>
99
<key>ProgramArguments</key>
1010
<array>
11-
<string>/usr/local/bin/ComboJack-Swift</string>
11+
<string>/usr/local/bin/MicFix</string>
1212
</array>
1313
<key>RunAtLoad</key>
1414
<true/>

scripts/install.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
# install.sh
4-
# ComboJack-Swift
4+
# MicFix
55
#
66
# Created by WingLim on 2021/5/15.
77
#
@@ -10,8 +10,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
1010

1111
# Clean up old installs
1212
function cleanUpOldInstall() {
13-
sudo launchctl unload /Library/LaunchAgents/com.WingLim.ComboJack-Swift.plist
14-
sudo rm -rf /Library/LaunchAgents/com.WingLim.ComboJack-Swift.plist
13+
sudo launchctl unload /Library/LaunchAgents/com.WingLim.MicFix.plist
14+
sudo rm -rf /Library/LaunchAgents/com.WingLim.MicFix.plist
1515
}
1616

1717
# Function that exits with an error code and message
@@ -30,15 +30,15 @@ echo "Removing old installs"
3030
cleanUpOldInstall 2>/dev/null
3131

3232
echo "Copying new files"
33-
sudo cp "$DIR/ComboJack-Swift" /usr/local/bin/ComboJack-Swift || abort "Failed to copy ComboJack-Swift"
34-
sudo cp "$DIR/com.WingLim.ComboJack-Swift.plist" /Library/LaunchAgents || abort "Failed to copy launchd plist file"
33+
sudo cp "$DIR/MicFix" /usr/local/bin/MicFix || abort "Failed to copy MicFix"
34+
sudo cp "$DIR/com.WingLim.MicFix.plist" /Library/LaunchAgents || abort "Failed to copy launchd plist file"
3535

3636
echo "Setting permissions"
37-
sudo chmod 755 /usr/local/bin/ComboJack-Swift
38-
sudo chmod 644 /Library/LaunchAgents/com.WingLim.ComboJack-Swift.plist
37+
sudo chmod 755 /usr/local/bin/MicFix
38+
sudo chmod 644 /Library/LaunchAgents/com.WingLim.MicFix.plist
3939

40-
sudo chown root:wheel /usr/local/bin/ComboJack-Swift
41-
sudo chown root:wheel /Library/LaunchAgents/com.WingLim.ComboJack-Swift.plist
40+
sudo chown root:wheel /usr/local/bin/MicFix
41+
sudo chown root:wheel /Library/LaunchAgents/com.WingLim.MicFix.plist
4242

4343
echo "Loading launch daemon"
44-
sudo launchctl load /Library/LaunchAgents/com.WingLim.ComboJack-Swift.plist
44+
sudo launchctl load /Library/LaunchAgents/com.WingLim.MicFix.plist

0 commit comments

Comments
 (0)