Skip to content

Commit

Permalink
Add task for distribution with license and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Dec 3, 2021
1 parent b9b2206 commit 35ccff5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions gigi.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,18 @@ binDir = "bin"

requires "nim >= 1.6.0"
requires "puppy >= 1.4.0"


task bundle, "Bundle resources for distribution":
let binExt =
when defined(windows):
".exe"
else:
""
mkDir("dist")
for b in bin:
let src = binDir & "/" & b & binExt
let dst = "dist/" & b & binExt
cpFile(src, dst)
for f in @["LICENSE", "README.md"]:
cpFile(f, "dist/" & f)

0 comments on commit 35ccff5

Please sign in to comment.