Skip to content

Commit 25ca58f

Browse files
committed
Fix no-background logo for standalone mode
Add gitdock-logo-nobg.png to root and release zip. Update server route to check root first.
1 parent 3572275 commit 25ca58f

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ 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.bat release\
48+
Copy-Item dashboard.html, workspace-setup.html, gitdock-logo.png, gitdock-logo-nobg.png, start.bat release\
4949
5050
- name: Prepare release folder (Unix)
5151
if: matrix.os != 'windows-latest'
5252
shell: bash
5353
run: |
5454
mkdir -p release
5555
cp "dist/${{ matrix.exe }}" release/
56-
cp dashboard.html workspace-setup.html gitdock-logo.png release/
56+
cp dashboard.html workspace-setup.html gitdock-logo.png gitdock-logo-nobg.png release/
5757
5858
- name: Create zip (Windows)
5959
if: matrix.os == 'windows-latest'

gitdock-logo-nobg.png

137 KB
Loading

server.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,10 @@ app.get("/gitdock-logo.png", (req, res) => {
327327
});
328328
// GitDock logo without background
329329
app.get("/gitdock-logo-nobg.png", (req, res) => {
330-
const logo = path.join(APP_DIR, "site", "gitdock-logo-removebg-preview.png");
331-
if (fs.existsSync(logo)) res.sendFile(logo);
330+
const root = path.join(APP_DIR, "gitdock-logo-nobg.png");
331+
const site = path.join(APP_DIR, "site", "gitdock-logo-removebg-preview.png");
332+
if (fs.existsSync(root)) res.sendFile(root);
333+
else if (fs.existsSync(site)) res.sendFile(site);
332334
else res.status(404).send("Not found");
333335
});
334336
// SECURITY: Never serve config.json

0 commit comments

Comments
 (0)