aboutsummaryrefslogtreecommitdiff
path: root/bundle/pyinstaller.py
diff options
context:
space:
mode:
authorsepro <4618135+seproDev@users.noreply.github.com>2024-06-12 01:09:58 +0200
committerGitHub <noreply@github.com>2024-06-12 01:09:58 +0200
commitadd96eb9f84cfffe85682bf2fb85135746994ee8 (patch)
tree583f209506aa01b2afa3933e504426de575fc43c /bundle/pyinstaller.py
parentdb50f19d76c6870a5a13d0cab9287d684fd7449a (diff)
[cleanup] Add more ruff rules (#10149)
Authored by: seproDev Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com> Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
Diffstat (limited to 'bundle/pyinstaller.py')
-rwxr-xr-xbundle/pyinstaller.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bundle/pyinstaller.py b/bundle/pyinstaller.py
index db9dbfde5..4184c4bc9 100755
--- a/bundle/pyinstaller.py
+++ b/bundle/pyinstaller.py
@@ -68,7 +68,7 @@ def exe(onedir):
'dist/',
onedir and f'{name}/',
name,
- OS_NAME == 'win32' and '.exe'
+ OS_NAME == 'win32' and '.exe',
)))
@@ -113,7 +113,7 @@ def windows_set_version(exe, version):
),
kids=[
StringFileInfo([StringTable('040904B0', [
- StringStruct('Comments', 'yt-dlp%s Command Line Interface' % suffix),
+ StringStruct('Comments', f'yt-dlp{suffix} Command Line Interface'),
StringStruct('CompanyName', 'https://github.com/yt-dlp'),
StringStruct('FileDescription', 'yt-dlp%s' % (MACHINE and f' ({MACHINE})')),
StringStruct('FileVersion', version),
@@ -123,8 +123,8 @@ def windows_set_version(exe, version):
StringStruct('ProductName', f'yt-dlp{suffix}'),
StringStruct(
'ProductVersion', f'{version}{suffix} on Python {platform.python_version()}'),
- ])]), VarFileInfo([VarStruct('Translation', [0, 1200])])
- ]
+ ])]), VarFileInfo([VarStruct('Translation', [0, 1200])]),
+ ],
))