@@ -26,21 +26,21 @@ def git_checkout_vcpkg_commit():
26
26
27
27
def run_vcpkg_install_command ():
28
28
# Linux command
29
- install_command = ["./ bootstrap-vcpkg.sh" ]
29
+ install_command = ["bash" , " bootstrap-vcpkg.sh" ]
30
30
install_run = subprocess .run (
31
- install_command , cwd = VCPKG_LOCATION , capture_output = True , check = False
31
+ install_command , cwd = VCPKG_LOCATION , capture_output = True , check = False , encoding = "utf-8"
32
32
)
33
33
if DEBUG_MODE :
34
34
print (install_run .stdout )
35
- logger .debug (f"'bootstrap-vcpkg.sh: { install_run .stdout . decode ( 'ascii' ) } " )
35
+ logger .debug (f"'bootstrap-vcpkg.sh: { install_run .stdout } " )
36
36
37
37
int_command = "./vcpkg integrate install" .split (" " )
38
38
int_run = subprocess .run (
39
- int_command , cwd = VCPKG_LOCATION , capture_output = True , check = False
39
+ int_command , cwd = VCPKG_LOCATION , capture_output = True , check = False , encoding = "utf-8"
40
40
)
41
41
if DEBUG_MODE :
42
42
print (int_run .stdout )
43
- logger .debug (f"'vcpkg integrate install: { int_run .stdout . decode ( 'ascii' ) } " )
43
+ logger .debug (f"'vcpkg integrate install: { int_run .stdout } " )
44
44
45
45
46
46
def exec_explorer (directory ):
@@ -57,19 +57,7 @@ def exec_explorer(directory):
57
57
for root , _ , files in os .walk (directory ):
58
58
for file in files :
59
59
file_path = os .path .join (root , file )
60
- try :
61
- result = subprocess .run (
62
- ["file" , file_path ], capture_output = True , check = False
63
- )
64
- if b"ELF" in result .stdout :
65
- executables .append (file_path )
66
- if b"archive" in result .stdout :
67
- executables .append (file_path )
68
- except FileNotFoundError :
69
- print (
70
- "Error: 'file' command not found. Make sure it's installed and in your PATH."
71
- )
72
- return []
60
+ executables .append (file_path )
73
61
return executables
74
62
75
63
0 commit comments