-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
149 lines (146 loc) · 5.59 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
from distutils.core import setup
from glob import glob
import py2app, sys, os, commands
# overriding version?
if 'QUOTEFIX_VERSION' in os.environ:
version = os.environ['QUOTEFIX_VERSION']
else:
# determine version by latest tag
status, version = commands.getstatusoutput("git describe --abbrev=0 --tags")
if status != 0:
# probably no hg installed or not building from a repository
version = "unknown"
if version[0] == 'v':
version = version[1:]
PLIST = {
'NSPrincipalClass' : 'QuoteFix',
'CFBundleIdentifier' : 'name.klep.mail.QuoteFix',
'NSHumanReadableCopyright' : '(c) 2009 - 2018 Robert Klep, [email protected]',
'SupportedPluginCompatibilityUUIDs' : [
# 10.6
'225E0A48-2CDB-44A6-8D99-A9BB8AF6BA04', # Mail 4.0
'B3F3FC72-315D-4323-BE85-7AB76090224D', # Message.framework 4.0
# 10.6.1
'2610F061-32C6-4C6B-B90A-7A3102F9B9C8', # Mail 4.1
'99BB3782-6C16-4C6F-B910-25ED1C1CB38B', # Message.framework 4.1
# 10.6.2
'2F0CF6F9-35BA-4812-9CB2-155C0FDB9B0F', # Mail
'0CB5F2A0-A173-4809-86E3-9317261F1745', # Message.framework
# 10.6.4
'B842F7D0-4D81-4DDF-A672-129CA5B32D57', # Mail 4.3
'E71BD599-351A-42C5-9B63-EA5C47F7CE8E', # Message.framework 4.3
# 10.6.5
'BDD81F4D-6881-4A8D-94A7-E67410089EEB', # Mail 4.4
'857A142A-AB81-4D99-BECC-D1B55A86D94E', # Message.framework 4.4
# special case for Mail 4.4.1
'36555EB0-53A7-4B29-9B84-6C0C6BACFC23',
# 10.6.7
'9049EF7D-5873-4F54-A447-51D722009310',
'1C58722D-AFBD-464E-81BB-0E05C108BE06',
# 10.7 (Lion)
'2DE49D65-B49E-4303-A280-8448872EFE87',
'1146A009-E373-4DB6-AB4D-47E59A7E50FD',
# 10.7.2
'6E7970A3-E5F1-4C41-A904-B18D3D8FAA7D',
'EF59EC5E-EFCD-4EA7-B617-6C5708397D24',
# 10.7.3
'4C286C70-7F18-4839-B903-6F2D58FA4C71',
# Mountain Lion 10.8 12A128p
'608CE00F-4576-4CAD-B362-F3CCB7DE8D67',
# 10.6.8 (Mail 4.6)
'064442B6-53C0-4A97-B71B-2F111AE4195B',
'588FF7D1-4310-4175-9980-145B7E975C02',
# 10.7.5
'758F235A-2FD0-4660-9B52-102CD0EA897F',
'3335F782-01E2-4DF1-9E61-F81314124212',
# 10.8.4
'2183B2CD-BEDF-4AA6-AC18-A1BBED2E3354',
'19B53E95-0964-4AAB-88F9-6D2F8B7B6037',
# 10.8.5
'2B98D2DD-000B-4521-83EB-7BFCB9B161C8',
'DAFFB2B4-77BC-4C25-8CE1-2405E652D54B',
# 10.9
'0941BB9F-231F-452D-A26F-47A43863C991',
'04D6EC0A-52FF-4BBE-9896-C0B5FB851BBA',
# 10.9 (special MBP version)
'72F55B63-35E4-4323-8CA7-104774A0DE95',
# Mavericks Mail update
'FBE5B158-5602-4A6D-9CC5-8461B9B7054E',
# 10.9.1 build 13B27
'E5EEAF89-45D0-4AB2-94C1-F1771B141573',
# 10.9.1 build 13B35
'1CD40D64-945D-4D50-B12D-9CD865533506',
# 10.9.2 #1
'8C32A4D9-0D6A-4557-8634-2231949C8628',
# 10.9.2 #2
'52D2D439-8589-4291-A03A-79F51A9234D9',
# 10.9.2 #3
'11D49A8C-C627-4E1C-AD98-6AFE8E66A841',
# 10.9.2 release
'88ED2D4C-D384-4BF5-8E94-B533455E6AAF',
# 10.9.3 release
'F4C26776-22B3-4A0A-96E1-EA8E4482E0B5',
# 10.9.4 release
'D1EFE124-86FF-4751-BF00-80B2C0D6F2E4',
# Yosemite Beta 14A361p
'21599536-7086-449D-B777-B2880FC27F86',
# Mail 8.0 (1985.4) (Yosemite)
'FBDAA21E-7D7A-40EC-941A-469A09C590A6',
# Mail 8.0 (1988) (Yosemite)
'FBD91264-8866-4DEB-AFBF-F08505810056',
# Mail 8.0 (1990.1) (Yosemite)
'800E5C92-87D3-429B-8740-5C6183CD13EA',
# Yosemite 10.10.1 beta
'7C051997-F45A-4523-B053-2D262F94C775',
# Mail 8.2 (2064) Yosemite 10.10.2 beta)
'60D52D22-7491-4CA7-95BA-88215BD88F8E',
# Mail 9.0 (3067) El Capitan
'AB695A2B-4605-4A74-A99F-AF9F9C92C41B',
# Mail 9.1 (3096.5) El Capitan 10.11.1
'DAF41AB7-F9AD-4273-9934-C81C74705B69',
# Mail 9.2 (3112) El Capitan 10.11.2
'1550C683-EA48-4036-B7CE-FB6F5D13EE02',
# Mail 9.3 (beta)
'71562B89-0D90-4588-8E94-A75B701D6443',
],
'Supported10.12PluginCompatibilityUUIDs' : [
# Mail 10.0 (3200) Sierra public beta
'36CCB8BB-2207-455E-89BC-B9D6E47ABB5B',
# Mail 10.1 (3243) Sierra 10.12.1 beta
'9054AFD9-2607-489E-8E63-8B09A749BC61',
# Mail 10.2 (3253) Sierra 10.12.2 beta
'1CD3B36A-0E3B-4A26-8F7E-5BDF96AAC97E',
# Mail 10.3 (3273) Sierra 10.12.4
'21560BD9-A3CC-482E-9B99-95B7BF61EDC1',
],
'Supported10.13PluginCompatibilityUUIDs' : [
# Mail 11.0 (3445.1.3) High Sierra beta
'C86CD990-4660-4E36-8CDA-7454DEB2E199'
],
# settings for Sparkle
'SUFeedURL' : 'https://raw.github.com/robertklep/quotefixformac/master/updates/appcast.xml',
'SUEnableAutomaticChecks' : False,
'SUShowReleaseNotes' : True,
'SUPublicDSAKeyFile' : 'quotefix.sparkle.pub.pem',
'SUAllowsAutomaticUpdates' : False,
}
# define distutils setup structure
setup(
plugin = [ 'QuoteFix.py' ],
version = version,
description = "QuoteFix for Mac is a Mail.app plugin",
data_files = [
'English.lproj',
# 'Dutch.lproj',
# 'French.lproj',
'updates/quotefix.sparkle.pub.pem',
'resources/donate.gif'
],
options = dict(py2app = dict(
extension = '.mailbundle',
semi_standalone = False,
packages = [ 'quotefix' ],
frameworks = glob("frameworks/Sparkle*.framework"),
plist = PLIST
))
)