Skip to content

Commit

Permalink
* Add --rotate option for screen rotation
Browse files Browse the repository at this point in the history
* Complete overhaul of the update notification

* Cleanup
  • Loading branch information
Caleb9 committed Feb 16, 2024
1 parent 6cfeb0d commit 5820afd
Show file tree
Hide file tree
Showing 21 changed files with 560 additions and 629 deletions.
75 changes: 62 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "syno-photo-frame"
version = "0.11.0"
version = "0.12.0"
edition = "2021"
description = "Full-screen slideshow for Synology Photos albums"
license = "GPL-3.0-or-later"
Expand Down Expand Up @@ -29,12 +29,12 @@ exclude = [
bytes = "1.*"
clap = { version = "4.*", features = ["derive", "wrap_help"] }
ctrlc = { version = "3.*", features = ["termination"] }
image = { version = "0.24.*", default-features = false, features = ["jpeg"] }
image = { version = "0.24.*", default-features = false, features = ["jpeg", "png"] }
log = "0.4.*"
rand = "0.8.*"
regex = "1.*"
reqwest = { version = "0.11.*", features = ["blocking", "cookies", "json"] }
sdl2 = { version = "0.*", features = ["ttf"] }
sdl2 = "0.36.*"
serde = { version = "1.*", features = ["derive"] }
serde_json = "1.*"
simple_logger = "4.*"
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
# docker build . --builder cross --platform linux/arm64 --target=dpkg --output type=local,dest=.
#
# Build just the binary (note that to execute it afterwards,
# libsdl2-2.0.0 and libsdl2-ttf-2.0.0 dependency packages need to be
# installed):
# libsdl2-2.0.0 dependency package need to be installed):
#
# docker build . --builder cross --platform linux/arm64 --target=bin --output type=local,dest=.
#
Expand All @@ -37,13 +36,14 @@
FROM rust:bookworm as build

RUN DEBIAN_FRONTEND=noninteractive apt update && \
apt install -y libsdl2-dev libsdl2-ttf-dev libssl-dev lintian && \
apt install -y libsdl2-dev libssl-dev lintian && \
rm -rf /var/lib/apt/lists/*

WORKDIR /workspace
# Cache dependencies build
RUN cargo init --name syno-photo-frame --vcs none .
COPY Cargo.toml Cargo.lock .
RUN cargo fetch
RUN cargo build --release
# Build the binary and Debian package
COPY . .
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ platform where Rust and [SDL](https://www.libsdl.org/) are available.
apt upgrade -y && \
apt install -y \
libsdl2-dev \
libsdl2-ttf-dev \
libssl-dev'
```

Expand Down
Binary file removed assets/DejaVuSans.ttf
Binary file not shown.
Loading

0 comments on commit 5820afd

Please sign in to comment.