Skip to content

Commit c5b6056

Browse files
author
Bryant Luk
committed
Zip the library for release
- GitHub has a file limit restriciton of 100MB
1 parent c445bcb commit c5b6056

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

fabfile.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,12 @@ def build(outdir=None, device_sdk=None, simulator_sdk=None, **kwargs):
214214
_copy(header_files, cardio_dir)
215215

216216
libfile = os.path.join(lipo_build_dirs["Release"], env.libname)
217-
shutil.copy2(libfile, cardio_dir)
217+
218+
shutil.copy2("{libfile}".format(libfile=libfile), ".")
219+
zip_cmd = "zip {libname}.zip {libname}".format(libname=env.libname)
220+
local(zip_cmd)
221+
os.remove("{libname}".format(libname=env.libname))
222+
shutil.move("{libname}.zip".format(libname=env.libname), cardio_dir)
218223

219224
release_dir = os.path.join(icc_root, "Release")
220225
shutil.copy2(os.path.join(release_dir, "release_notes.txt"), sdk_dir)

0 commit comments

Comments
 (0)