Skip to content

Commit cde40da

Browse files
committed
Fix logo path for standalone mode and replace start.vbs with start.bat
Logo route now checks root directory first (standalone) then hub/ (dev mode). Replaced start.vbs with start.bat because VBS cannot handle SmartScreen prompts when running hidden.
1 parent 6a7c9de commit cde40da

5 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
run: |
4646
New-Item -ItemType Directory -Force -Path release | Out-Null
4747
Copy-Item "dist\${{ matrix.exe }}" release\
48-
Copy-Item dashboard.html, workspace-setup.html, gitdock-logo.png, start.vbs release\
48+
Copy-Item dashboard.html, workspace-setup.html, gitdock-logo.png, start.bat release\
4949
5050
- name: Prepare release folder (Unix)
5151
if: matrix.os != 'windows-latest'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ If you just want to run GitDock without installing Node.js or cloning the repo:
224224
2. Download the zip for your platform (Windows, macOS, or Linux)
225225
3. Extract the zip to a folder of your choice
226226
4. Run the executable:
227-
- **Windows:** double-click `start.vbs` (runs without a console window) or `gitdock.exe` (shows server logs)
227+
- **Windows:** double-click `start.bat` (runs minimized) or `gitdock.exe` (shows server logs)
228228
- **macOS / Linux:** run `./gitdock` from a terminal
229229

230230
The dashboard opens automatically in your browser.

server.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,10 @@ app.get("/api/version", (req, res) => {
319319
// Static assets (no config files, no node_modules)
320320
// GitDock logo
321321
app.get("/gitdock-logo.png", (req, res) => {
322-
const file = path.join(APP_DIR, "hub", "gitdock-logo.png");
323-
if (fs.existsSync(file)) res.sendFile(file);
322+
const root = path.join(APP_DIR, "gitdock-logo.png");
323+
const hub = path.join(APP_DIR, "hub", "gitdock-logo.png");
324+
if (fs.existsSync(root)) res.sendFile(root);
325+
else if (fs.existsSync(hub)) res.sendFile(hub);
324326
else res.status(404).send("Not found");
325327
});
326328
// GitDock logo without background

start.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
start "" /min "%~dp0gitdock.exe"

start.vbs

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)