Skip to content

Commit 3572275

Browse files
committed
Show workspace setup on first run for standalone executables
The route handler only checked isPkg (old pkg tool) but not isStandalone (SEA). First-time users went straight to an empty dashboard without configuring workspace. Also updated start.bat to fully hide the console window via PowerShell.
1 parent cde40da commit 3572275

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ app.use((req, res, next) => {
214214
// SECURITY: Serve only the dashboard file, not the entire directory
215215
app.get("/", (req, res) => {
216216
const workspace = require("./workspace");
217-
if (isPkg && !workspace.isWorkspaceConfigured()) {
217+
if ((isPkg || isStandalone) && !workspace.isWorkspaceConfigured()) {
218218
return res.sendFile(path.join(APP_DIR, "workspace-setup.html"));
219219
}
220220
res.sendFile(path.join(APP_DIR, "dashboard.html"));
@@ -2893,7 +2893,7 @@ function logServerInfo(port) {
28932893
console.log(" Dashboard: http://" + HOST + ":" + port);
28942894
console.log(" API: http://" + HOST + ":" + port + "/api");
28952895
console.log(" Security: Localhost only (127.0.0.1)");
2896-
if (isPkg) console.log(" Mode: Packaged executable");
2896+
if (isPkg || isStandalone) console.log(" Mode: Standalone executable");
28972897
console.log("============================================================");
28982898
console.log("");
28992899
console.log(" Press Ctrl+C to stop the server.");

start.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo off
2-
start "" /min "%~dp0gitdock.exe"
2+
powershell -WindowStyle Hidden -Command "Start-Process -FilePath '%~dp0gitdock.exe' -WindowStyle Hidden -WorkingDirectory '%~dp0'"

0 commit comments

Comments
 (0)