debian package
parent
9afc70ed6f
commit
c2cc5c97ea
@ -1,13 +1,26 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# build the .deb and .appimage files
|
build_deb() {
|
||||||
# https://ubuntuforums.org/showthread.php?t=1002909
|
# https://github.com/phusion/debian-packaging-for-the-modern-developer/tree/master/tutorial-1
|
||||||
dist=dist
|
dist=dist
|
||||||
name=key-mapper-0.1.0
|
name=key-mapper-0.1.0
|
||||||
|
|
||||||
python3 setup.py sdist --dist-dir $dist
|
python3 setup.py sdist --dist-dir $dist
|
||||||
tar -C deb -xzf $dist/$name.tar.gz
|
tar -C $dist -xzf $dist/$name.tar.gz
|
||||||
cp $dist/DEBIAN $dist/$name -r
|
rm $dist/$name.tar.gz
|
||||||
dpkg-deb -b $dist/$name $name.deb
|
cp deb/DEBIAN $dist/$name -r
|
||||||
|
dpkg-deb -b $dist/$name $dist/$name.deb
|
||||||
rm $dist/$name -r
|
rm $dist/$name -r
|
||||||
|
cp $dist/$name.deb deb
|
||||||
|
echo ".deb package created"
|
||||||
|
}
|
||||||
|
|
||||||
|
build_appimage() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
build_deb &
|
||||||
|
build_appimage &
|
||||||
|
|
||||||
|
wait
|
||||||
|
Loading…
Reference in New Issue