Skip to content

Instantly share code, notes, and snippets.

@honestbleeps
Created September 30, 2016 17:34
Show Gist options
  • Save honestbleeps/9631f7ae74d16e0a4140b5e386a3cb5e to your computer and use it in GitHub Desktop.
Save honestbleeps/9631f7ae74d16e0a4140b5e386a3cb5e to your computer and use it in GitHub Desktop.
<?php
$json = file_get_contents('upd.json');
$jsonObj = json_decode($json);
echo '<?xml version="1.0" encoding="UTF-8"?>'."\n";
?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Extension Updates</key>
<array>
<dict>
<key>CFBundleIdentifier</key>
<string>com.honestbleeps.redditenhancementsuite</string>
<key>Developer Identifier</key>
<string>63DT2C85Z6</string>
<key>CFBundleVersion</key>
<string><?php echo $jsonObj->latestVersion; ?></string>
<key>CFBundleShortVersionString</key>
<string><?php echo $jsonObj->latestVersion; ?></string>
<key>URL</key>
<string>http://redditenhancementsuite.com/latest/RES.safariextz</string>
</dict>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment