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.
input-remapper/scripts/build.sh

27 lines
556 B
Bash

#!/usr/bin/env bash
# builds .deb and .appimage files in order to distribute them
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_appimage() {
echo "created $dist/$name.appimage"
}
build_deb &
build_appimage &
wait