36
36
CommandBase ,
37
37
is_macosx ,
38
38
is_windows ,
39
- get_browserhtml_path ,
40
39
)
41
40
from servo .util import delete
42
41
@@ -228,11 +227,9 @@ def package(self, release=False, dev=False, android=None, debug=False, debugger=
228
227
if path .exists (dir_to_dmg ):
229
228
print ("Cleaning up from previous packaging" )
230
229
delete (dir_to_dmg )
231
- browserhtml_path = get_browserhtml_path (binary_path )
232
230
233
231
print ("Copying files" )
234
232
shutil .copytree (path .join (dir_to_root , 'resources' ), dir_to_resources )
235
- shutil .copytree (browserhtml_path , path .join (dir_to_resources , 'browserhtml' ))
236
233
shutil .copy2 (path .join (dir_to_root , 'Info.plist' ), path .join (dir_to_app , 'Contents' , 'Info.plist' ))
237
234
238
235
content_dir = path .join (dir_to_app , 'Contents' , 'MacOS' )
@@ -264,16 +261,6 @@ def package(self, release=False, dev=False, android=None, debug=False, debugger=
264
261
credits_file .write (template .render (version = version ))
265
262
delete (template_path )
266
263
267
- print ("Writing run-servo" )
268
- bhtml_path = path .join ('${0%/*}' , '..' , 'Resources' , 'browserhtml' , 'index.html' )
269
- runservo = os .open (
270
- path .join (content_dir , 'run-servo' ),
271
- os .O_WRONLY | os .O_CREAT ,
272
- int ("0755" , 8 )
273
- )
274
- os .write (runservo , '#!/bin/bash\n exec ${0%/*}/servo ' + bhtml_path )
275
- os .close (runservo )
276
-
277
264
print ("Creating dmg" )
278
265
os .symlink ('/Applications' , path .join (dir_to_dmg , 'Applications' ))
279
266
dmg_path = path .join (target_dir , "servo-tech-demo.dmg" )
@@ -323,14 +310,12 @@ def package(self, release=False, dev=False, android=None, debug=False, debugger=
323
310
print ("Cleaning up from previous packaging" )
324
311
delete (dir_to_msi )
325
312
os .makedirs (dir_to_msi )
326
- browserhtml_path = get_browserhtml_path (binary_path )
327
313
328
314
print ("Copying files" )
329
315
dir_to_temp = path .join (dir_to_msi , 'temp' )
330
316
dir_to_temp_servo = path .join (dir_to_temp , 'servo' )
331
317
dir_to_resources = path .join (dir_to_temp_servo , 'resources' )
332
318
shutil .copytree (path .join (dir_to_root , 'resources' ), dir_to_resources )
333
- shutil .copytree (browserhtml_path , path .join (dir_to_temp_servo , 'browserhtml' ))
334
319
shutil .copy (binary_path , dir_to_temp_servo )
335
320
shutil .copy ("{}.manifest" .format (binary_path ), dir_to_temp_servo )
336
321
copy_windows_dependencies (target_dir , dir_to_temp_servo )
@@ -372,7 +357,6 @@ def package(self, release=False, dev=False, android=None, debug=False, debugger=
372
357
delete (dir_to_temp )
373
358
else :
374
359
dir_to_temp = path .join (target_dir , 'packaging-temp' )
375
- browserhtml_path = get_browserhtml_path (binary_path )
376
360
if path .exists (dir_to_temp ):
377
361
# TODO(aneeshusa): lock dir_to_temp to prevent simultaneous builds
378
362
print ("Cleaning up from previous packaging" )
@@ -381,7 +365,6 @@ def package(self, release=False, dev=False, android=None, debug=False, debugger=
381
365
print ("Copying files" )
382
366
dir_to_resources = path .join (dir_to_temp , 'resources' )
383
367
shutil .copytree (path .join (dir_to_root , 'resources' ), dir_to_resources )
384
- shutil .copytree (browserhtml_path , path .join (dir_to_temp , 'browserhtml' ))
385
368
shutil .copy (binary_path , dir_to_temp )
386
369
387
370
change_prefs (dir_to_resources , "linux" )
0 commit comments