enable early access in build
This commit is contained in:
parent
be339d904c
commit
683849046b
1 changed files with 13 additions and 0 deletions
|
@ -1,15 +1,28 @@
|
||||||
"""Set the build version to be 'dev', 'qa', 'rc', 'release'"""
|
"""Set the build version to be 'dev', 'qa', 'rc', 'release'"""
|
||||||
|
|
||||||
|
from __future__ import print_function
|
||||||
|
|
||||||
import os.path
|
import os.path
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
import fileinput
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
build = get_build()
|
build = get_build()
|
||||||
with open(os.path.join('lbry', 'lbrynet', 'build_type.py'), 'w') as f:
|
with open(os.path.join('lbry', 'lbrynet', 'build_type.py'), 'w') as f:
|
||||||
f.write('BUILD = "{}"'.format(build))
|
f.write('BUILD = "{}"'.format(build))
|
||||||
|
set_early_access()
|
||||||
|
|
||||||
|
|
||||||
|
def set_early_access():
|
||||||
|
filename = os.path.abspath(os.path.join(os.path.abspath(__file__), '..', '..', 'ui', 'js', 'lbryio.js'))
|
||||||
|
for line in fileinput.input(filename, inplace=True):
|
||||||
|
if line.startswith(' enabled: false'):
|
||||||
|
print(' enabled: true')
|
||||||
|
else:
|
||||||
|
print(line, end='')
|
||||||
|
|
||||||
|
|
||||||
def get_build():
|
def get_build():
|
||||||
|
|
Loading…
Reference in a new issue