-
Notifications
You must be signed in to change notification settings - Fork 2
/
cargo-generate.toml
91 lines (71 loc) · 2.81 KB
/
cargo-generate.toml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
[template]
cargo_generate_version = ">=0.9.0"
exclude = ["*.png", ".github/workflows/ci.yml", ".github/workflows/itch.yml"]
[hooks]
post = ["post-script.rhai"]
[placeholders.game_name]
type = "string"
prompt = "What will be the name of this game? (For Humans)"
[placeholders.platform]
type = "string"
prompt = "Which platforms we will support?"
default = "all"
choices = ["all", "mobile", "web", "pc"]
[placeholders.license]
type = "string"
prompt = "What licenses will the project have?"
default = "all"
choices = ["all", "MIT", "APACHE"]
[placeholders.deploy_itch]
type = "bool"
prompt = "Would you like your project to be uploaded to itchio?"
default = false
[placeholders.deploy_release]
type = "bool"
prompt = "Would you like to deploy it in GitHub releases?"
default = false
[placeholders.enable_inspector]
type = "bool"
prompt = "Would you like to activate the inspector interface for development mode?"
default = false
#
# Contional Placeholders
#
# Deploy to itch.io
[conditional.'deploy_itch == true'.placeholders]
itch_username = { type = "string", prompt = "What is your itch.io username?", default = "" }
itch_project_name = { type = "string", prompt = "What is your itch.io project name?", default = "" }
# If has mobile platform
[conditional.'platform == "mobile" || platform == "all"'.placeholders]
pkg_name = { type = "string", prompt = "What will be the name of the package to be used in the android project? (ex: com.sergioribera.my_game)" }
deploy_play_store = { type = "bool", prompt = "Would you like your project to be uploaded to Google Play Store?", default = false }
[conditional.'platform == "web" || platform == "all"'.placeholders]
deploy_github_pages = { type = "bool", prompt = "Would you like to deploy it on GitHub pages?", default = true }
[conditional.'deploy_github_pages == true'.placeholders]
repository_name = { type = "string", prompt = "What is the name of the repository on GitHub? (this is used to display the github page)" }
#
# Conditions
#
[conditional.'enable_inspector == false']
ignore = ["src/inspector.rs", "src/inspector"]
[conditional.'platform != "mobile" && platform != "all"']
ignore = [".github/workflows/build-android.yml", "launchers/mobile", "res"]
[conditional.'platform != "web" && platform != "all"']
ignore = [
".github/workflows/release-gh-pages.yml",
".github/workflows/release-itch-html.yml",
"launchers/wasm",
]
[conditional.'platform != "pc" && platform != "all"']
ignore = [".github/workflows/build.yml", "launchers/native"]
[conditional.'deploy_itch == false']
ignore = [".github/workflows/itch.yml"]
[conditional.'deploy_github_pages == false']
ignore = [".github/workflows/release-gh-pages.yml"]
#
# License
#
[conditional.'license != "MIT" && license != "all"']
ignore = ["LICENSE-MIT"]
[conditional.'license != "APACHE" && license != "all"']
ignore = ["LICENSE-APACHE"]