cp $prefix/src/dcpomatic/graphics/snap.png "$dest"
cp $prefix/src/dcpomatic/graphics/sequence.png "$dest"
cp $prefix/src/dcpomatic/graphics/me.jpg "$dest"
+ cp $prefix/src/dcpomatic/graphics/link.png "$dest"
cp -r $prefix/share/libdcp/xsd "$dest"
# i18n: DCP-o-matic .mo files
N=0
while [ 1 ]; do
echo "Checking up on $id"
+ set +e
status=$(xcrun altool --notarization-info $id -u $APPLE_ID -p $APPLE_PASSWORD --output-format xml)
+ set -e
summary=$(echo "$status" | grep -C1 "<key>Status</key>" | tail -n 1 | sed -e "s/ .//g")
echo "Got $summary"
if [ "$summary" == "<string>invalid</string>" ]; then
<key>DYLD_LIBRARY_PATH</key>
<string><![CDATA[/Library/Application Support/com.dcpomatic]]></string>
</dict>
- <key>KeepAlive</key>
- <true/>
- <key>RunAtLoad</key>
- <true/>
- <key>Debug</key>
- <true/>
<key>StandardOutPath</key>
<string>/var/log/dcpomatic_disk_writer_out.log</string>
<key>StandardErrorPath</key>
<string>/var/log/dcpomatic_disk_writer_err.log</string>
+ <key>LaunchEvents</key>
+ <dict>
+ <key>com.apple.notifyd.matching</key>
+ <dict>
+ <key>com.dcpomatic.disk.writer.start</key>
+ <dict>
+ <key>Notification</key>
+ <string>com.dcpomatic.disk.writer.start</string>
+ </dict>
+ </dict>
+ </dict>
</dict>
</plist>
EOF
mkdir $pkgbase/scripts
cat > $pkgbase/scripts/postinstall <<EOF
#!/bin/sh
+/bin/launchctl unload "/Library/LaunchDaemons/com.dcpomatic.disk.writer.plist"
/bin/launchctl load "/Library/LaunchDaemons/com.dcpomatic.disk.writer.plist"
exit 0
EOF