autoupdate
This commit is contained in:
4
build.py
4
build.py
@@ -69,10 +69,11 @@ def update_version_in_expo(version: str):
|
||||
data['expo']['version'] = version
|
||||
config_file.seek(0)
|
||||
config_file.write(json.dumps(data, indent=2, ensure_ascii=False))
|
||||
config_file.close()
|
||||
|
||||
|
||||
def main():
|
||||
#API_URL = 'http://192.168.1.101:5000/application'
|
||||
# API_URL = 'http://192.168.1.101:5000/application'
|
||||
API_URL = 'https://assemblr.denco.store/application'
|
||||
API_KEY = 'AF9A20DD9264C134CDA0ADACED834368'
|
||||
APPLICATION_NAME = 'assemblr'
|
||||
@@ -82,6 +83,7 @@ def main():
|
||||
current_version = application_api.get_current_version()
|
||||
new_version = prompt_new_version(current_version, APPLICATION_NAME)
|
||||
update_version_in_expo(new_version)
|
||||
|
||||
print('Starting building...')
|
||||
subprocess.run(BUILD_COMMAND, shell=True, text=True, capture_output=False)
|
||||
print('Build ended successfully.')
|
||||
|
||||
Reference in New Issue
Block a user