-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcreate_exe.py
More file actions
36 lines (29 loc) · 1.22 KB
/
create_exe.py
File metadata and controls
36 lines (29 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import os
import shutil
from cx_Freeze import setup, Executable
setup(
name='YtMusic-Lib-Tracker',
url='https://github.com/czifumasa/ytmusic-lib-tracker',
author='Łukasz Lenart',
author_email='lukasz.lenart912@gmail.com',
version='0.1',
license='MIT',
description='Useful tools for youtube music. Exporting library to csv or json, tracking changes in library, summary of transfer from GPM',
long_description=open('README.md').read(),
options={"build_exe": {
"build_exe": os.path.join('build', 'target', 'YTMusicLibTracker'),
'packages': ['ytmusicapi', 'unidecode', 'multiprocessing'],
'excludes': ['tkinter', 'test', 'unittest', 'pydoc_data'],
'include_files': ['config.ini'],
'optimize': 2,
}},
executables=[
Executable('ytmusiclibtracker.py', base='console', icon='ytmlt.ico', target_name='YTMusicLibTracker')]
)
def zip_output():
zip_path = os.path.join('build', 'zip', 'YTMusicLibTracker')
shutil.make_archive(zip_path.replace(".zip", ""), 'zip', os.path.join('build', 'target'))
print(f"Created ZIP archive: {zip_path}")
# If this script is run directly, execute the build + zip process
if __name__ == "__main__":
zip_output()