File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Binaries
22/radar
3+ /radar-desktop
34/explorer
5+ /desktop
46* .exe
57
68# Go
@@ -24,6 +26,11 @@ Thumbs.db
2426* .log
2527internal /static /dist /*
2628! internal /static /dist /.gitkeep
29+ /build /bin /
30+
31+ # Wails generated
32+ web /wailsjs /
33+ web /package.json.md5
2734
2835# Local config
2936.env
Original file line number Diff line number Diff line change @@ -177,26 +177,26 @@ desktop-binary:
177177 CGO_ENABLED=1 CGO_LDFLAGS=" -framework UniformTypeIdentifiers" go build -tags production -ldflags " $( LDFLAGS) " -o radar-desktop ./cmd/desktop
178178
179179# Run desktop app in Wails dev mode with Go hot reload.
180- # Uses -s to skip the frontend watcher — run `make watch-frontend` in a separate terminal .
180+ # wails.json lives in cmd/desktop/ (Wails requires it next to the main package) .
181181# Requires wails CLI: go install github.com/wailsapp/wails/v2/cmd/wails@latest
182182desktop-dev :
183183 @command -v wails > /dev/null 2>&1 || { echo " Error: wails CLI not found. Install with: go install github.com/wailsapp/wails/v2/cmd/wails@latest" ; exit 1; }
184- wails dev -ldflags " $( LDFLAGS) " -s
184+ cd cmd/desktop && wails dev -ldflags " $( LDFLAGS) "
185185
186186# Package macOS .app bundle
187187desktop-package-darwin :
188188 @command -v wails > /dev/null 2>&1 || { echo " Error: wails CLI not found" ; exit 1; }
189- wails build -platform darwin/universal -ldflags " $( LDFLAGS) "
189+ cd cmd/desktop && wails build -platform darwin/universal -ldflags " $( LDFLAGS) "
190190
191191# Package Windows .exe
192192desktop-package-windows :
193193 @command -v wails > /dev/null 2>&1 || { echo " Error: wails CLI not found" ; exit 1; }
194- wails build -platform windows/amd64 -ldflags " $( LDFLAGS) "
194+ cd cmd/desktop && wails build -platform windows/amd64 -ldflags " $( LDFLAGS) "
195195
196196# Package Linux binary
197197desktop-package-linux :
198198 @command -v wails > /dev/null 2>&1 || { echo " Error: wails CLI not found" ; exit 1; }
199- wails build -platform linux/amd64 -ldflags " $( LDFLAGS) "
199+ cd cmd/desktop && wails build -platform linux/amd64 -ldflags " $( LDFLAGS) "
200200
201201# ============================================================================
202202# Release Targets
Original file line number Diff line number Diff line change 22 "$schema" : " https://wails.io/schemas/config.v2.json" ,
33 "name" : " radar-desktop" ,
44 "outputfilename" : " Radar" ,
5- "frontend:dir" : " web" ,
5+ "frontend:dir" : " ../../ web" ,
66 "frontend:install" : " npm install" ,
77 "frontend:build" : " npm run build" ,
88 "frontend:dev:watcher" : " npm run dev" ,
99 "frontend:dev:serverUrl" : " auto" ,
10+ "build:dir" : " ../../build" ,
1011 "author" : {
1112 "name" : " Skyhook" ,
1213 "email" : " support@skyhook.io"
You can’t perform that action at this time.
0 commit comments