-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.toml
More file actions
43 lines (34 loc) · 1.14 KB
/
Makefile.toml
File metadata and controls
43 lines (34 loc) · 1.14 KB
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
[config]
default_to_workspace = false
[env]
GODOT_VERSION = "3.3.3"
[tasks.build-release.windows]
env = {CARGO_MAKE_CARGO_BUILD_TEST_FLAGS = "--target=x86_64-pc-windows-msvc"}
[tasks.build-release.mac]
env = {CARGO_MAKE_CARGO_BUILD_TEST_FLAGS = "--target=x86_64-apple-darwin"}
[tasks.build-release.linux]
env = {CARGO_MAKE_CARGO_BUILD_TEST_FLAGS = "--target=x86_64-unknown-linux-gnu"}
[tasks.install_godot.windows]
script = {file = "bin/install-godot-windows.ds"}
[tasks.install_godot.mac]
script = {file = "bin/install-godot-mac.ds"}
[tasks.install_godot.linux]
script = {file = "bin/install-godot-linux.ds"}
[tasks.install_templates]
script = {file = "bin/install-godot-templates.ds"}
[tasks.export]
dependencies = ["ci-flow", "build-release", "install_godot", "install_templates"]
script_runner = "@duckscript"
script = '''
os = os_family
rm -r "target/builds/${os}"
mkdir "target/builds/${os}"
cd tictactoe-gui
echo "Exporting ${os} version of Godot game ..."
exec godot --no-window --export "tictactoe-${os}"
cd ..
if eq "${os}" mac
exec unzip -d target/builds/mac/ target/builds/mac/tictactoe.zip
rm target/builds/mac/tictactoe.zip
end
'''