@@ -140,14 +140,14 @@ fn godot_export(is_debug_build: bool) {
140140 cmd. current_dir ( GODOT_BASE_DIR )
141141 . arg ( "--headless" ) ;
142142 if is_debug_build {
143- cmd. args ( [ "--export-debug" , "linux-debug " , & output_path. to_string_lossy ( ) ] ) ;
143+ cmd. args ( [ "--export-debug" , "Linux " , & output_path. to_string_lossy ( ) ] ) ;
144144 } else {
145- cmd. args ( [ "--export-release" , "linux-release " , & output_path. to_string_lossy ( ) ] ) ;
145+ cmd. args ( [ "--export-release" , "Linux " , & output_path. to_string_lossy ( ) ] ) ;
146146 }
147147 let human = if is_debug_build {
148- format ! ( "{} --headless --export-debug linux-debug " , godot_bin)
148+ format ! ( "{} --headless --export-debug Linux " , godot_bin)
149149 } else {
150- format ! ( "{} --headless --export-release linux-release " , godot_bin)
150+ format ! ( "{} --headless --export-release Linux " , godot_bin)
151151 } ;
152152 let output = run_cmd_capture ( cmd, & human) ;
153153 let stdout = String :: from_utf8_lossy ( & output. stdout ) ;
@@ -187,16 +187,12 @@ fn resolve_godot_bin() -> String {
187187 "godot" . to_string ( )
188188}
189189
190- fn get_exported_binary_path ( is_debug_build : bool ) -> PathBuf {
191- get_build_dir ( is_debug_build ) . join ( "decktricks-gui" )
190+ fn get_exported_binary_path ( _is_debug_build : bool ) -> PathBuf {
191+ Path :: new ( GODOT_BUILD_BASE_DIR ) . join ( "decktricks-gui" )
192192}
193193
194- fn get_build_dir ( is_debug_build : bool ) -> PathBuf {
195- if is_debug_build {
196- Path :: new ( GODOT_BUILD_BASE_DIR ) . join ( "debug" )
197- } else {
198- Path :: new ( GODOT_BUILD_BASE_DIR ) . join ( "release" )
199- }
194+ fn get_build_dir ( _is_debug_build : bool ) -> PathBuf {
195+ Path :: new ( GODOT_BUILD_BASE_DIR ) . to_path_buf ( )
200196}
201197
202198fn run_cmd ( mut cmd : Command , human : & str ) {
0 commit comments