From d992a139c022fd2287bee67d58530ae08aa4c076 Mon Sep 17 00:00:00 2001 From: Patrick Uven Date: Thu, 24 Oct 2024 17:09:45 +0200 Subject: [PATCH] Remove 32 bit binary support - Factorio has terminated 32 bit binary support 8 years ago (https://www.factorio.com/blog/post/fff-158) and only supports 64 bit binaries since version 0.15. The release of 2.x changed the version output of the binary, breaking binary arch detection. Instead of fixing this for a feature not support since years, this change removes it. --- factorio | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/factorio b/factorio index 3fb7ad3..e853859 100755 --- a/factorio +++ b/factorio @@ -556,10 +556,6 @@ function get_bin_version(){ as_user "$BINARY --version |egrep '^Version: [0-9\.]+' |egrep -o '[0-9\.]+' |head -n 1" } -function get_bin_arch(){ - as_user "$BINARY --version |egrep '^Binary version: ' |egrep -o '[0-9]{2}'" -} - function update(){ if ! [ -e "${UPDATE_SCRIPT}" ]; then echo "Failed to find update script, blatantly refusing to continue!" @@ -576,9 +572,9 @@ function update(){ fi if [ ${HEADLESS} -gt 0 ]; then - package="core-linux_headless$(get_bin_arch)" + package="core-linux_headless64" else - package="core-linux$(get_bin_arch)" + package="core-linux64" fi version=$(get_bin_version)