Auto Update with electron-updater (WIP) #808

Merged
alexliebowitz merged 36 commits from auto-update into master 2018-01-24 23:51:49 +01:00
Showing only changes of commit 2031f36f7c - Show all commits

View file

@ -19,14 +19,16 @@ def get_asset_filename():
this_dir = os.path.dirname(os.path.realpath(__file__))
system = platform.system()
if system == 'Darwin':
return glob.glob(this_dir + '/../dist/LBRY*.dmg')[0]
suffix = 'dmg'
elif system == 'Linux':
return glob.glob(this_dir + '/../dist/LBRY*.deb')[0]
suffix = 'deb'
elif system == 'Windows':
return glob.glob(this_dir + '/../dist/LBRY*.exe')[0]
suffix = 'exe'
else:
raise Exception("I don't know about any artifact on {}".format(system))
return glob.glob(this_dir + '/../dist/LBRY*.' + suffix)[0]
def upload_to_s3(folder):
tag = subprocess.check_output(['git', 'describe', '--always', '--abbrev=8', 'HEAD']).strip()