PKG // Further fix with pkg installer postflight script.
This commit is contained in:
parent
5807c70713
commit
850bf8e3ca
|
@ -3,10 +3,8 @@
|
||||||
TARGET='vChewing'
|
TARGET='vChewing'
|
||||||
login_user=$(/usr/bin/stat -f%Su /dev/console)
|
login_user=$(/usr/bin/stat -f%Su /dev/console)
|
||||||
|
|
||||||
base_ver=12.0
|
OS_Version=$(sw_vers -productVersion)
|
||||||
ver=$(sw_vers | grep ProductVersion | cut -d':' -f2 | tr -d ' ')
|
if [[ ${OS_Version} < 12.0.0 ]]; then
|
||||||
if [ $(echo -e $base_ver"\n"$ver | sort -V | tail -1) == "$base_ver" ]
|
|
||||||
then
|
|
||||||
# Copy the wrongfully installed contents to the right location:
|
# Copy the wrongfully installed contents to the right location:
|
||||||
cp -r /Library/Input\ Methods/"${TARGET}".app /Users/"${login_user}"/Library/Input\ Methods/ || true
|
cp -r /Library/Input\ Methods/"${TARGET}".app /Users/"${login_user}"/Library/Input\ Methods/ || true
|
||||||
cp -r /Library/Keyboard\ Layouts/"${TARGET}"* /Users/"${login_user}"/Library/Keyboard\ Layouts/ || true
|
cp -r /Library/Keyboard\ Layouts/"${TARGET}"* /Users/"${login_user}"/Library/Keyboard\ Layouts/ || true
|
||||||
|
|
Loading…
Reference in New Issue