2020-11-29 09:42:20 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-11-29 11:23:07 +00:00
|
|
|
build_deb() {
|
|
|
|
# https://github.com/phusion/debian-packaging-for-the-modern-developer/tree/master/tutorial-1
|
|
|
|
dist=dist
|
|
|
|
name=key-mapper-0.1.0
|
2020-11-29 09:42:20 +00:00
|
|
|
|
2020-11-29 11:23:07 +00:00
|
|
|
python3 setup.py sdist --dist-dir $dist
|
|
|
|
tar -C $dist -xzf $dist/$name.tar.gz
|
|
|
|
rm $dist/$name.tar.gz
|
2020-11-29 12:30:16 +00:00
|
|
|
cp DEBIAN $dist/$name -r
|
2020-11-29 11:23:07 +00:00
|
|
|
dpkg-deb -b $dist/$name $dist/$name.deb
|
|
|
|
rm $dist/$name -r
|
2020-11-29 12:30:16 +00:00
|
|
|
echo "created $dist/$name.deb"
|
2020-11-29 11:23:07 +00:00
|
|
|
}
|
2020-11-29 11:05:54 +00:00
|
|
|
|
2020-11-29 11:23:07 +00:00
|
|
|
build_deb &
|
2020-11-29 12:55:37 +00:00
|
|
|
# add more build targets here
|
2020-11-29 11:23:07 +00:00
|
|
|
|
|
|
|
wait
|