bump version, add notices, update build script

This commit is contained in:
Bryson Steck 2025-03-16 21:05:33 -06:00
parent 1d2e915cea
commit a077d70598
Signed by: bryson
SSH key fingerprint: SHA256:XpKABw/nP4z8UVaH+weLaBnEOD86+cVwif+QjuYLGT4
8 changed files with 47 additions and 6 deletions

2
Cargo.lock generated
View file

@ -574,7 +574,7 @@ dependencies = [
[[package]]
name = "refractr"
version = "0.4.0"
version = "0.5.0"
dependencies = [
"clap",
"colored",

View file

@ -1,7 +1,7 @@
[package]
name = "refractr"
license = "MPL-2.0"
version = "0.4.0"
version = "0.5.0"
edition = "2021"
[dependencies]

12
build
View file

@ -8,11 +8,15 @@ cargo update
cargo clean
# docker builds
docker build -t refractr:$version --build-arg UID=$uid --build-arg GID=$gid -f package.Dockerfile .
docker build -t refractr:$version --build-arg UID=$uid --build-arg GID=$gid --build-arg VERSION=$version -f package.Dockerfile .
docker tag refractr:$version refractr:latest
docker tag refractr:$version git.brysonsteck.xyz/brysonsteck/refractr:latest
docker tag refractr:$version git.brysonsteck.xyz/brysonsteck/refractr:$version
test "$1" = "push" && docker push -a git.brysonsteck.xyz/brysonsteck/refractr
if test "$1" = "push"; then
docker tag refractr:$version git.brysonsteck.xyz/brysonsteck/refractr:latest
docker tag refractr:$version git.brysonsteck.xyz/brysonsteck/refractr:$version
docker push -a git.brysonsteck.xyz/brysonsteck/refractr
docker image rm git.brysonsteck.xyz/brysonsteck/refractr:latest
docker image rm git.brysonsteck.xyz/brysonsteck/refractr:$version
fi
# rust build
cargo build

View file

@ -1,8 +1,13 @@
FROM rust:slim
ARG UID="1000"
ARG GID="1000"
ARG VERSION
ENV REFRACTR_DOCKER="true"
LABEL org.opencontainers.image.authors="me@brysonsteck.xyz"
LABEL version="${VERSION}"
LABEL license="MPL-2.0"
WORKDIR /usr/src/refractr
COPY . .

View file

@ -1,3 +1,11 @@
/*
* Copyright 2025 Bryson Steck <me@brysonsteck.xyz>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
use colored::Colorize;
pub enum ExitCode {

View file

@ -1,3 +1,11 @@
/*
* Copyright 2025 Bryson Steck <me@brysonsteck.xyz>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
use crate::common;
use crate::refractr::Refractr;

View file

@ -1,3 +1,11 @@
/*
* Copyright 2025 Bryson Steck <me@brysonsteck.xyz>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
mod common;
mod config;
mod refractr;

View file

@ -1,3 +1,11 @@
/*
* Copyright 2025 Bryson Steck <me@brysonsteck.xyz>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
use crate::common::{self, ReturnData, ExitCode};
use crate::config::{Config, ConfigFile};