factorio: add an updateScript

The updateScript knows how to automatically fetch and update the version
data from the Factorio versions API (and update the hashes
appropriately), which makes it easier to update whenever experimental
does.
This commit is contained in:
Luke Granger-Brown
2020-11-30 18:07:16 +00:00
parent 9a63b3d3d6
commit 2c8f7755d4
3 changed files with 286 additions and 66 deletions
+58
View File
@@ -0,0 +1,58 @@
{
"x86_64-linux": {
"alpha": {
"experimental": {
"name": "factorio_alpha_x64-1.1.2.tar.xz",
"needsAuth": true,
"sha256": "0cmia16d5dhy3f8mck926d7rrnavxmvb6a72ymjllxm37slsx60j",
"tarDirectory": "x64",
"url": "https://factorio.com/get-download/1.1.2/alpha/linux64",
"version": "1.1.2"
},
"stable": {
"name": "factorio_alpha_x64-1.0.0.tar.xz",
"needsAuth": true,
"sha256": "0zixscff0svpb0yg8nzczp2z4filqqxi1k0z0nrpzn2hhzhf1464",
"tarDirectory": "x64",
"url": "https://factorio.com/get-download/1.0.0/alpha/linux64",
"version": "1.0.0"
}
},
"demo": {
"experimental": {
"name": "factorio_demo_x64-1.0.0.tar.xz",
"needsAuth": false,
"sha256": "0h9cqbp143w47zcl4qg4skns4cngq0k40s5jwbk0wi5asjz8whqn",
"tarDirectory": "x64",
"url": "https://factorio.com/get-download/1.0.0/demo/linux64",
"version": "1.0.0"
},
"stable": {
"name": "factorio_demo_x64-1.0.0.tar.xz",
"needsAuth": false,
"sha256": "0h9cqbp143w47zcl4qg4skns4cngq0k40s5jwbk0wi5asjz8whqn",
"tarDirectory": "x64",
"url": "https://factorio.com/get-download/1.0.0/demo/linux64",
"version": "1.0.0"
}
},
"headless": {
"experimental": {
"name": "factorio_headless_x64-1.1.2.tar.xz",
"needsAuth": false,
"sha256": "0x3lwz11z8cczqr5i799m4yg8x3yk6h5qz48pfzw4l2ikrrwgahd",
"tarDirectory": "x64",
"url": "https://factorio.com/get-download/1.1.2/headless/linux64",
"version": "1.1.2"
},
"stable": {
"name": "factorio_headless_x64-1.0.0.tar.xz",
"needsAuth": false,
"sha256": "0r0lplns8nxna2viv8qyx9mp4cckdvx6k20w2g2fwnj3jjmf3nc1",
"tarDirectory": "x64",
"url": "https://factorio.com/get-download/1.0.0/headless/linux64",
"version": "1.0.0"
}
}
}
}