Alpha version 1.1.26: Fix release script.

This commit is contained in:
John Preston 2017-12-02 18:56:55 +04:00
parent 8668d43032
commit 2a59802a16
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
import os, sys, requests, pprint, re, json import os, sys, requests, pprint, re, json
from uritemplate import URITemplate, expand from uritemplate import URITemplate, expand
from subprocess import call from subprocess import call
from os.path import expanduser
changelog_file = '../../changelog.txt' changelog_file = '../../changelog.txt'
token_file = '../../../TelegramPrivate/github-releases-token.txt' token_file = '../../../TelegramPrivate/github-releases-token.txt'
@ -98,7 +99,7 @@ if access_token == '':
sys.exit(1) sys.exit(1)
print('Version: ' + version_full); print('Version: ' + version_full);
local_folder = '$HOME/Telegram/backup/' + version_major + '/' + version_full local_folder = expanduser("~") + '/Telegram/backup/' + version_major + '/' + version_full
if stable == 1: if stable == 1:
if os.path.isdir(local_folder + '.dev'): if os.path.isdir(local_folder + '.dev'):
@ -113,7 +114,7 @@ if stable == 1:
local_folder = local_folder + '.alpha' local_folder = local_folder + '.alpha'
if not os.path.isdir(local_folder): if not os.path.isdir(local_folder):
print('Storage path not found!') print('Storage path not found: ' + local_folder)
sys.exit(1) sys.exit(1)
local_folder = local_folder + '/' local_folder = local_folder + '/'