Skip to content

Commit 068bc05

Browse files
committed
refactor(script): more consistent
1 parent 8fbc1ea commit 068bc05

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

compile.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FUNCTION BUILD {
44
[PARAMETER(Mandatory=$TRUE, Position=1, HelpMessage="Arch type")] [STRING]$ARCH
55
)
66

7-
$OUTPATH = "bin/chdad-$OS-$ARCH"
7+
$OUTPATH = "bin/$PROJECT_NAME-$OS-$ARCH"
88
IF ($OS -EQ "windows") {
99
$OUTPATH = "$OUTPATH.exe"
1010
}
@@ -16,5 +16,7 @@ FUNCTION BUILD {
1616

1717

1818

19+
$PROJECT_NAME = "chdad"
20+
1921
BUILD "windows" "386"
2022
BUILD "windows" "amd64"

0 commit comments

Comments
 (0)