Skip to content

Commit b0be956

Browse files
committed
store the sparkle sources somewhere sensible
1 parent 7810774 commit b0be956

2 files changed

Lines changed: 9 additions & 16 deletions

File tree

.gitignore

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,13 @@
22
*.pyc
33
build/
44
dist/
5+
app/deps/Sparkle*
56

67
# cds garbage
7-
examples/*/*.pdf
8-
examples/*/*.png
9-
examples/*/*.jpg
10-
examples/*/*.gif
11-
examples/*/*.mov
12-
Resources/English.lproj/NodeBox\ Help/
138
related/
149
todo.txt
10+
test.py
1511

1612
# Xcode user files
1713
project.xcworkspace
1814
xcuserdata
19-
test.py

setup.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,20 +138,21 @@ def run(self):
138138

139139
# build the app
140140
self.spawn(['xcodebuild'])
141+
142+
# we don't need no stinking core dumps
141143
remove_tree(APP+'.dSYM')
142-
remove_tree(APP+'/Contents/Resources/doc')
143144

144-
# Download Sparkle and make sure it's decompressed in the ./related dir
145-
ORIG = 'related/Sparkle-%s/Sparkle.framework'%SPARKLE_VERSION
145+
# Download Sparkle (if necessary) and copy it into the bundle
146+
ORIG = 'app/deps/Sparkle-%s/Sparkle.framework'%SPARKLE_VERSION
146147
SPARKLE = join(APP,'Contents/Frameworks/Sparkle.framework')
147148
if not exists(ORIG):
148149
print "Downloading Sparkle.framework"
149-
self.mkpath(join(TOP,'related'))
150-
os.system('curl -L %s | bunzip2 -c | tar xf - -C related'%SPARKLE_URL)
150+
self.mkpath(join(TOP,'app/deps'))
151+
os.system('curl -L %s | bunzip2 -c | tar xf - -C app/deps'%SPARKLE_URL)
151152
self.mkpath(dirname(SPARKLE))
152153
self.spawn(['ditto', ORIG, SPARKLE])
153154

154-
# codesign using the most generic identity name possible
155+
# code-sign the app and sparkle bundles, then verify
155156
self.spawn(['codesign', '-f', '-v', '-s', "Developer ID Application", SPARKLE])
156157
self.spawn(['codesign', '-f', '-v', '-s', "Developer ID Application", APP])
157158
self.spawn(['spctl', '--assess', '-v', 'dist/PlotDevice.app'])
@@ -243,11 +244,8 @@ def info_plist():
243244
},
244245
))
245246

246-
247247
# py2app-specific config
248248
if BUILD_APP:
249-
250-
251249
config.update(dict(
252250
app = [{
253251
'script': "app/plotdevice-app.py",

0 commit comments

Comments
 (0)