Skip to content

Instantly share code, notes, and snippets.

@taonico
Created January 15, 2013 08:05
Show Gist options
  • Save taonico/4537106 to your computer and use it in GitHub Desktop.
Save taonico/4537106 to your computer and use it in GitHub Desktop.
moeclock make Info.plist
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import plistlib
class info:
21def __init__ (self):
self.infodata = {'CFBundleShortVersionString': '1.0.0',
'CFBundleSignature': 'SHEL',
'CFBundleInfoDictionaryVersion': '6.0',
'CFBundleIconFile': 'moeclock.icns',
'CFBundleAllowMixedLocalizations': 'true',
'CFBundleExecutable': 'moeclock.sh',
'CFBundleDevelopmentRegion': 'Japanese',
'CFBundleName': 'moeclock',
'CFBundleVersion': '1.0',
'CFBundlePackageType': 'APPL'}
if __name__ == '__main__':
#lists = plistlib.readPlist(sys.argv[1])
plistlib.writePlist(info().infodata, sys.argv[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment