mirror of
https://github.com/kbumsik/VirtScreen.git
synced 2025-03-09 15:40:18 +00:00
\#11: Initial AppImage packaging system
This commit is contained in:
parent
aba7c949b5
commit
a40ea8ec29
6 changed files with 90 additions and 19 deletions
33
Makefile
33
Makefile
|
|
@ -2,8 +2,9 @@
|
|||
# for python packaging reference.
|
||||
|
||||
DOCKER_NAME=kbumsik/virtscreen
|
||||
DOCKER_RUN=docker run -v $(shell pwd)/package/debian:/app $(DOCKER_NAME)
|
||||
DOCKER_RUN_TTY=docker run --interactive --tty -v $(shell pwd)/package/debian:/app $(DOCKER_NAME)
|
||||
DOCKER_RUN=docker run --interactive --tty -v $(shell pwd):/app $(DOCKER_NAME)
|
||||
DOCKER_RUN_TTY=docker run --interactive --tty -v $(shell pwd):/app $(DOCKER_NAME)
|
||||
DOCKER_RUN_DEB=docker run -v $(shell pwd)/package/debian:/app $(DOCKER_NAME)
|
||||
|
||||
.PHONY:
|
||||
|
||||
|
|
@ -41,29 +42,37 @@ docker-push:
|
|||
docker login
|
||||
docker push $(DOCKER_NAME)
|
||||
|
||||
# For AppImage packaging, https://github.com/AppImage/AppImageKit/wiki/Creating-AppImages
|
||||
appimage-build:
|
||||
$(DOCKER_RUN) package/appimage/build.sh
|
||||
$(DOCKER_RUN) chown -R $(shell id -u):$(shell id -u) package/appimage
|
||||
|
||||
appimage-clean:
|
||||
$(DOCKER_RUN) rm -rf package/appimage/virtscreen.AppDir package/appimage/VirtScreen-x86_64.AppImage
|
||||
|
||||
# For Debian packaging, https://www.debian.org/doc/manuals/debmake-doc/ch08.en.html#setup-py
|
||||
deb-make:
|
||||
$(DOCKER_RUN) /app/debmake.sh
|
||||
$(DOCKER_RUN_DEB) /app/debmake.sh
|
||||
|
||||
deb-build: deb-make
|
||||
$(DOCKER_RUN) /app/copy_debian.sh
|
||||
$(DOCKER_RUN) /app/debuild.sh
|
||||
$(DOCKER_RUN_DEB) /app/copy_debian.sh
|
||||
$(DOCKER_RUN_DEB) /app/debuild.sh
|
||||
|
||||
deb-contents:
|
||||
$(DOCKER_RUN) /app/contents.sh
|
||||
$(DOCKER_RUN_DEB) /app/contents.sh
|
||||
|
||||
deb-env-make:
|
||||
$(DOCKER_RUN) /app/debmake.sh virtualenv
|
||||
$(DOCKER_RUN_DEB) /app/debmake.sh virtualenv
|
||||
|
||||
deb-env-build: deb-env-make
|
||||
$(DOCKER_RUN) /app/copy_debian.sh virtualenv
|
||||
$(DOCKER_RUN) /app/debuild.sh virtualenv
|
||||
$(DOCKER_RUN_DEB) /app/copy_debian.sh virtualenv
|
||||
$(DOCKER_RUN_DEB) /app/debuild.sh virtualenv
|
||||
|
||||
deb-chown:
|
||||
$(DOCKER_RUN) chown -R $(shell id -u):$(shell id -u) /app/build
|
||||
$(DOCKER_RUN_DEB) chown -R $(shell id -u):$(shell id -u) /app/build
|
||||
|
||||
deb-clean:
|
||||
$(DOCKER_RUN) rm -rf /app/build
|
||||
$(DOCKER_RUN_DEB) rm -rf /app/build
|
||||
|
||||
# For AUR: https://wiki.archlinux.org/index.php/Python_package_guidelines
|
||||
# and: https://wiki.archlinux.org/index.php/Creating_packages
|
||||
|
|
@ -95,4 +104,4 @@ arch-clean:
|
|||
cd package/archlinux
|
||||
rm -rf pkg src *.tar*
|
||||
|
||||
clean: arch-clean deb-clean python-clean
|
||||
clean: appimage-clean arch-clean deb-clean python-clean
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue