Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #29 from kbernhagen/macos-installer-updates
Browse files Browse the repository at this point in the history
preinstall remove old FAHControl
  • Loading branch information
jcoffland committed May 11, 2018
2 parents 2589125 + b618a77 commit 47b337f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions osx/scripts/preinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash -e

# fahcontrol preinstall

# delete old app, so system will not relocate if bundle id has changed
# also delete improperly moved app and cruft

A1="/Applications/Folding@home/FAHControl.app"
A2="/Applications/Folding@home/FAHControl/FAHControl.app"

F1="/Applications/Folding@home/FAHControl/.DS_Store"
D1="/Applications/Folding@home/FAHControl"

[ -d "$A1" ] && rm -rf "$A1" || true
[ -d "$A2" ] && rm -rf "$A2" || true

[ -f "$F1" ] && rm -f "$F1" || true
[ -d "$D1" ] && rmdir "$D1" || true

0 comments on commit 47b337f

Please sign in to comment.