fixed dependency-bug in ubuntu cosmic and stretch

This commit is contained in:
Marc Wäckerlin
2018-09-10 11:26:12 +00:00
parent e8f42af1f8
commit cd168283eb
6 changed files with 56 additions and 46 deletions

View File

@@ -86,20 +86,19 @@ if test -n "${QTDIR}"; then
fi
fi
# Step 5: copy or create info.plist
infoplist=$(find ${apptarget}/Contents/Resources -name Info.plist)
if test -f "${infoplist}"; then
cp -a "${infoplist}" ${apptarget}/Contents/Info.plist
# Step 5: copy local or create new info.plist
if test -f Info.plist; then
cp -a Info.plist ${apptarget}/Contents/Info.plist
else
cat > ${apptarget}/Contents/Info.plist <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<qdict>
<key>CFBundleIdentifier</key>
<string>${project}</string>
<key>CFBundleExecutable</key>
<string>${executablefile##/}</string>
<string>${executablefile##*/}</string>
</dict>
</plist>
EOF