feat(gui): footer badge "Rust" + one-click run.bat launcher
GUI: Footer.svelte gets a small inline "Rust" pill next to the copyright line (red bg #b7411a, white 11px, rounded). Now obvious at-a-glance which fork's UI you're looking at when both python and rust are open side-by-side. Python edition mirrors with a console banner. Launcher: run.bat at the repo root loads dev.env (skipping #-comments and blank lines), then `start ""` spawns target\release\jarvis-gui.exe. The new Desktop shortcut "Jarvis (Rust).lnk" points at this batch file with resources\icons\icon.ico as its icon. WindowStyle=7 means the cmd host stays minimized — only the GUI window pops up. If the user hasn't built yet, the bat prints the cargo build command and pauses instead of silently doing nothing.
This commit is contained in:
parent
100db82bd6
commit
ae279aeef7
2 changed files with 36 additions and 1 deletions
|
|
@ -17,7 +17,10 @@
|
|||
</script>
|
||||
|
||||
<footer id="footer">
|
||||
<p>© {currentYear} J.A.R.V.I.S.</p>
|
||||
<p>
|
||||
© {currentYear} J.A.R.V.I.S.
|
||||
<span class="edition" title="Rust + Tauri build">Rust</span>
|
||||
</p>
|
||||
<p class="links">
|
||||
<a href={repoLink} target="_blank" rel="noopener noreferrer">
|
||||
<img src="/media/icons/github-logo.png" alt="GitHub" width="18px" />
|
||||
|
|
@ -46,6 +49,19 @@
|
|||
line-height: 1.7em;
|
||||
margin-top: 15px;
|
||||
|
||||
.edition {
|
||||
display: inline-block;
|
||||
margin-left: 6px;
|
||||
padding: 1px 7px;
|
||||
border-radius: 4px;
|
||||
background: #b7411a;
|
||||
color: #fff;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.5px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
|
|
|||
19
run.bat
Normal file
19
run.bat
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
@echo off
|
||||
setlocal enabledelayedexpansion
|
||||
cd /d "%~dp0"
|
||||
|
||||
if exist dev.env (
|
||||
for /f "usebackq tokens=1,* delims==" %%a in ("dev.env") do (
|
||||
set "_k=%%a"
|
||||
if not "!_k:~0,1!"=="#" if not "!_k!"=="" set "%%a=%%b"
|
||||
)
|
||||
)
|
||||
|
||||
if exist "target\release\jarvis-gui.exe" (
|
||||
start "" "target\release\jarvis-gui.exe"
|
||||
exit /b 0
|
||||
)
|
||||
|
||||
echo target\release\jarvis-gui.exe not found.
|
||||
echo Build it first: cargo build --release -p jarvis-gui
|
||||
pause
|
||||
Loading…
Add table
Add a link
Reference in a new issue