Imported Upstream version 0.13.2+dsfg1
This commit is contained in:
commit
fb3990e9e5
2036 changed files with 287360 additions and 0 deletions
26
cmake/osxbundle/Info.plist
Normal file
26
cmake/osxbundle/Info.plist
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>OBS.icns</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>OBS</string>
|
||||
<key>CFBundleGetInfoString</key>
|
||||
<string>OBS - Free and Open Source Streaming/Recording Software</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>OBS</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.obsproject.obs-studio</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>10.8.5</string>
|
||||
<key>NSHighResolutionCapable</key>
|
||||
<true/>
|
||||
<key>LSAppNapIsDisabled</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
51
cmake/osxbundle/fixup_bundle.sh
Executable file
51
cmake/osxbundle/fixup_bundle.sh
Executable file
|
|
@ -0,0 +1,51 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ "$#" != 2 ]; then
|
||||
echo "usage: $0 /path/to/install/root relative/lib/destination"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd "$1"
|
||||
|
||||
function buildlist() {
|
||||
otool -L "$@" |
|
||||
grep -E "(opt|Users)" |
|
||||
perl -pe 's|^\s+(/.*)\s\(.*$|$1|' |
|
||||
grep -vE ":$" |
|
||||
sort -u
|
||||
}
|
||||
export -f buildlist
|
||||
|
||||
DEST="$2"
|
||||
LDEST="@rpath"
|
||||
TARGETS="$(find . \( -perm +111 -and -type f \))"
|
||||
FOUNDLIBS="$(buildlist $TARGETS)"
|
||||
PFOUNDLIBS=""
|
||||
|
||||
while [ "$FOUNDLIBS" != "$PFOUNDLIBS" ]; do
|
||||
PFOUNDLIBS="$FOUNDLIBS"
|
||||
FOUNDLIBS="$(buildlist $TARGETS $PFOUNDLIBS)"
|
||||
done
|
||||
|
||||
INTOOL_CALL=()
|
||||
|
||||
for lib in $FOUNDLIBS; do
|
||||
libname="$(basename "$lib")"
|
||||
|
||||
INTOOL_CALL+=(-change "$lib" "$LDEST/$libname")
|
||||
cp "$lib" "$DEST/$libname"
|
||||
|
||||
echo "Fixing up dependency: $libname"
|
||||
done
|
||||
|
||||
for lib in $FOUNDLIBS; do
|
||||
libname="$(basename "$lib")"
|
||||
lib="$DEST/$libname"
|
||||
|
||||
install_name_tool ${INTOOL_CALL[@]} -id "$LDEST/$libname" "$lib"
|
||||
done
|
||||
|
||||
for target in $TARGETS; do
|
||||
install_name_tool ${INTOOL_CALL[@]} "$target"
|
||||
done
|
||||
|
||||
BIN
cmake/osxbundle/obs.icns
Normal file
BIN
cmake/osxbundle/obs.icns
Normal file
Binary file not shown.
5
cmake/osxbundle/obslaunch.sh
Executable file
5
cmake/osxbundle/obslaunch.sh
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
cd "$(dirname "$0")"
|
||||
cd ../Resources/bin
|
||||
exec ./obs "$@"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue