mirror of
				https://github.com/kbumsik/VirtScreen.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	setup.py: install .desktop files, re-organized doc files to data
This commit is contained in:
		
							parent
							
								
									be02f3dd4a
								
							
						
					
					
						commit
						b8caf68ea8
					
				
					 10 changed files with 23 additions and 8 deletions
				
			
		| 
						 | 
					@ -3,3 +3,7 @@ include *.md
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Include the license file
 | 
					# Include the license file
 | 
				
			||||||
include LICENSE.txt
 | 
					include LICENSE.txt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Include data directories
 | 
				
			||||||
 | 
					include data/virtscreen.png
 | 
				
			||||||
 | 
					include data/virtscreen.desktop
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										9
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										9
									
								
								Makefile
									
										
									
									
									
								
							| 
						 | 
					@ -4,10 +4,15 @@
 | 
				
			||||||
.PHONY:
 | 
					.PHONY:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
python-wheel:
 | 
					python-wheel:
 | 
				
			||||||
	python setup.py bdist_wheel --universal
 | 
						/usr/bin/python3 setup.py bdist_wheel --universal
 | 
				
			||||||
 | 
					
 | 
				
			||||||
python-install:
 | 
					python-install:
 | 
				
			||||||
	python setup.py install --user
 | 
						sudo /usr/bin/python3 setup.py install
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					python-uninstall:
 | 
				
			||||||
 | 
						sudo /usr/bin/pip3 uninstall virtscreen
 | 
				
			||||||
 | 
						sudo rm /usr/share/applications/virtscreen.desktop
 | 
				
			||||||
 | 
						sudo rm /usr/share/pixmaps/virtscreen.png
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pip-upload: python-wheel
 | 
					pip-upload: python-wheel
 | 
				
			||||||
	twine upload dist/*
 | 
						twine upload dist/*
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,7 +2,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
> Make your iPad/tablet/computer as a secondary monitor on Linux.
 | 
					> Make your iPad/tablet/computer as a secondary monitor on Linux.
 | 
				
			||||||
 | 
					
 | 
				
			||||||

 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
VirtScreen is an easy-to-use Linux GUI app that creates a virtual secondary screen and shares it through VNC.
 | 
					VirtScreen is an easy-to-use Linux GUI app that creates a virtual secondary screen and shares it through VNC.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,7 +12,7 @@ VirtScreen is based on [PyQt5](https://www.riverbankcomputing.com/software/pyqt/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Upon installation (see Installing section to install), there will be a desktop entry called `virtscreen`
 | 
					Upon installation (see Installing section to install), there will be a desktop entry called `virtscreen`
 | 
				
			||||||
 | 
					
 | 
				
			||||||

 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Or you can run it using a command line:
 | 
					Or you can run it using a command line:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
		 Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 61 KiB  | 
| 
		 Before Width: | Height: | Size: 7.8 MiB After Width: | Height: | Size: 7.8 MiB  | 
							
								
								
									
										
											BIN
										
									
								
								data/virtscreen.png
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								data/virtscreen.png
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 28 KiB  | 
| 
						 | 
					@ -33,6 +33,7 @@ build() {
 | 
				
			||||||
package() {
 | 
					package() {
 | 
				
			||||||
  cd $_pkgname_camelcase-$pkgver
 | 
					  cd $_pkgname_camelcase-$pkgver
 | 
				
			||||||
  /usr/bin/python3 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
 | 
					  /usr/bin/python3 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
 | 
				
			||||||
  install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
 | 
					  # These are already installed by setup.py
 | 
				
			||||||
  install -Dm644 "$pkgname/icon/icon.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
 | 
					  # install -Dm644 "data/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
 | 
				
			||||||
 | 
					  # install -Dm644 "data/icon.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
							
								
								
									
										9
									
								
								setup.py
									
										
									
									
									
								
							
							
						
						
									
										9
									
								
								setup.py
									
										
									
									
									
								
							| 
						 | 
					@ -177,8 +177,13 @@ setup(
 | 
				
			||||||
    # http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files
 | 
					    # http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files
 | 
				
			||||||
    #
 | 
					    #
 | 
				
			||||||
    # In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
 | 
					    # In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
 | 
				
			||||||
 | 
					    data_files=[
 | 
				
			||||||
    # data_files=[('my_data', ['data/data_file'])],  # Optional
 | 
					        # Desktop entries spec:
 | 
				
			||||||
 | 
					        # https://www.freedesktop.org/wiki/Specifications/desktop-entry-spec/
 | 
				
			||||||
 | 
					        ('/usr/share/applications', ['data/virtscreen.desktop']),
 | 
				
			||||||
 | 
					        ('/usr/share/pixmaps', ['data/virtscreen.png']),
 | 
				
			||||||
 | 
					        # ('share/man/man1', ['man/virtscreen.1'])
 | 
				
			||||||
 | 
					    ],  # Optional
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # To provide executable scripts, use entry points in preference to the
 | 
					    # To provide executable scripts, use entry points in preference to the
 | 
				
			||||||
    # "scripts" keyword. Entry points provide cross-platform support and allow
 | 
					    # "scripts" keyword. Entry points provide cross-platform support and allow
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue