added os x version
This commit is contained in:
parent
f78dd8b4e8
commit
df246c5c1f
4 changed files with 63 additions and 8 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1,3 @@
|
|||
build
|
||||
dist
|
||||
.DS_Store
|
BIN
Icon.icns
Normal file
BIN
Icon.icns
Normal file
Binary file not shown.
|
@ -12,6 +12,8 @@ License: BSD
|
|||
|
||||
## Installation
|
||||
|
||||
### Linux + Windows
|
||||
|
||||
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):
|
||||
|
@ -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.
|
||||
|
||||
### 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
|
||||
|
||||
The keyboard shortcuts are inspired by other feed readers which are inspired by the text editor vi.
|
||||
|
|
63
setup.py
63
setup.py
|
@ -1,18 +1,65 @@
|
|||
#!/usr/bin/env python2
|
||||
|
||||
import os
|
||||
from distutils.core import setup
|
||||
import os, PyQt4
|
||||
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(
|
||||
name = "feedthemonkey",
|
||||
version = "0.1.0",
|
||||
app = APP,
|
||||
name = "FeedTheMonkey",
|
||||
options = options,
|
||||
version = VERSION,
|
||||
author = "Jeena Paradies",
|
||||
author_email = "spam@jeenaparadies.net",
|
||||
url = "http://jabs.nu/feedthemonkey",
|
||||
license = "BSD license",
|
||||
scripts = ["feedthemonkey"],
|
||||
data_files=[
|
||||
('/usr/share/applications', ["feedthemonkey.desktop"]),
|
||||
('/usr/share/pixmaps', ["feedthemonkey.xpm"])
|
||||
]
|
||||
data_files = files,
|
||||
setup_requires = setup_requires
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue