Files
fx_cast/app/packaging/mac/scripts/postinstall
2018-12-13 16:23:02 +00:00

12 lines
353 B
Bash
Executable File

#!/bin/sh
# If the target location isn't root, we need to rewrite
# the manifest path to point to the user directory.
if [ "$2" != "/" ]; then
installedManifestPath=$2"/{{{manifestPath}}}/{{{manifestName}}}"
sed -i.bak 's,{{{executablePath}}},'$2'{{{executablePath}}},g' "$installedManifestPath"
rm "$installedManifestPath.bak"
fi
exit 0