From c2cc5c97eaf8c0768ee078c8551f0946b2d5db3a Mon Sep 17 00:00:00 2001 From: sezanzeb Date: Sun, 29 Nov 2020 12:23:07 +0100 Subject: [PATCH] debian package --- badges.sh | 0 build.sh | 31 ++++++++++++++++++++++--------- 2 files changed, 22 insertions(+), 9 deletions(-) mode change 100755 => 100644 badges.sh diff --git a/badges.sh b/badges.sh old mode 100755 new mode 100644 diff --git a/build.sh b/build.sh index c0be4c7d..4c97fdfd 100755 --- a/build.sh +++ b/build.sh @@ -1,13 +1,26 @@ #!/usr/bin/env bash -# build the .deb and .appimage files -# https://ubuntuforums.org/showthread.php?t=1002909 -dist=dist -name=key-mapper-0.1.0 +build_deb() { + # https://github.com/phusion/debian-packaging-for-the-modern-developer/tree/master/tutorial-1 + dist=dist + name=key-mapper-0.1.0 -python3 setup.py sdist --dist-dir $dist -tar -C deb -xzf $dist/$name.tar.gz -cp $dist/DEBIAN $dist/$name -r -dpkg-deb -b $dist/$name $name.deb -rm $dist/$name -r + python3 setup.py sdist --dist-dir $dist + tar -C $dist -xzf $dist/$name.tar.gz + rm $dist/$name.tar.gz + cp deb/DEBIAN $dist/$name -r + dpkg-deb -b $dist/$name $dist/$name.deb + rm $dist/$name -r + cp $dist/$name.deb deb + echo ".deb package created" +} +build_appimage() { + +} + + +build_deb & +build_appimage & + +wait