mirror of
				https://github.com/KevinMidboe/bulk-downloader-for-reddit.git
				synced 2025-10-29 17:40:15 +00:00 
			
		
		
		
	Added .exe to executable's extension
This commit is contained in:
		
							
								
								
									
										41
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										41
									
								
								setup.py
									
									
									
									
									
								
							| @@ -3,13 +3,48 @@ | |||||||
| ## python setup.py build | ## python setup.py build | ||||||
| import sys | import sys | ||||||
| from cx_Freeze import setup, Executable | from cx_Freeze import setup, Executable | ||||||
|  | from script import __version__ | ||||||
|  |  | ||||||
|  | options = { | ||||||
|  |     "build_exe": { | ||||||
|  |         "packages":[ | ||||||
|  |             "idna","imgurpython", "praw", "requests" | ||||||
|  |         ] | ||||||
|  |     } | ||||||
|  | } | ||||||
|  |  | ||||||
|  | if sys.platform == "win32": | ||||||
|  |     executables = [Executable( | ||||||
|  |         "script.py",  | ||||||
|  |         targetName="bulk-downloader-for-reddit.exe", | ||||||
|  |         shortcutName="Bulk Downloader for Reddit", | ||||||
|  |         shortcutDir="DesktopFolder" | ||||||
|  |     )] | ||||||
|  |  | ||||||
|  | elif sys.platform == "linux": | ||||||
|  |     executables = [Executable( | ||||||
|  |         "script.py",  | ||||||
|  |         targetName="bulk-downloader-for-reddit", | ||||||
|  |         shortcutName="Bulk Downloader for Reddit", | ||||||
|  |         shortcutDir="DesktopFolder" | ||||||
|  |     )] | ||||||
|  |  | ||||||
| setup( | setup( | ||||||
|     name = "Bulk Downloader for Reddit", |     name = "Bulk Downloader for Reddit", | ||||||
|         version = "1.1.0", |     version = __version__, | ||||||
|     description = "Bulk Downloader for Reddit", |     description = "Bulk Downloader for Reddit", | ||||||
|     author = "Ali Parlakci", |     author = "Ali Parlakci", | ||||||
|         executables = [Executable("script.py")], |     author_email="parlakciali@gmail.com", | ||||||
|         options = {"build_exe": {"packages":["idna","imgurpython", "praw", "requests"]}}) |     url="https://github.com/aliparlakci/bulk-downloader-for-reddit", | ||||||
|  |     classifiers=( | ||||||
|  |             "Programming Language :: Python :: 3", | ||||||
|  |             "License :: OSI Approved :: GNU General Public License v3 (GPLv3)" | ||||||
|  |             "Natural Language :: English", | ||||||
|  |             "Environment :: Console", | ||||||
|  |             "Operating System :: OS Independent", | ||||||
|  |     ), | ||||||
|  |     executables = executables, | ||||||
|  |     options = options | ||||||
|  | ) | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user