mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 01:59:58 +00:00
Add .deb package building
This commit is contained in:
17
app/packaging/mac/distribution.xml
Normal file
17
app/packaging/mac/distribution.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<installer-gui-script minSpecVersion="1">
|
||||
<title>fx_cast Bridge</title>
|
||||
<domains enable_anywhere="false" enable_currentUserHome="true" enable_localSystem="true" />
|
||||
<pkg-ref id="tf.matt.fx_cast_bridge"/>
|
||||
<options customize="never" require-scripts="false"/>
|
||||
<choices-outline>
|
||||
<line choice="default">
|
||||
<line choice="tf.matt.fx_cast_bridge"/>
|
||||
</line>
|
||||
</choices-outline>
|
||||
<choice id="default"/>
|
||||
<choice id="tf.matt.fx_cast_bridge" visible="false">
|
||||
<pkg-ref id="tf.matt.fx_cast_bridge"/>
|
||||
</choice>
|
||||
<pkg-ref id="tf.matt.fx_cast_bridge" version="0.0.1" onConclusion="none">fx_cast_bridge_default.pkg</pkg-ref>
|
||||
</installer-gui-script>
|
||||
11
app/packaging/mac/scripts/postinstall
Executable file
11
app/packaging/mac/scripts/postinstall
Executable 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
|
||||
Reference in New Issue
Block a user