parameters: ()
docstring: create zip of install dir
docstring_summary: create zip of install dir
docstring_tokens: create zip of install dir
function: def archive():
      """ create zip of install dir """
      click.echo('--- Archiving')
      archive_file_path = os.path.join(SCRIPT_PATH, 'builds', 'discord-rpc-%s.zip' % get_platform())
      archive_file = zipfile.ZipFile(archive_file_path, 'w', zipfile.ZIP_DEFLATED)
      archive_src_base_path = INSTALL_ROOT
      archive_dst_base_path = 'discord-rpc'
      with cd(archive_src_base_path):
          for path, _, filenames in os.walk('.'):
              for fname in filenames:
                  fpath = os.path.join(path, fname)
                  dst_path = os.path.normpath(os.path.join(archive_dst_base_path, fpath))
                  click.echo('Adding ' + dst_path)
                  archive_file.write(fpath, dst_path)
function_tokens: def archive ( ) : click . echo ( '--- Archiving' ) archive_file_path = os . path . join ( SCRIPT_PATH , 'builds' , 'discord-rpc-%s.zip' % get_platform ( ) ) archive_file = zipfile . ZipFile ( archive_file_path , 'w' , zipfile . ZIP_DEFLATED ) archive_src_base_path = INSTALL_ROOT archive_dst_base_path = 'discord-rpc' with cd ( archive_src_base_path ) : for path , _ , filenames in os . walk ( '.' ) : for fname in filenames : fpath = os . path . join ( path , fname ) dst_path = os . path . normpath ( os . path . join ( archive_dst_base_path , fpath ) ) click . echo ( 'Adding ' + dst_path ) archive_file . write ( fpath , dst_path )