Add icon to built exe, default run as admin with manifest, add bash runner script
This commit is contained in:
		
							
								
								
									
										2
									
								
								run.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								run.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
"C:/Program Files/Python310/python.exe" setup.py build
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										4
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								setup.py
									
									
									
									
									
								
							@@ -5,7 +5,7 @@ debug = True
 | 
			
		||||
#debug = not debug
 | 
			
		||||
# Dependencies are automatically detected, but it might need fine tuning.
 | 
			
		||||
# "packages": ["os"] is used as example only
 | 
			
		||||
build_exe_options = {"packages": ["os"], "excludes": ["tkinter"], "include_msvcr": True, "include_files": ["icon.png", "IPPigeon.lnk", "config.yml", "keyfile-admin.pem"], "optimize": 2}
 | 
			
		||||
build_exe_options = {"packages": ["os"], "excludes": ["tkinter"], "include_msvcr": True, "include_files": ["icon.png", "config.yml", "keyfile-admin.pem"], "optimize": 2}
 | 
			
		||||
 | 
			
		||||
# base="Win32GUI" should be used only for Windows GUI app
 | 
			
		||||
base = None
 | 
			
		||||
@@ -17,5 +17,5 @@ setup(
 | 
			
		||||
    version="0.2.4",
 | 
			
		||||
    description="IP Pigeon client application",
 | 
			
		||||
    options={"build_exe": build_exe_options},
 | 
			
		||||
    executables=[Executable("ippigeon.py", base=base)],
 | 
			
		||||
    executables=[Executable("ippigeon.py", base=base, icon="icon.ico", uac_admin=True, target_name="IPPigeon.exe")],
 | 
			
		||||
)
 | 
			
		||||
		Reference in New Issue
	
	Block a user