mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-26 22:40:25 +00:00
scripts: limiting max OTA package dir name length to 80
This commit is contained in:
parent
9941df48bb
commit
7b16de2d6f
1 changed files with 4 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue