factorio: fix updateScript definition (#357689)

This commit is contained in:
Luke Granger-Brown 2024-11-25 14:53:04 +00:00 committed by GitHub
commit 187a67c628
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -201,15 +201,7 @@ let
$out/bin/factorio
'';
passthru.updateScript =
if (username != "" && token != "") then
[
./update.py
"--username=${username}"
"--token=${token}"
]
else
null;
passthru.updateScript = ./update.py;
meta = {
description = "Game in which you build and maintain factories";