2020-11-29 09:42:20 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-11-29 11:23:07 +00:00
|
|
|
build_deb() {
|
2020-12-24 00:26:34 +00:00
|
|
|
# https://www.devdungeon.com/content/debian-package-tutorial-dpkgdeb
|
|
|
|
# that was really easy actually
|
2021-02-06 23:07:08 +00:00
|
|
|
rm build -r
|
2020-12-24 00:26:34 +00:00
|
|
|
mkdir build/deb -p
|
|
|
|
python3 setup.py install --root=build/deb
|
2021-01-16 23:48:37 +00:00
|
|
|
mv build/deb/usr/local/lib/python3.*/ build/deb/usr/lib/python3/
|
2020-12-24 00:26:34 +00:00
|
|
|
cp ./DEBIAN build/deb/ -r
|
|
|
|
mkdir dist -p
|
2021-02-06 23:07:08 +00:00
|
|
|
rm dist/key-mapper-0.6.1.deb || true
|
2021-02-06 23:03:26 +00:00
|
|
|
dpkg -b build/deb dist/key-mapper-0.6.1.deb
|
2020-11-29 11:23:07 +00:00
|
|
|
}
|
2020-11-29 09:42:20 +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
|
|
|
|
2021-02-06 23:07:08 +00:00
|
|
|
wait
|