Build and package

This commit is contained in:
Tyler
2017-12-03 20:57:24 -05:00
parent 183542178b
commit e81b1758ac
5 changed files with 47 additions and 0 deletions

7
packaging/arm.conf Normal file
View File

@ -0,0 +1,7 @@
server {
root /var/www/arm-web;
location / {
try_files $uri $uri/ =404;
}
}

View File

@ -0,0 +1,10 @@
fpm -s dir -t deb -p build/arm-web_$VERSION.deb \
-n arm-web -v $VERSION \
--deb-priority optional --force \
--deb-compression bzip2 \
--description "Automatic Ripping Machine Web Interface" \
-m "cats <admin@meow.tf>" --vendor "Meow.tf" \
--depends nginx \
--url "https://meow.tf" \
packaging/arm.conf=/etc/nginx/conf.d/arm.conf \
dist/=/var/www/arm-web

View File

@ -0,0 +1 @@
curl -X POST "$UPLOAD_URL" -F "file=@build/arm-web_$VERSION.deb"