@@ -331,11 +331,12 @@ def generate_manifest(
331331
332332 file_path , file_name = os .path .split (tmp_file )
333333 entry = f"freeze('{ file_path } ', '{ file_name } ')"
334- manifest_files .append (entry )
335334 else :
336335 print (file )
337336 file_path , file_name = os .path .split (file )
338337 entry = f"freeze('{ file_path } ', '{ file_name } ')"
338+
339+ if entry not in manifest_files :
339340 manifest_files .append (entry )
340341
341342 for file in indevs :
@@ -356,7 +357,9 @@ def generate_manifest(
356357 print (focaltech_touch )
357358 directory , file_name = os .path .split (focaltech_touch )
358359 entry = f"freeze('{ directory } ', '{ file_name } ')"
359- manifest_files .append (entry )
360+
361+ if entry not in manifest_files :
362+ manifest_files .append (entry )
360363
361364 file = tmp_file
362365
@@ -367,12 +370,16 @@ def generate_manifest(
367370 if os .path .exists (extension ):
368371 print (extension )
369372 entry = f"freeze('{ directory } ', '{ extension_file } ')"
370- manifest_files .append (entry )
373+
374+ if entry not in manifest_files :
375+ manifest_files .append (entry )
371376
372377 print (file )
373378 file_path , file_name = os .path .split (file )
374379 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 )
376383
377384 display_paths = []
378385
@@ -394,13 +401,15 @@ def generate_manifest(
394401 print (os .path .join (tmp_file , file_name ))
395402
396403 entry = f"freeze('{ tmp_file } ', '{ file_name } ')"
397- manifest_files .append (entry )
404+ if entry not in manifest_files :
405+ manifest_files .append (entry )
398406 else :
399407 print (file )
400408 file_path , file_name = os .path .split (file )
401409 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+
404413 manifest_files = '\n ' .join (manifest_files )
405414
406415 with open ('build/manifest.py' , 'w' ) as f :
0 commit comments