mirror of
https://github.com/kbumsik/VirtScreen.git
synced 2025-02-12 11:21:53 +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 LICENSE.txt
|
||||
|
||||
# Include data directories
|
||||
include data/virtscreen.png
|
||||
include data/virtscreen.desktop
|
||||
|
|
9
Makefile
9
Makefile
|
@ -4,10 +4,15 @@
|
|||
.PHONY:
|
||||
|
||||
python-wheel:
|
||||
python setup.py bdist_wheel --universal
|
||||
/usr/bin/python3 setup.py bdist_wheel --universal
|
||||
|
||||
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
|
||||
twine upload dist/*
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
> Make your iPad/tablet/computer as a secondary monitor on Linux.
|
||||
|
||||
![gif example](https://github.com/kbumsik/VirtScreen/blob/d2387d3321bd4d110d890ca87703196df203dc89/icon/gif_example.gif?raw=true)
|
||||
![gif example](https://raw.githubusercontent.com/kbumsik/VirtScreen/master/data/gif_example.gif)
|
||||
|
||||
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`
|
||||
|
||||
![desktop entry](doc/desktop_entry.png)
|
||||
![desktop entry](https://raw.githubusercontent.com/kbumsik/VirtScreen/master/data/desktop_entry.png)
|
||||
|
||||
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() {
|
||||
cd $_pkgname_camelcase-$pkgver
|
||||
/usr/bin/python3 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
|
||||
install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
|
||||
install -Dm644 "$pkgname/icon/icon.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
|
||||
# These are already installed by setup.py
|
||||
# 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
|
||||
#
|
||||
# In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
|
||||
|
||||
# data_files=[('my_data', ['data/data_file'])], # Optional
|
||||
data_files=[
|
||||
# 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
|
||||
# "scripts" keyword. Entry points provide cross-platform support and allow
|
||||
|
|
Loading…
Reference in a new issue