Skip to content

Commit fb96919

Browse files
committed
build: fix binaries being put in subdirs
1 parent a47b6a6 commit fb96919

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

quark.nimble

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,25 @@ author = "cobaltgit"
55
description = "Quark stock mod for TrimUI Smart"
66
license = "GPL-3.0"
77
srcDir = "src"
8-
binDir = "dist" / "System" / "bin"
98
bin = @["fbscreenshot/fbscreenshot", "quark_hotkeyd/quark_hotkeyd", "sysjson_monitor/sysjson_monitor", "mainui_game_picker/mainui_game_picker", "bootlogo/bootlogo", "display/display"]
109

1110
requires "nim >= 2.0.0"
1211
requires "nimPNG >= 0.3.1"
1312

1413
const Root = getCurrentDir()
14+
const BinDir = Root / "dist" / "System" / "bin"
1515
const Threads = gorge("nproc")
1616

1717
# Import task files
1818
include "tasks/third_party.nims"
1919
include "tasks/dist.nims"
2020
include "tasks/locale.nims"
2121

22+
task buildBins, "Build binaries":
23+
for exe in bin:
24+
let binName = exe.split("/")[^1]
25+
exec &"nim c -o:{BinDir}/{binName} {srcDir}/{exe}.nim"
26+
2227
task cleanup, "Cleanup all":
2328
exec "nimble clean"
2429
rmDir("build")

tasks/dist.nims

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ task base, "Prepare base zip for distribution":
3131

3232
exec "nim e scripts/updateLocales.nims " & ver & " dist/trimui/res/lang"
3333

34-
exec "nimble build"
34+
exec "nimble buildBins"
3535

3636
exec "nimble thirdparty"
3737
for tpb in thirdPartyBins:

0 commit comments

Comments
 (0)