Fix Stupid Mistake
This commit is contained in:
parent
cf1faf4835
commit
36c4ed7e4d
@ -107,7 +107,6 @@ void patch_mcpi_elf_dependencies(const char *linker) {
|
||||
char *exit_status_line = NULL;
|
||||
get_exit_status_string(return_code, &exit_status_line);
|
||||
ERR("patchelf Failed%s", exit_status_line);
|
||||
free(exit_status_line);
|
||||
}
|
||||
|
||||
// Fix Permissions
|
||||
@ -125,7 +124,13 @@ char *patch_get_interpreter(const char *file) {
|
||||
file,
|
||||
NULL
|
||||
};
|
||||
char *output = run_command(command, NULL);
|
||||
int return_code;
|
||||
char *output = run_command(command, &return_code);
|
||||
if (!is_exit_status_success(return_code)) {
|
||||
char *exit_status_line = NULL;
|
||||
get_exit_status_string(return_code, &exit_status_line);
|
||||
ERR("patchelf Failed%s", exit_status_line);
|
||||
}
|
||||
if (output != NULL) {
|
||||
// Trim
|
||||
int length = strlen(output);
|
||||
|
@ -118,7 +118,7 @@ const runtime = {
|
||||
GTK_THEME: 'Default',
|
||||
XDG_DATA_DIRS: '${APPDIR}/share:${APPDIR}/usr/share:/share:/usr/share',
|
||||
APPDIR_LIBRARY_PATH: `\${APPDIR}/usr/lib/${triplet}:\${APPDIR}/usr/${triplet}/lib:\${APPDIR}/lib/${triplet}:\${APPDIR}/usr/lib:\${APPDIR}/usr/lib/${triplet}/gdk-pixbuf-2.0/2.10.0/loaders`,
|
||||
APPDIR_MODULE_DIR: '/tmp/.minecraft-pi-tmp'
|
||||
APPDIR_MODULE_DIR: '/tmp/.minecraft-pi-patched'
|
||||
} : undefined,
|
||||
preserve: arch !== 'armhf' ? [
|
||||
// On non-ARM32 systems, an ARM32 linker is embedded, this
|
||||
|
Loading…
Reference in New Issue
Block a user