Skip to content

Commit

Permalink
Merge branch 'main' into deployment-target-macOS-13
Browse files Browse the repository at this point in the history
  • Loading branch information
F1248 committed Aug 23, 2024
2 parents 9da976c + c396316 commit 972494a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Genius/Types/OSBootMode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ enum OSBootMode {
case recovery

init?(_ osBootMode: Any?) {
if FileManager.default.fileExists(atPath: "/usr/bin/recoverydiagnose") {
if !FileManager.default.fileExists(atPath: "/System/Library/CoreServices/Finder.app") {
self = .recovery
} else {
let osBootMode: Self? =
Expand Down
22 changes: 10 additions & 12 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@

/bin/echo "
Preparing..."
if [ -e /usr/bin/recoverydiagnose ]; then
cd ~
if [ -w /Applications ]; then
cd /Applications
else
if [ -w /Applications ]; then
cd /Applications
else
/bin/mkdir -p ~/Applications
cd ~/Applications
fi
/bin/mkdir -p ~/Applications
cd ~/Applications
fi

/bin/echo "Downloading..."
Expand All @@ -19,17 +15,19 @@ fi
/bin/echo "Installing..."
/usr/bin/unzip -q -o Genius.zip
/usr/bin/unzip -q -o Genius.zip
if [ ! -e /System/Library/CoreServices/Finder.app ]; then
/bin/echo "
export PATH=\"$(/bin/pwd)/Genius.app/Contents/MacOS:\$PATH\"" >> ~/.bash_profile
fi

/bin/echo "Cleaning up..."
/bin/rm Genius.zip

/bin/echo "Opening..."
if [ -e /usr/bin/open ]; then
/usr/bin/open Genius.app
/usr/bin/open Genius.app
else
/bin/echo "
export PATH=\"$HOME/Genius.app/Contents/MacOS:\$PATH\"" >> ~/.bash_profile
Genius.app/Contents/MacOS/Genius
Genius.app/Contents/MacOS/Genius
fi

/bin/echo "Done."

0 comments on commit 972494a

Please sign in to comment.