Fix deb building sort of

This commit is contained in:
jude 2024-04-16 20:54:15 +01:00
parent 06ccea56d1
commit ace0f4927a
4 changed files with 32 additions and 23 deletions

View File

@ -13,14 +13,9 @@
</component>
<component name="ChangeListManager">
<list default="true" id="52900e09-9584-4b6c-95ff-fbd4ed5d8b2c" name="Changes" comment="Add interface package. Start adding auth stuff for refreshing tokens.">
<change afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
<change afterPath="$PROJECT_DIR$/etc/playlistd.toml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Cargo.lock" beforeDir="false" afterPath="$PROJECT_DIR$/Cargo.lock" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Cargo.toml" beforeDir="false" afterPath="$PROJECT_DIR$/Cargo.toml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Containerfile" beforeDir="false" afterPath="$PROJECT_DIR$/Containerfile" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/daemon/update_playlists.rs" beforeDir="false" afterPath="$PROJECT_DIR$/src/daemon/update_playlists.rs" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main.rs" beforeDir="false" afterPath="$PROJECT_DIR$/src/main.rs" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -159,7 +154,7 @@
<workItem from="1710677603495" duration="13803000" />
<workItem from="1710872266453" duration="225000" />
<workItem from="1713283733149" duration="180000" />
<workItem from="1713283935337" duration="11994000" />
<workItem from="1713283935337" duration="12890000" />
</task>
<task id="LOCAL-00001" summary="Structure">
<created>1692008860369</created>

32
Cargo.lock generated
View File

@ -1026,22 +1026,6 @@ dependencies = [
"tempfile",
]
[[package]]
name = "navidrome-playlists"
version = "0.1.0"
dependencies = [
"axum",
"config",
"getrandom",
"md5",
"reqwest",
"serde",
"sqlx",
"thiserror",
"tokio",
"uuid",
]
[[package]]
name = "nix"
version = "0.27.1"
@ -1343,6 +1327,22 @@ version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec"
[[package]]
name = "playlistd"
version = "0.1.0"
dependencies = [
"axum",
"config",
"getrandom",
"md5",
"reqwest",
"serde",
"sqlx",
"thiserror",
"tokio",
"uuid",
]
[[package]]
name = "ppv-lite86"
version = "0.2.17"

View File

@ -1,9 +1,10 @@
[package]
name = "navidrome-playlists"
name = "playlistd"
version = "0.1.0"
edition = "2021"
authors = ["Jude Southworth (judesouthworth@pm.me)"]
license = "AGPL-3.0 only"
description = "Subsonic playlist daemon"
[dependencies]
axum = { version = "0.7", features = ["json"] }
@ -20,6 +21,7 @@ config = "0.14.0"
[package.metadata.deb]
depends = "$auto"
assets = [
["target/release/playlistd", "usr/bin/playlistd", "755"],
["etc/playlistd.toml", "etc/playlistd.toml", "600"],
]
conf-files = [

12
systemd/playlistd.service Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=Playlistd
[Service]
Type=simple
ExecStart=/usr/bin/playlistd
WorkingDirectory=/etc/
Restart=always
RestartSec=20
[Install]
WantedBy=multi-user.target