-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathage.nimble
More file actions
39 lines (32 loc) · 783 Bytes
/
Copy pathage.nimble
File metadata and controls
39 lines (32 loc) · 783 Bytes
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
36
37
38
39
import std/os
# Package
version = "0.10.2"
author = "Kazuya Takei"
description = "Portable version-bumping tool"
license = "Apache-2.0"
srcDir = "src"
binDir = "dist"
installExt = @["nim"]
bin = @["age"]
# Dependencies
requires "nim >= 2.0.0"
requires "cligen >= 1.5.0"
requires "mustache >= 0.4.3"
requires "parsetoml >= 0.7.2"
requires "semver >= 1.2.0"
# Extra tasks
task bundle, "Bundle resources for distribution":
let
binExt =
when defined(windows):
".exe"
else:
""
bundleDir = binDir & DirSep & "age-v" & version
mkDir(bundleDir)
for b in bin:
let src = binDir & "/" & b & binExt
let dst = bundleDir & DirSep & b & binExt
cpFile(src, dst)
for f in @["LICENSE", "README.md"]:
cpFile(f, bundleDir & DirSep & f)