goose icon indicating copy to clipboard operation
goose copied to clipboard

Added build and run recipes should be generic to run not just on windows

Open ATrueLight4 opened this issue 9 months ago • 0 comments

Created recipes of the commands I use Do with as you please Make requests as well Willing to adapt or keep these for myself I used win- as a prefix, but I tried to keep the recipes I added generic to run on any system I hope. I did not include yarn in my builds Adjust as needed or as you like. Comments and recipe names listed below:

s = file seperator based on OS

s := if os() == "windows" { "\" } else { "/" }

testing/debugging

os:

Make just work on Window

set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]

Build the core code

M = --release or "" for debug

F = OR/AND/ANY/NONE --workspace --all-features --all-targets

win-bld M F:

Build just debug

win-bld-dbg:

Build debug and test, examples,...

win-bld-dbg-all:

Build just release

win-bld-rls:

Build release and test, examples, ...

win-bld-rls-all:

Install npm stuff

win-app-deps:

Windows copy {release|debug} files to ui\desktop\src\bin

s = os depenent file seperator

F = release or debug

win-cpy-win F:

"Other" copy {release|debug} files to ui/desktop/src/bin

s = os depenent file seperator

F = release or debug

win-cpy-oth F:

copy files depending on OS

F = release or debug

win-app-cpy F="release":

Only copy binaries, npm install, start-gui

F = release or debug

s = os depenent file seperator

win-app-run F:

Only run debug desktop, no build

win-run-dbg:

Only run release desktop, nu build

win-run-rls:

Build and run debug desktop

P = nothing or -all passed on command line

win-tot-dbg *P:

Build and run release desktop

P = nothing or -all passed on command line

win-tot-rls *P:

ATrueLight4 avatar Mar 17 '25 21:03 ATrueLight4