-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
35 lines (26 loc) · 879 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
set windows-shell := ["pwsh", "-NoProfile", "-Command"]
all: litbundle test
[windows]
luvibundle: build (d "luviloader")
luvi dist -o build/daul.exe
[windows]
litbundle: build (d "luviloader")
cp package.lua dist/
lit make dist
mv daul.exe build/
build: dirs (d "pass/daul/variables") (d "pass/daul")
test: selfcheck
selfcheck: (testd "pass/daul" "dist/pass/daul") (testd "pass/daul/variables" "dist/pass/daul/variables")
testd in out: (d "test")
cd dist; luajit ./test.lua ../{{in}}.daul ../{{out}}.lua
d file:
cd dist; luajit ./main.lua ../{{file}}.daul {{file}}.lua
[windows]
dirs:
#!pwsh -NoProfile
Remove-Item dist -Recurse -ErrorAction Ignore
mkdir dist | Out-Null
Get-ChildItem -Exclude dist -Directory . | % { Copy-Item -Recurse -Filter *.lua $_ dist/ }
Copy-Item main.lua dist/
Remove-Item build -Recurse -ErrorAction Ignore
mkdir build | Out-Null