@@ -331,11 +331,12 @@ def generate_manifest(
331
331
332
332
file_path , file_name = os .path .split (tmp_file )
333
333
entry = f"freeze('{ file_path } ', '{ file_name } ')"
334
- manifest_files .append (entry )
335
334
else :
336
335
print (file )
337
336
file_path , file_name = os .path .split (file )
338
337
entry = f"freeze('{ file_path } ', '{ file_name } ')"
338
+
339
+ if entry not in manifest_files :
339
340
manifest_files .append (entry )
340
341
341
342
for file in indevs :
@@ -356,7 +357,9 @@ def generate_manifest(
356
357
print (focaltech_touch )
357
358
directory , file_name = os .path .split (focaltech_touch )
358
359
entry = f"freeze('{ directory } ', '{ file_name } ')"
359
- manifest_files .append (entry )
360
+
361
+ if entry not in manifest_files :
362
+ manifest_files .append (entry )
360
363
361
364
file = tmp_file
362
365
@@ -367,12 +370,16 @@ def generate_manifest(
367
370
if os .path .exists (extension ):
368
371
print (extension )
369
372
entry = f"freeze('{ directory } ', '{ extension_file } ')"
370
- manifest_files .append (entry )
373
+
374
+ if entry not in manifest_files :
375
+ manifest_files .append (entry )
371
376
372
377
print (file )
373
378
file_path , file_name = os .path .split (file )
374
379
entry = f"freeze('{ file_path } ', '{ file_name } ')"
375
- manifest_files .append (entry )
380
+
381
+ if entry not in manifest_files :
382
+ manifest_files .append (entry )
376
383
377
384
display_paths = []
378
385
@@ -394,13 +401,15 @@ def generate_manifest(
394
401
print (os .path .join (tmp_file , file_name ))
395
402
396
403
entry = f"freeze('{ tmp_file } ', '{ file_name } ')"
397
- manifest_files .append (entry )
404
+ if entry not in manifest_files :
405
+ manifest_files .append (entry )
398
406
else :
399
407
print (file )
400
408
file_path , file_name = os .path .split (file )
401
409
entry = f"freeze('{ file_path } ', '{ file_name } ')"
402
- manifest_files .append (entry )
403
-
410
+ if entry not in manifest_files :
411
+ manifest_files .append (entry )
412
+
404
413
manifest_files = '\n ' .join (manifest_files )
405
414
406
415
with open ('build/manifest.py' , 'w' ) as f :
0 commit comments