added os x version

This commit is contained in:
Jeena 2013-10-19 18:55:47 +02:00
parent f78dd8b4e8
commit df246c5c1f
4 changed files with 63 additions and 8 deletions

2
.gitignore vendored
View file

@ -1 +1,3 @@
build build
dist
.DS_Store

BIN
Icon.icns Normal file

Binary file not shown.

View file

@ -12,6 +12,8 @@ License: BSD
## Installation ## Installation
### Linux + Windows
Download the [ZIP](https://github.com/jeena/feedthemonkey/archive/master.zip)-file, unzip it and then run: Download the [ZIP](https://github.com/jeena/feedthemonkey/archive/master.zip)-file, unzip it and then run:
On Linux you can just do (if you have PyQt already installed): On Linux you can just do (if you have PyQt already installed):
@ -24,6 +26,10 @@ On Windows you need to install (those are links to the binary packages):
Then rename `freethemonkey` to `freethemonkey.pyw` and then you can run it by double-clicking. Then rename `freethemonkey` to `freethemonkey.pyw` and then you can run it by double-clicking.
### OS X
Download [FeedTheMonkey.app.zip](http://jabs.nu/feedthemonkey/download/FeedTheMonkey.app.zip) unzip it and move it to your Applications folder. After that just run it like every other app.
## Keyboard shortcuts ## Keyboard shortcuts
The keyboard shortcuts are inspired by other feed readers which are inspired by the text editor vi. The keyboard shortcuts are inspired by other feed readers which are inspired by the text editor vi.

View file

@ -1,18 +1,65 @@
#!/usr/bin/env python2 #!/usr/bin/env python2
import os import os, PyQt4
from distutils.core import setup from setuptools import setup
from sys import platform as _platform
VERSION = "0.1.0"
APP = ["feedthemonkey"]
files = []
options = {}
setup_requires = []
is_osx = _platform == "darwin"
is_win = os.name == "nt"
is_linux = not is_osx and not is_win
if is_linux:
files += ('/usr/share/applications', ["feedthemonkey.desktop"])
files += ('/usr/share/pixmaps', ["feedthemonkey.xpm"])
if is_osx:
options = {
'py2app': {
'argv_emulation': False,
'iconfile': 'Icon.icns',
'plist': {
'CFBundleShortVersionString': VERSION,
'CFBundleIdentifier': "nu.jabs.apps.feedthemonkey",
'LSMinimumSystemVersion': "10.4",
'CFBundleURLTypes': [
{
'CFBundleURLName': 'nu.jabs.apps.feedthemonkey.handler',
'CFBundleURLSchemes': ['feedthemonkey']
}
]
},
'includes':['PyQt4.QtWebKit', 'PyQt4', 'PyQt4.QtCore', 'PyQt4.QtGui', 'PyQt4.QtNetwork'],
'excludes': ['PyQt4.QtDesigner', 'PyQt4.QtOpenGL', 'PyQt4.QtScript', 'PyQt4.QtSql', 'PyQt4.QtTest', 'PyQt4.QtXml', 'PyQt4.phonon', 'simplejson'],
'qt_plugins': 'imageformats',
}
}
setup_requires = ["py2app"]
for dirname, dirnames, filenames in os.walk('.'):
for filename in filenames:
if filename == "Icon.icns":
files += [(dirname, [os.path.join(dirname, filename)])]
print setup_requires
setup( setup(
name = "feedthemonkey", app = APP,
version = "0.1.0", name = "FeedTheMonkey",
options = options,
version = VERSION,
author = "Jeena Paradies", author = "Jeena Paradies",
author_email = "spam@jeenaparadies.net", author_email = "spam@jeenaparadies.net",
url = "http://jabs.nu/feedthemonkey", url = "http://jabs.nu/feedthemonkey",
license = "BSD license", license = "BSD license",
scripts = ["feedthemonkey"], scripts = ["feedthemonkey"],
data_files=[ data_files = files,
('/usr/share/applications', ["feedthemonkey.desktop"]), setup_requires = setup_requires
('/usr/share/pixmaps', ["feedthemonkey.xpm"])
]
) )