Eliminado el soporte de discord.
Corrección de nombres y typos. Eliminación de código innecesario. Depuración archivos de idiomas.
This commit is contained in:
@@ -10,7 +10,7 @@ class BuildConfig:
|
||||
self.supported_os_dirs = config_data.get('os_download_dirs', [])
|
||||
# channel_to_build_type is a map from Beta, Release and Nightly to folder names preview release and nightly
|
||||
self.build_type_hosted_folder = config_data.get('build_type_hosted_folder', {})
|
||||
self.fs_version_mgr_platform = config_data.get('fs_version_mgr_platform', {})
|
||||
self.pm_version_mgr_platform = config_data.get('pm_version_mgr_platform', {})
|
||||
self.os_hosted_folder = config_data.get('os_hosted_folder', {})
|
||||
self.platforms_printable = config_data.get('platforms_printable', {})
|
||||
self.grids_printable = config_data.get('grids_printable', {})
|
||||
|
||||
@@ -10,7 +10,6 @@ import hashlib
|
||||
import pytz
|
||||
from datetime import datetime
|
||||
import requests
|
||||
from discord_webhook import DiscordWebhook
|
||||
from pathlib import Path
|
||||
from typing import Tuple
|
||||
|
||||
@@ -397,17 +396,17 @@ DOWNLOADS - {build_info["build_type"]}
|
||||
return text_summary
|
||||
|
||||
def update_fs_version_mgr(build_info, config):
|
||||
print(f"Updating Firestorm Version Manager for build_type {build_info['build_type']}")
|
||||
print(f"Updating Puma Version Manager for build_type {build_info['build_type']}")
|
||||
# Read the secret key from environment variables
|
||||
secret_key = os.environ.get('FS_VERSION_MGR_KEY')
|
||||
secret_key = os.environ.get('PM_VERSION_MGR_KEY')
|
||||
if not secret_key:
|
||||
print("Error: FS_VERSION_MGR_KEY not set")
|
||||
print("Error: PM_VERSION_MGR_KEY not set")
|
||||
sys.exit(1)
|
||||
|
||||
secret_for_api = generate_secret(secret_key)
|
||||
build_type = build_info["build_type"].lower()
|
||||
version = os.environ.get('FS_VIEWER_VERSION')
|
||||
build_number = os.environ.get('FS_VIEWER_BUILD')
|
||||
version = os.environ.get('PM_VIEWER_VERSION')
|
||||
build_number = os.environ.get('PM_VIEWER_BUILD')
|
||||
|
||||
for file_key in build_info["downloadable_artifacts"]:
|
||||
try:
|
||||
@@ -549,4 +548,4 @@ def main():
|
||||
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
main()
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user