chore(Taskfile): consolidate build commands for Electron apps and add task for building all platforms

This commit is contained in:
2026-01-02 11:11:30 -06:00
parent 71476c9196
commit 9734c18c4f

View File

@@ -141,8 +141,7 @@ tasks:
cmds: cmds:
- "{{.NPM}} run electron-postinstall" - "{{.NPM}} run electron-postinstall"
- "{{.NPM}} run build-backend" - "{{.NPM}} run build-backend"
- "{{.NPM}} run dist -- --linux AppImage" - "{{.NPM}} run dist -- --linux AppImage deb"
- "{{.NPM}} run dist -- --linux deb"
build-electron-windows: build-electron-windows:
desc: Build Windows Electron apps (portable and installer) desc: Build Windows Electron apps (portable and installer)
@@ -150,8 +149,15 @@ tasks:
cmds: cmds:
- "{{.NPM}} run electron-postinstall" - "{{.NPM}} run electron-postinstall"
- "{{.NPM}} run build-backend" - "{{.NPM}} run build-backend"
- "{{.NPM}} run dist -- --win portable" - "{{.NPM}} run dist -- --win portable nsis"
- "{{.NPM}} run dist -- --win nsis"
build-electron-all:
desc: Build all Electron apps (Linux and Windows)
deps: [build-frontend]
cmds:
- "{{.NPM}} run electron-postinstall"
- "{{.NPM}} run build-backend"
- "{{.NPM}} run dist -- --linux AppImage deb --win portable nsis"
dist: dist:
desc: Build distribution (defaults to AppImage) desc: Build distribution (defaults to AppImage)