Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions xbuild/src/gradle/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,12 @@ pub fn build(env: &BuildEnv, out: &Path) -> Result<()> {

let opt = env.target().opt();
let format = env.target().format();

#[cfg(target_os = "windows")]
let mut cmd = Command::new("gradle.bat");
#[cfg(not(target_os = "windows"))]
let mut cmd = Command::new("gradle");

cmd.current_dir(&gradle);
cmd.arg(match format {
Format::Aab => "bundle",
Expand Down