1
0
Fork 0
mirror of https://github.com/kbumsik/VirtScreen.git synced 2025-02-12 19:31:50 +00:00
VirtScreen/Makefile

74 lines
1.7 KiB
Makefile
Raw Normal View History

# See https://packaging.python.org/tutorials/distributing-packages/#packaging-your-project
# for python packaging reference.
.PHONY:
python-wheel:
/usr/bin/python3 setup.py bdist_wheel --universal
python-install:
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
2018-05-23 23:40:15 +00:00
python-clean:
sudo rm -rf build dist virtscreen.egg-info virtscreen/qml/*.qmlc
2018-05-21 19:09:42 +00:00
pip-upload: python-wheel
twine upload dist/*
.ONESHELL:
2018-05-23 01:26:17 +00:00
# For Debian packaging, https://www.debian.org/doc/manuals/debmake-doc/ch08.en.html#setup-py
deb-docker-build:
docker build -f package/debian/Dockerfile -t debmake .
deb-docker:
docker run --privileged --interactive --tty -v $(shell pwd)/package/debian:/app debmake /bin/bash
deb-docker-rm:
docker image rm -f debmake
deb-make:
docker run --privileged --interactive --tty --rm -v $(shell pwd)/package/debian:/app debmake /app/debmake.sh
deb-build:
docker run --privileged --interactive --tty --rm -v $(shell pwd)/package/debian:/app debmake /app/debuild.sh
deb-clean:
rm -rf package/debian/build
2018-05-21 19:09:42 +00:00
# For AUR: https://wiki.archlinux.org/index.php/Python_package_guidelines
# and: https://wiki.archlinux.org/index.php/Creating_packages
arch-update:
cd package/archlinux
makepkg --printsrcinfo > .SRCINFO
arch-install: arch-update
cd package/archlinux
makepkg -si
2018-05-21 19:09:42 +00:00
arch-upload: arch-update
cd package/archlinux
git clone ssh://aur@aur.archlinux.org/virtscreen.git
cp PKGBUILD virtscreen
cp .SRCINFO virtscreen
cd virtscreen
git add --all
git commit
git push
cd ..
rm -rf virtscreen
arch-clean:
cd package/archlinux
rm -rf pkg src *.tar*
launch:
./launch.sh
2018-05-23 23:40:15 +00:00
clean: arch-clean deb-clean python-clean