File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ var_disk="${var_disk:-8}"
1515var_os=" ${var_os:- debian} "
1616var_version=" ${var_version:- 13} "
1717var_unprivileged=" ${var_unprivileged:- 1} "
18- var_arm64=" ${var_arm64:- no } "
18+ var_arm64=" ${var_arm64:- yes } "
1919
2020header_info " $APP "
2121variables
@@ -27,7 +27,7 @@ function update_script() {
2727 check_container_storage
2828 check_container_resources
2929
30- if [[ ! -x /opt/factorio/bin/x64/factorio ]]; then
30+ if [[ ! -x /opt/factorio/bin/$( arch_resolve " x64" " arm64 " ) /factorio ]]; then
3131 msg_error " No Factorio Installation Found!"
3232 exit 1
3333 fi
@@ -41,7 +41,7 @@ function update_script() {
4141 /opt/factorio/player-data.json /opt/factorio/server-adminlist.json \
4242 /opt/factorio/server-banlist.json /opt/factorio/server-whitelist.json
4343
44- fetch_and_deploy_from_url " https://factorio.com/get-download/stable/headless/linux64" " /opt/factorio"
44+ fetch_and_deploy_from_url " https://factorio.com/get-download/stable/headless/$( arch_resolve " linux64" " linux-arm64 " ) " " /opt/factorio"
4545
4646 restore_backup
4747
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ setting_up_container
1313network_check
1414update_os
1515
16- fetch_and_deploy_from_url " https://factorio.com/get-download/stable/headless/linux64" " /opt/factorio"
16+ fetch_and_deploy_from_url " https://factorio.com/get-download/stable/headless/$( arch_resolve " linux64" " linux-arm64 " ) " " /opt/factorio"
1717
1818msg_info " Configuring Factorio"
1919sed ' s/"public":[[:space:]]*true/"public": false/' /opt/factorio/data/server-settings.example.json > /opt/factorio/server-settings.json
@@ -24,7 +24,7 @@ msg_ok "Configured Factorio"
2424
2525msg_info " Creating Factorio Save"
2626mkdir -p /opt/factorio/saves
27- $STD /opt/factorio/bin/x64/factorio --create /opt/factorio/saves/save.zip
27+ $STD /opt/factorio/bin/$( arch_resolve " x64" " arm64 " ) /factorio --create /opt/factorio/saves/save.zip
2828msg_ok " Created Factorio Save"
2929
3030msg_info " Creating Factorio Service"
@@ -38,7 +38,7 @@ After=network-online.target
3838Type=simple
3939User=root
4040WorkingDirectory=/opt/factorio
41- ExecStart=/opt/factorio/bin/x64/factorio --start-server-load-latest --server-settings /opt/factorio/server-settings.json --server-adminlist /opt/factorio/server-adminlist.json
41+ ExecStart=/opt/factorio/bin/$( arch_resolve " x64" " arm64 " ) /factorio --start-server-load-latest --server-settings /opt/factorio/server-settings.json --server-adminlist /opt/factorio/server-adminlist.json
4242KillSignal=SIGINT
4343TimeoutStopSec=120
4444Restart=on-failure
Original file line number Diff line number Diff line change 1010 "documentation" : " https://wiki.factorio.com/Multiplayer" ,
1111 "website" : " https://factorio.com/" ,
1212 "repository" : " " ,
13- "architectures" : [" amd64" ],
13+ "architectures" : [" amd64" , " arm64 " ],
1414 "platforms" : [" pve" ],
1515 "logo" : " https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/factorio.webp" ,
16- "description" : " Factorio headless multiplayer server using the current stable Linux x64 release." ,
16+ "description" : " Factorio headless multiplayer server using the current stable Linux release." ,
1717 "install_methods" : [
1818 {
1919 "type" : " default" ,
You can’t perform that action at this time.
0 commit comments