@@ -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