File: build-overlay-installer

package info (click to toggle)
mumble 1.5.735-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 90,036 kB
  • sloc: cpp: 556,923; ansic: 81,662; python: 3,606; sh: 659; makefile: 506; asm: 371; cs: 306; sql: 228; javascript: 143; perl: 80; xml: 13
file content (28 lines) | stat: -rwxr-xr-x 1,201 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
#
# Copyright 2005-2020 The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.

cp libmumbleoverlay.dylib MumbleOverlay.osax/Contents/MacOS/

productbuild \
	--component MumbleOverlay.osax /Library/ScriptingAdditions \
	synth.pkg

root=$(mktemp -d -t mumble-overlay-installer)
/usr/bin/xar -f synth.pkg -x -C ${root}
mkdir -p ${root}/Resources
mv bg.png ${root}/Resources/
VERSION=`/usr/libexec/PlistBuddy -c "print MumbleOverlayVersion" MumbleOverlay.osax/Contents/Info.plist`
MINCLIENT=`/usr/libexec/PlistBuddy -c "print MumbleOverlayMinMumbleVersion" MumbleOverlay.osax/Contents/Info.plist`
echo "<upgrade version=\"${VERSION}\" minclient=\"${MINCLIENT}\" />" > ${root}/upgrade.xml

sed -i '' -e 's,<installer-gui-script minSpecVersion="1">,<installer-gui-script minSpecVersion="1"><title>Mumble Overlay</title><background mime-type="image/png" file="bg.png" />,' ${root}/Distribution

pushd ${root}
/usr/bin/xar -f MumbleOverlay.pkg --no-compress "^.*$" -c ./*
popd

cp ${root}/MumbleOverlay.pkg MumbleOverlay.pkg