File indexing completed on 2025-01-05 04:00:27

0001 import os
0002 import argparse
0003 
0004 
0005 root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
0006 doxpath = os.path.join(root, "docs", "dox")
0007 doxfile = os.path.join(doxpath, "downloads.dox")
0008 
0009 ref = "master"
0010 
0011 parser = argparse.ArgumentParser()
0012 parser.add_argument("--version-base")
0013 parser.add_argument("--version-suf")
0014 parser.add_argument("--version")
0015 
0016 ns = parser.parse_args()
0017 
0018 ctx = {
0019     "commit": ns.version_suf,
0020     "fullversion": ns.version,
0021     "url_base": "https://gitlab.com/mattbas/python-lottie/-/jobs/artifacts/%s/raw/dist" % ref
0022 }
0023 
0024 
0025 #https://gitlab.com/mattbas/python-lottie/-/jobs/artifacts/master/raw/dist/lottie-synfig-0.4.0+dev891144d.zip?job=build
0026 with open(doxfile, "w") as outf:
0027     outf.write("""
0028 /**
0029     \\page downloads Downloads
0030 
0031     Downloads for {fullversion}
0032 
0033     \li <a href="{url_base}/lottie-synfig-{fullversion}.zip?job=build">Synfig Plugin</a>
0034     \li <a href="{url_base}/lottie-blender-{fullversion}.zip?job=build">Blender Addon</a>
0035     \li <a href="{url_base}/lottie-inkscape-{fullversion}.zip?job=build">Inkscape Extension</a>
0036     \li <a href="{url_base}/lottie-{fullversion}.tar.gz?job=build">Python package</a>
0037 */
0038 """.format(**ctx))