fah-control/osx/scripts/preinstall
Kevin Bernhagen 2d272e2e53 osx updates
Delete build/pkg before building.
Make build files python3-ready.
Update osx installer scripts.
Add osx/themes directory with gtk2 themes.
Add sandbox entitlements.
Do not access themes dirs not allowed by sandbox.
Disable sandbox for now, as it interferes with passing args to FAHViewer. Probably need app groups entitlement and drop an args.json file in group container.
2021-08-04 16:38:19 -07:00

13 lines
352 B
Bash
Executable File

#!/bin/bash -e
# fahcontrol preinstall
# pre-delete cruft from old pkg mistakes
# don't try to mv app here; installer won't like it
# at some pont, this will not be reasonable to keep doing
A1="/Applications/Folding@home/FAHControl.app"
A2="/Applications/Folding@home/FAHControl/FAHControl.app"
[ -d "$A1" ] && [ -d "$A2" ] && rm -rf "$A2" || true