From fe4ea827b72d50ca961812407aa4b0f04409a8a2 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Thu, 2 Jan 2025 22:55:42 +0000 Subject: [PATCH] factorio: fix update.py for new demo format --- third_party/nixpkgs/pkgs/by-name/fa/factorio/update.py | 5 ++++- third_party/nixpkgs/pkgs/by-name/fa/factorio/versions.json | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/third_party/nixpkgs/pkgs/by-name/fa/factorio/update.py b/third_party/nixpkgs/pkgs/by-name/fa/factorio/update.py index 1fce951798..2fd01fd4bb 100755 --- a/third_party/nixpkgs/pkgs/by-name/fa/factorio/update.py +++ b/third_party/nixpkgs/pkgs/by-name/fa/factorio/update.py @@ -68,7 +68,10 @@ RELEASE_TYPES = [ needs_auth=True, hash_filename_format=["factorio_linux_{version}.tar.xz"], ), - ReleaseType("demo", hash_filename_format=["factorio_demo_x64_{version}.tar.xz"]), + ReleaseType("demo", hash_filename_format=[ + "factorio-demo_linux_{version}.tar.xz", + "factorio_demo_x64_{version}.tar.xz", + ]), ReleaseType( "headless", hash_filename_format=[ diff --git a/third_party/nixpkgs/pkgs/by-name/fa/factorio/versions.json b/third_party/nixpkgs/pkgs/by-name/fa/factorio/versions.json index a276ded9f0..d23eefe501 100644 --- a/third_party/nixpkgs/pkgs/by-name/fa/factorio/versions.json +++ b/third_party/nixpkgs/pkgs/by-name/fa/factorio/versions.json @@ -27,16 +27,19 @@ "demo": { "experimental": { "candidateHashFilenames": [ + "factorio-demo_linux_2.0.27.tar.xz", "factorio_demo_x64_2.0.27.tar.xz" ], "name": "factorio_demo_x64-2.0.27.tar.xz", "needsAuth": false, + "sha256": "75938e76d0e730273616e2441ae3c3bc238bb3cfa38d34a43e5fb25a3d1f2323", "tarDirectory": "x64", "url": "https://factorio.com/get-download/2.0.27/demo/linux64", "version": "2.0.27" }, "stable": { "candidateHashFilenames": [ + "factorio-demo_linux_1.1.110.tar.xz", "factorio_demo_x64_1.1.110.tar.xz" ], "name": "factorio_demo_x64-1.1.110.tar.xz",