Centralize package info and do version checking between app/ext

This commit is contained in:
hensm
2018-12-11 19:42:01 +00:00
parent d615caf30d
commit 88a5c68a1b
17 changed files with 222 additions and 76 deletions

View File

@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<installer-gui-script minSpecVersion="1">
<title>fx_cast Bridge</title>
<title>{{applicationName}}</title>
<domains enable_anywhere="false" enable_currentUserHome="true" enable_localSystem="true" />
<pkg-ref id="tf.matt.fx_cast_bridge"/>
<pkg-ref id="{{packageId}}"/>
<options customize="never" require-scripts="false"/>
<choices-outline>
<line choice="default">
<line choice="tf.matt.fx_cast_bridge"/>
<line choice="{{packageId}}"/>
</line>
</choices-outline>
<choice id="default"/>
<choice id="tf.matt.fx_cast_bridge" visible="false">
<pkg-ref id="tf.matt.fx_cast_bridge"/>
<choice id="{{packageId}}" visible="false">
<pkg-ref id="{{packageId}}"/>
</choice>
<pkg-ref id="tf.matt.fx_cast_bridge" version="0.0.1" onConclusion="none">fx_cast_bridge_default.pkg</pkg-ref>
<pkg-ref id="{{packageId}}" onConclusion="none">{{componentName}}</pkg-ref>
</installer-gui-script>

View File

@@ -3,7 +3,7 @@
# 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"
manifestPath=$2"/Library/Application Support/Mozilla/NativeMessagingHosts/{{{manifestName}}}"
sed -i.bak 's,"path": "/Library,"path": "'$2'/Library,g' "$manifestPath"
rm "$manifestPath.bak"
fi