Compare commits

..

3 Commits

Author SHA1 Message Date
bf39c5b9ab chore: ignore claude settings
All checks were successful
poll-upstream / check (push) Successful in 1s
poll-upstream / check-prerelease (push) Successful in 1s
2026-05-16 08:33:26 +03:00
1af2d440db fix(nginx): drop duplicate application/x-rpm mime declaration
All checks were successful
deploy-ui / build-and-deploy (push) Successful in 52s
The mapping is already provided by /etc/nginx/mime.types on Fedora's
nginx package, so redeclaring it produced a duplicate-extension warning
on every `nginx -t`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 08:31:41 +03:00
e9abeccdea fix(ui): host .repo files and use URL form in install instructions
The previous instructions used `--from-repofile=/dev/stdin` with a
heredoc, which fails because dnf copies the source file and /dev/stdin
is not a regular file. Host the .repo files on the deployed site and
update the docs to use `--from-repofile=https://...` instead.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 08:31:34 +03:00
6 changed files with 18 additions and 19 deletions

View File

@@ -46,6 +46,7 @@ jobs:
--delete \ --delete \
--chmod D755,F644 \ --chmod D755,F644 \
--include="index.html" \ --include="index.html" \
--include="*.repo" \
--include="assets/***" \ --include="assets/***" \
--exclude="*" \ --exclude="*" \
ui/dist/ \ ui/dist/ \

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.claude/

View File

@@ -11,9 +11,6 @@ server {
root /var/www/rpm; root /var/www/rpm;
include /etc/nginx/mime.types; include /etc/nginx/mime.types;
types {
application/x-rpm rpm;
}
default_type application/octet-stream; default_type application/octet-stream;
location /assets/ { location /assets/ {

View File

@@ -0,0 +1,6 @@
[lair-cafe-unstable]
name=lair.cafe RPM Repository (unstable)
baseurl=https://rpm.lair.cafe/fedora/$releasever/$basearch/unstable/
enabled=0
gpgcheck=1
gpgkey=https://rpm.lair.cafe/8b2023ce.gpg

6
ui/public/lair-cafe.repo Normal file
View File

@@ -0,0 +1,6 @@
[lair-cafe]
name=lair.cafe RPM Repository
baseurl=https://rpm.lair.cafe/fedora/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://rpm.lair.cafe/8b2023ce.gpg

View File

@@ -2,20 +2,8 @@ import { Card, Col, Row } from "react-bootstrap";
import { CodeBlock } from "../components/CodeBlock.tsx"; import { CodeBlock } from "../components/CodeBlock.tsx";
const GPG_KEY_URL = "https://rpm.lair.cafe/8b2023ce.gpg"; const GPG_KEY_URL = "https://rpm.lair.cafe/8b2023ce.gpg";
const REPO_URL = "https://rpm.lair.cafe/lair-cafe.repo";
const REPO_FILE = `[lair-cafe] const UNSTABLE_REPO_URL = "https://rpm.lair.cafe/lair-cafe-unstable.repo";
name=lair.cafe RPM Repository
baseurl=https://rpm.lair.cafe/fedora/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=${GPG_KEY_URL}`;
const UNSTABLE_REPO_FILE = `[lair-cafe-unstable]
name=lair.cafe RPM Repository (unstable)
baseurl=https://rpm.lair.cafe/fedora/$releasever/$basearch/unstable/
enabled=0
gpgcheck=1
gpgkey=${GPG_KEY_URL}`;
export function Home() { export function Home() {
return ( return (
@@ -40,7 +28,7 @@ export function Home() {
<h6 className="mt-4">2. Add the repository</h6> <h6 className="mt-4">2. Add the repository</h6>
<CodeBlock language="bash"> <CodeBlock language="bash">
{`sudo dnf config-manager addrepo --from-repofile=/dev/stdin <<'EOF'\n${REPO_FILE}\nEOF`} {`sudo dnf config-manager addrepo --from-repofile=${REPO_URL}`}
</CodeBlock> </CodeBlock>
<h6 className="mt-4">3. Install a package</h6> <h6 className="mt-4">3. Install a package</h6>
@@ -74,7 +62,7 @@ export function Home() {
stable repo: stable repo:
</p> </p>
<CodeBlock language="bash"> <CodeBlock language="bash">
{`sudo dnf config-manager addrepo --from-repofile=/dev/stdin <<'EOF'\n${UNSTABLE_REPO_FILE}\nEOF`} {`sudo dnf config-manager addrepo --from-repofile=${UNSTABLE_REPO_URL}`}
</CodeBlock> </CodeBlock>
<h6 className="mt-4"> <h6 className="mt-4">