You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
556 B
Bash
27 lines
556 B
Bash
4 years ago
|
#!/usr/bin/env bash
|
||
4 years ago
|
# builds .deb and .appimage files in order to distribute them
|
||
4 years ago
|
|
||
4 years ago
|
build_deb() {
|
||
|
# https://github.com/phusion/debian-packaging-for-the-modern-developer/tree/master/tutorial-1
|
||
|
dist=dist
|
||
|
name=key-mapper-0.1.0
|
||
4 years ago
|
|
||
4 years ago
|
python3 setup.py sdist --dist-dir $dist
|
||
|
tar -C $dist -xzf $dist/$name.tar.gz
|
||
|
rm $dist/$name.tar.gz
|
||
4 years ago
|
cp DEBIAN $dist/$name -r
|
||
4 years ago
|
dpkg-deb -b $dist/$name $dist/$name.deb
|
||
|
rm $dist/$name -r
|
||
4 years ago
|
echo "created $dist/$name.deb"
|
||
4 years ago
|
}
|
||
4 years ago
|
|
||
4 years ago
|
build_appimage() {
|
||
4 years ago
|
echo "created $dist/$name.appimage"
|
||
4 years ago
|
}
|
||
|
|
||
|
|
||
|
build_deb &
|
||
|
build_appimage &
|
||
|
|
||
|
wait
|