-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildFile
60 lines (53 loc) · 1.89 KB
/
BuildFile
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# BuildIt Compiling File
# Configurations
# ==============
# Line 1: Makes sure that BuildIt use Powershell on Windows instead of CMD.EXE ====> Applies on ALL `windows` functions. default ====> false
# Line 2: Makes sure that BuildIt use Powershell 7 instead of the default Powershell (requires `pwsh` to be installed) ====> Applies on ALL `windows` functions. default ====> false
# Line 3: Enables passing arguments to the script. ====> Applies on ALL functions. default ====> true
# ==============
config:buildit {
usePowershellOnWindows: true
usePowershell7: true
passArgs: true
}
# IN USE, BUT IT DOESN'T WORK PROPERLY (it just partially works)
build:windows {
Write-Output "[BuildIt Builder] You have reached this compiler!"
Write-Output "[BuildIt Builder] Building BuildIt..."
cargo build --release
Copy-Item -Path "target\release\buildit.exe" -Destination "buildit.exe"
Write-Output "[Buildit Builder] Done, try ``.\buildit.exe``"
}
# disabled for now
build:windows-bat {
@echo off
echo [DEBUG] Arguments: %*
echo [BuildIt Builder] You have reached this compiler!
echo [BuildIt Builder] Building BuildIt...
cargo build --release
copy target\release\buildit.exe buildit.exe
echo [Buildit Builder] Done, try `.\buildit.exe`
exit /b
}
build:lignux {
#!/bin/bash
echo [BuildIt Builder] You have reached this compiler!
echo [BuildIt Builder] Building BuildIt...
cargo build --release
cp target\release\buildit buildit
echo [Buildit Builder] Done, try `./buildit`
exit
}
build:macos {
#!/bin/zsh
echo [BuildIt Builder] You have reached this compiler!
echo [BuildIt Builder] Building BuildIt...
cargo build --release
cp target\release\buildit buildit
echo [Buildit Builder] Done, try `./buildit`
exit
}
build:unix {
echo I didn't try Unix yet :)
echo I hope a contributor will add it soon!
}