@@ -99,6 +99,10 @@ if __name__ == "__main__":
9999
100100 bundle_lib_location = os .path .abspath (sys .argv [1 ])
101101 output_dir = os .path .abspath (sys .argv [2 ])
102+ if len (sys .argv ) >= 3 :
103+ filename_prefix = sys .argv [3 ]
104+ else :
105+ filename_prefix = "adafruit-circuitpython-bundle"
102106 os .makedirs (output_dir , exist_ok = True )
103107 os .chdir (bundle_lib_location )
104108
@@ -112,14 +116,14 @@ if __name__ == "__main__":
112116 bundle_version = bundle_version .stdout .strip ().decode ("utf-8" , "strict" )
113117
114118 zip_filename = os .path .join (output_dir ,
115- 'adafruit-circuitpython-bundle -py-{VERSION}.zip' .format (
119+ filename_prefix + ' -py-{VERSION}.zip' .format (
116120 VERSION = bundle_version ))
117121 build_bundle (bundle_lib_location , bundle_version , zip_filename )
118122 os .makedirs ("build_deps" , exist_ok = True )
119123 for version in target_versions .VERSIONS :
120124 mpy_cross = resource_filename (target_versions .__name__ , "data/mpy-cross-" + version ["name" ])
121125 zip_filename = os .path .join (output_dir ,
122- 'adafruit-circuitpython-bundle -{TAG}-{VERSION}.zip' .format (
126+ filename_prefix + ' -{TAG}-{VERSION}.zip' .format (
123127 TAG = version ["name" ],
124128 VERSION = bundle_version ))
125129 build_bundle (bundle_lib_location , bundle_version , zip_filename , mpy_cross = mpy_cross )
0 commit comments