Private
Public Access
1
0

fix: make version display dynamic from package.json instead of hardcoded
All checks were successful
CI Pipeline / Rust Format Check (push) Successful in 5s
CI Pipeline / Clippy Lints (push) Successful in 57s
CI Pipeline / Rust Unit Tests (push) Successful in 1m17s
CI Pipeline / Security Audit (push) Successful in 3s
CI Pipeline / Frontend Lint & Type Check (push) Successful in 15s
CI Pipeline / Build .deb & Release (push) Has been skipped

This commit is contained in:
2026-05-12 23:49:14 +00:00
parent 010d384c6a
commit c8b1feee19
4 changed files with 9 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"name": "patch-manager-ui",
"private": true,
"version": "0.1.3",
"version": "0.1.4",
"type": "module",
"scripts": {
"dev": "vite",

View File

@ -139,7 +139,7 @@ export default function AppLayout() {
<Divider />
<Box sx={{ p: 1.5 }}>
<Typography variant="caption" color="text.secondary">
Linux Patch Manager v0.1.3
Linux Patch Manager v{__APP_VERSION__}
</Typography>
</Box>
</Box>

2
frontend/src/vite-env.d.ts vendored Normal file
View File

@ -0,0 +1,2 @@
/// <reference types="vite/client" />
declare const __APP_VERSION__: string;

View File

@ -2,8 +2,13 @@ import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { resolve } from 'path'
import { version } from './package.json'
export default defineConfig({
plugins: [react()],
define: {
__APP_VERSION__: JSON.stringify(version),
},
resolve: {
alias: {
'@': resolve(__dirname, './src'),