def snap(is_stable=0): ''' Build clean snap package ''' is_stable = tobool(is_stable) builder = BuilderSnap(is_stable) builder.build()
def snap_publish(): builder = BuilderSnap(False) snap_files = builder.get_snap_files() for snap_file in snap_files: print_info('Publish snap: {fname}'.format(fname=snap_file)) local('snapcraft push "{fname}"'.format(fname=snap_file)) local('snapcraft sign-build "{fname}"'.format(fname=snap_file))
def snap_publish(): ''' Publish created snap package ''' builder = BuilderSnap(False) snap_files = builder.get_snap_files() for snap_file in snap_files: print_info('Publish snap: {fname}'.format(fname=snap_file)) local('snapcraft push "{fname}"'.format(fname=snap_file)) local('snapcraft sign-build "{fname}"'.format(fname=snap_file))
def snap_publish(*channels): ''' Publish created snap package channels - comma separated list of channels the snap would be released: edge, beta, candidate, release ''' builder = BuilderSnap(False) snap_files = builder.get_snap_files() for snap_file in snap_files: print_info('Publish snap: {fname}'.format(fname=snap_file)) if channels: channels_str = ','.join(channels) command = 'snapcraft upload "{fname}" --release {channels}'.format( fname=snap_file, channels=channels_str) else: command = 'snapcraft upload "{fname}"'.format(fname=snap_file) local(command)
def snap(c, params): ''' Build clean snap package ''' builder = BuilderSnap(c, params) builder.build()
def snap(is_stable=0): is_stable = tobool(is_stable) builder = BuilderSnap(is_stable) builder.build()