V1.5.0: Version bump + Download-Button Redesign
- Version auf 1.5.0 in allen Packages, CI, Dockerfile, Electron - Download-Button im gleichen Design wie Version-Badge (bg-secondary, radius, hover accent) - CI Registry auf adriahub (192.168.1.100:9080) umgestellt Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d6082f8dcf
commit
17dcd6073f
9 changed files with 33 additions and 15 deletions
|
|
@ -31,16 +31,16 @@ docker-build:
|
||||||
- |
|
- |
|
||||||
if [ "$CI_COMMIT_REF_NAME" = "main" ]; then
|
if [ "$CI_COMMIT_REF_NAME" = "main" ]; then
|
||||||
TAG="main"
|
TAG="main"
|
||||||
VERSION="1.0.0"
|
VERSION="1.5.0"
|
||||||
CHANNEL="stable"
|
CHANNEL="stable"
|
||||||
elif [ "$CI_COMMIT_REF_NAME" = "feature/nightly" ] || [ "$CI_COMMIT_REF_NAME" = "nightly" ]; then
|
elif [ "$CI_COMMIT_REF_NAME" = "feature/nightly" ] || [ "$CI_COMMIT_REF_NAME" = "nightly" ]; then
|
||||||
TAG="nightly"
|
TAG="nightly"
|
||||||
VERSION="1.0.0-nightly"
|
VERSION="1.5.0-nightly"
|
||||||
CHANNEL="nightly"
|
CHANNEL="nightly"
|
||||||
else
|
else
|
||||||
CLEAN_TAG=$(echo "$CI_COMMIT_REF_NAME" | sed 's/\//-/g')
|
CLEAN_TAG=$(echo "$CI_COMMIT_REF_NAME" | sed 's/\//-/g')
|
||||||
TAG="$CLEAN_TAG"
|
TAG="$CLEAN_TAG"
|
||||||
VERSION="1.0.0-dev"
|
VERSION="1.5.0-dev"
|
||||||
CHANNEL="dev"
|
CHANNEL="dev"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ COPY web/package*.json ./
|
||||||
RUN npm install --no-audit --no-fund
|
RUN npm install --no-audit --no-fund
|
||||||
COPY web/ .
|
COPY web/ .
|
||||||
ARG VITE_BUILD_CHANNEL=stable
|
ARG VITE_BUILD_CHANNEL=stable
|
||||||
ARG VITE_APP_VERSION=1.0.0
|
ARG VITE_APP_VERSION=1.5.0
|
||||||
ENV VITE_BUILD_CHANNEL=$VITE_BUILD_CHANNEL
|
ENV VITE_BUILD_CHANNEL=$VITE_BUILD_CHANNEL
|
||||||
ENV VITE_APP_VERSION=$VITE_APP_VERSION
|
ENV VITE_APP_VERSION=$VITE_APP_VERSION
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ function createWindow() {
|
||||||
|
|
||||||
// Custom User-Agent to identify Electron app
|
// Custom User-Agent to identify Electron app
|
||||||
const currentUA = mainWindow.webContents.getUserAgent();
|
const currentUA = mainWindow.webContents.getUserAgent();
|
||||||
mainWindow.webContents.setUserAgent(currentUA + ' GamingHubDesktop/1.0.0');
|
mainWindow.webContents.setUserAgent(currentUA + ' GamingHubDesktop/1.5.0');
|
||||||
|
|
||||||
mainWindow.loadURL(HUB_URL);
|
mainWindow.loadURL(HUB_URL);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "gaming-hub-desktop",
|
"name": "gaming-hub-desktop",
|
||||||
"productName": "Gaming Hub",
|
"productName": "Gaming Hub",
|
||||||
"version": "1.0.0",
|
"version": "1.5.0",
|
||||||
"description": "Gaming Hub Desktop App mit Ad-Blocker",
|
"description": "Gaming Hub Desktop App mit Ad-Blocker",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,5 @@ const { contextBridge } = require('electron');
|
||||||
|
|
||||||
contextBridge.exposeInMainWorld('electronAPI', {
|
contextBridge.exposeInMainWorld('electronAPI', {
|
||||||
isElectron: true,
|
isElectron: true,
|
||||||
version: '1.0.0',
|
version: '1.5.0',
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "gaming-hub-server",
|
"name": "gaming-hub-server",
|
||||||
"version": "1.0.0",
|
"version": "1.5.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "gaming-hub-web",
|
"name": "gaming-hub-web",
|
||||||
"version": "1.0.0",
|
"version": "1.5.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ export default function App() {
|
||||||
return () => { es?.close(); clearTimeout(retryTimer); };
|
return () => { es?.close(); clearTimeout(retryTimer); };
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const version = (import.meta as any).env?.VITE_APP_VERSION ?? '1.0.0';
|
const version = (import.meta as any).env?.VITE_APP_VERSION ?? '1.5.0';
|
||||||
|
|
||||||
// Tab icon mapping
|
// Tab icon mapping
|
||||||
const tabIcons: Record<string, string> = {
|
const tabIcons: Record<string, string> = {
|
||||||
|
|
@ -137,7 +137,8 @@ export default function App() {
|
||||||
download
|
download
|
||||||
title="Desktop App herunterladen"
|
title="Desktop App herunterladen"
|
||||||
>
|
>
|
||||||
{'\u2B07\uFE0F'}
|
<span className="hub-download-icon">{'\u2B07\uFE0F'}</span>
|
||||||
|
<span className="hub-download-label">Desktop App</span>
|
||||||
</a>
|
</a>
|
||||||
)}
|
)}
|
||||||
<span className="hub-version">v{version}</span>
|
<span className="hub-version">v{version}</span>
|
||||||
|
|
|
||||||
|
|
@ -189,14 +189,31 @@ html, body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.hub-download-btn {
|
.hub-download-btn {
|
||||||
font-size: 16px;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
padding: 4px 10px;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 500;
|
||||||
|
font-family: var(--font);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
opacity: 0.6;
|
color: var(--text-muted);
|
||||||
transition: opacity var(--transition);
|
background: var(--bg-secondary);
|
||||||
|
border-radius: var(--radius);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
transition: all var(--transition);
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
.hub-download-btn:hover {
|
.hub-download-btn:hover {
|
||||||
opacity: 1;
|
color: var(--accent);
|
||||||
|
background: rgba(var(--accent-rgb), 0.1);
|
||||||
|
}
|
||||||
|
.hub-download-icon {
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
.hub-download-label {
|
||||||
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hub-version {
|
.hub-version {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue