Skip to content

Commit

Permalink
Remove 32 bit binary support
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
bioxz committed Oct 24, 2024
1 parent 94e9499 commit d992a13
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions factorio
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
Expand All @@ -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)
Expand Down

0 comments on commit d992a13

Please sign in to comment.