Add .deb package building

This commit is contained in:
hensm
2018-11-29 06:38:57 +00:00
parent ffa2a84793
commit e7d1a27895
5 changed files with 109 additions and 53 deletions

View File

@@ -0,0 +1,11 @@
#!/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
manifestPath=$2"/Library/Application Support/Mozilla/NativeMessagingHosts/fx_cast_bridge.json"
sed -i.bak 's,"path": "/Library,"path": "'$2'/Library,g' "$manifestPath"
rm "$manifestPath.bak"
fi
exit 0