Skip to content

Commit 3a66a96

Browse files
committed
Go back to (inferior) default godot method of same build location
1 parent 323db7e commit 3a66a96

3 files changed

Lines changed: 13 additions & 57 deletions

File tree

gui/godot/decktricks-cli.gdextension

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ compatibility_minimum = 4.4
44
reloadable = true
55

66
[libraries]
7-
linux.debug.x86_64 = "res://build/debug/libdecktricks_godot_gui.so"
8-
linux.release.x86_64 = "res://build/release/libdecktricks_godot_gui.so"
7+
linux.debug.x86_64 = "res://build/libdecktricks_godot_gui.so"
8+
linux.release.x86_64 = "res://build/libdecktricks_godot_gui.so"

gui/godot/export_presets.cfg

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[preset.0]
22

3-
name="linux-release"
3+
name="Linux"
44
platform="Linux"
55
runnable=false
66
advanced_options=true
@@ -9,7 +9,7 @@ custom_features=""
99
export_filter="all_resources"
1010
include_filter=""
1111
exclude_filter=""
12-
export_path="build/release/decktricks-gui"
12+
export_path="build/decktricks-gui"
1313
patches=PackedStringArray()
1414
encryption_include_filters=""
1515
encryption_exclude_filters=""
@@ -40,44 +40,4 @@ ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash
4040
kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\")
4141
rm -rf \"{temp_dir}\""
4242

43-
[preset.1]
44-
45-
name="linux-debug"
46-
platform="Linux"
47-
runnable=true
48-
advanced_options=true
49-
dedicated_server=false
50-
custom_features=""
51-
export_filter="all_resources"
52-
include_filter=""
53-
exclude_filter=""
54-
export_path="build/debug/decktricks-gui"
55-
patches=PackedStringArray()
56-
encryption_include_filters=""
57-
encryption_exclude_filters=""
58-
seed=0
59-
encrypt_pck=false
60-
encrypt_directory=false
61-
script_export_mode=2
62-
63-
[preset.1.options]
64-
65-
custom_template/debug=""
66-
custom_template/release=""
67-
debug/export_console_wrapper=1
68-
binary_format/embed_pck=true
69-
texture_format/s3tc_bptc=true
70-
texture_format/etc2_astc=false
71-
binary_format/architecture="x86_64"
72-
ssh_remote_deploy/enabled=false
73-
ssh_remote_deploy/host="user@host_ip"
74-
ssh_remote_deploy/port="22"
75-
ssh_remote_deploy/extra_args_ssh=""
76-
ssh_remote_deploy/extra_args_scp=""
77-
ssh_remote_deploy/run_script="#!/usr/bin/env bash
78-
export DISPLAY=:0
79-
unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\"
80-
\"{temp_dir}/{exe_name}\" {cmd_args}"
81-
ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash
82-
kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\")
83-
rm -rf \"{temp_dir}\""
43+

gui/rust/src/bin/gui_tool.rs

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -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

202198
fn run_cmd(mut cmd: Command, human: &str) {

0 commit comments

Comments
 (0)