scripts: limiting max OTA package dir name length to 80

This commit is contained in:
hedger 2022-10-13 18:01:49 +04:00 committed by MX
parent 9941df48bb
commit 7b16de2d6f
No known key found for this signature in database
GPG key ID: 6C4C311DFD4B4AB5

View file

@ -20,6 +20,7 @@ class ProjectDir:
class Main(App):
DIST_FILE_PREFIX = "flipper-z-"
DIST_FOLDER_MAX_NAME_LENGTH = 80
def init(self):
self.subparsers = self.parser.add_subparsers(help="sub-command help")
@ -129,7 +130,9 @@ class Main(App):
)
if self.args.version:
bundle_dir_name = f"{self.target}-update-{self.args.suffix}"
bundle_dir_name = f"{self.target}-update-{self.args.suffix}"[
: self.DIST_FOLDER_MAX_NAME_LENGTH
]
bundle_dir = join(self.output_dir_path, bundle_dir_name)
bundle_args = [
"generate",