Compare commits

..

2 Commits

Author SHA1 Message Date
dbe84b86ec Use build script 2023-05-08 11:03:50 -07:00
05e42478b4 Try poetry directive 2023-05-08 10:38:19 -07:00
4 changed files with 28 additions and 3 deletions

View File

@ -1 +0,0 @@
include debian/

10
build.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
rm -rf dist/*
python3 -m build
cd dist/
tar zxf *.tar.gz
directory=$(ls | grep -v .tar.gz | grep -v whl)
rm $directory.tar.gz
cp --recursive ../debian/ $directory
tar czf $directory.tar.gz $directory
rm -r $directory

View File

@ -1 +0,0 @@
adsms.service

17
debian/adsms.service vendored Normal file
View File

@ -0,0 +1,17 @@
# Systemd unit file for the adsms service
# Generated by ChatGPT
[Unit]
Description=Send SMS notifications based on ADS-B data
After=network.target
Requires=tar1090.service
After=tar1090.service
[Service]
User=adsms
Group=adsms
ExecStart=/usr/local/bin/adsms /etc/adsms.json
Restart=always
[Install]
WantedBy=multi-user.target

View File

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "adsms"
version = "0.3"
version = "0.5"
description = "Send SMS aircraft alerts based on ADS-B data"
readme = "README.md"
authors = [{ name = "Samuel Sloniker", email = "sam@kj7rrv.com"}]