Skip to content

Commit 5ce29c4

Browse files
committed
Final Push
1 parent e8a49d0 commit 5ce29c4

File tree

10 files changed

+13
-12
lines changed

10 files changed

+13
-12
lines changed

.devcontainer/Dockerfile

100644100755
File mode changed.

.devcontainer/devcontainer.json

100644100755
File mode changed.

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ohmyoled"
3-
version = "2.2.0"
3+
version = "2.2.1"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

container/devcontainer_build/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ARG NODE_VERSION="none"
77
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
88
RUN apt update && apt install fonts-noto-mono -y && apt install vim python3-dev -y
99

10-
ARG OHMYOLED_VERSION=2.2.0
10+
ARG OHMYOLED_VERSION=2.2.1
1111
ARG RBGMATRIX_GIT_URL=https://github.com/hzeller/rpi-rgb-led-matrix.git
1212
RUN /usr/local/bin/python3 -m pip install --upgrade pip
1313

@@ -23,8 +23,7 @@ RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
2323

2424
FROM RUST_LAYER
2525
RUN git clone https://github.com/TheFinalJoke/ohmyoled.git \
26-
&& mkdir -p /var/log/ohmyoled && mkdir -p /etc/ohmyoled \
27-
&& cp /ohmyoled/lib/config/ohmyoled.conf /etc/ohmyoled/ \
26+
&& mkdir -p /var/log/ohmyoled && mkdir -p /etc/ohmyoled \
2827
&& cp -Rv /ohmyoled/fonts/* /usr/share/fonts/
2928

3029
CMD [ "/bin/bash"]

container/prodcontainer_build/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ARG NODE_VERSION="none"
77
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
88
RUN apt update && apt install fonts-noto-mono -y && apt install vim python3-dev -y
99

10-
ARG OHMYOLED_VERSION=2.2.0
10+
ARG OHMYOLED_VERSION=2.2.1
1111
ARG RBGMATRIX_GIT_URL=https://github.com/hzeller/rpi-rgb-led-matrix.git
1212
RUN /usr/local/bin/python3 -m pip install --upgrade pip
1313

@@ -27,5 +27,7 @@ RUN git clone https://github.com/TheFinalJoke/ohmyoled.git \
2727
&& cp -Rv /ohmyoled/fonts/* /usr/share/fonts/
2828
WORKDIR /ohmyoled/
2929
RUN /root/.cargo/bin/cargo build --release
30-
31-
ENTRYPOINT ["target/release/ohmyoled"]
30+
ENV RUST_BACKTRACE=full
31+
#SCMD cat /etc/ohmyoled/ohmyoled.json
32+
#ENTRYPOINT ["target/release/ohmyoled"]
33+
CMD /bin/bash

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ fn init_logger() {
100100
async fn main() -> PyResult<()> {
101101
init_logger();
102102
let mut configuration = json::JsonValue::Null;
103-
let app = App::new("ohmyoled").version("2.2.0");
103+
let app = App::new("ohmyoled").version("2.2.1sssssssssssssssss");
104104
let args_vec = vec![
105105
Arg::new("create_json")
106106
.short('c')

src/python/ohmyoled/lib/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __init__(self, config):
5858
super().__init__()
5959
self.config = config
6060
self.runner_logger = logger
61-
if int(os.getenv("DEV")) != 1:
61+
if not os.getenv("DEV"):
6262
self.logger.setLevel(logging.INFO)
6363
else:
6464
self.logger.setLevel(logging.DEBUG)

src/python/ohmyoled/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def version(cls):
4545
def __init__(self, config) -> None:
4646
self.config = config
4747
self.logger = logger
48-
if int(os.getenv("DEV")) != 1:
48+
if not os.getenv("DEV"):
4949
self.logger.setLevel(logging.INFO)
5050
else:
5151
self.logger.setLevel(logging.DEBUG)

src/python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
ld = file.read()
55
setup(
66
name="ohmyoled",
7-
version="2.2.0",
7+
version="2.2.1",
88
python_requires='>=3.8.9',
99
py_modules=["ohmyoled"], # Tells the name
1010
packages=find_packages(),

0 commit comments

Comments
 (0)