mirror of
https://github.com/sezanzeb/input-remapper
synced 2024-11-08 07:10:36 +00:00
21 lines
446 B
Bash
Executable File
21 lines
446 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
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 $dist -xzf $dist/$name.tar.gz
|
|
rm $dist/$name.tar.gz
|
|
cp DEBIAN $dist/$name -r
|
|
dpkg-deb -b $dist/$name $dist/$name.deb
|
|
rm $dist/$name -r
|
|
echo "created $dist/$name.deb"
|
|
}
|
|
|
|
build_deb &
|
|
# add more build targets here
|
|
|
|
wait
|