I need some help creating a manifest for Godot Engine, which contains the version number in the binary. I noticed that this is listed as a limitation on the Autoupdate Wiki page and pngcrush is given as an example.
For Godot, the download is a zip file which contains the binary. So renaming the download file using #/ isn't helpful.
Can we allow changing shortcuts and bin through autoupdate?
Basically something like -
{
"homepage": "https://godotengine.org/",
"license": "MIT",
"version": "2.1.4",
"architecture": {
"64bit": {
"url": "https://downloads.tuxfamily.org/godotengine/2.1.4/Godot_v2.1.4-stable_win64.exe.zip",
"hash": "e7b56a4a15bc87c1a034075a1d2b2d7b6bee1c2f6efe5d38fb0ff0d7b053fb05",
"shortcuts": [
[
"Godot_v2.1.4-stable_win64.exe",
"Godot"
]
]
},
"32bit": {
"url": "https://downloads.tuxfamily.org/godotengine/2.1.4/Godot_v2.1.4-stable_win32.exe.zip",
"hash": "4b02b3d1ec75d332ff7aa699e5ceb5e9a54bf1479fc8607e0a2481d8fa26b883",
"shortcuts": [
[
"Godot_v2.1.4-stable_win32.exe",
"Godot"
]
]
}
},
"checkver": {
"url": "https://godotengine.org/download",
"re": "Godot Engine ([\\d.]+)-stable"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://downloads.tuxfamily.org/godotengine/$version/Godot_v$version-stable_win64.exe.zip",
"shortcuts": [
[
"Godot_v$version-stable_win64.exe",
"Godot"
]
]
},
"32bit": {
"url": "https://downloads.tuxfamily.org/godotengine/2.1.4/Godot_v$version-stable_win32.exe.zip",
"shortcuts": [
[
"Godot_v$version-stable_win32.exe",
"Godot"
]
]
}
}
}
}
If not, what would be the correct way to handle this?
Currently it's only possible to rename the file with a pre_install script:
{
"homepage": "https://godotengine.org/",
"license": "MIT",
"version": "2.1.4",
"architecture": {
"64bit": {
"url": "https://downloads.tuxfamily.org/godotengine/2.1.4/Godot_v2.1.4-stable_win64.exe.zip",
"hash": "e7b56a4a15bc87c1a034075a1d2b2d7b6bee1c2f6efe5d38fb0ff0d7b053fb05"
},
"32bit": {
"url": "https://downloads.tuxfamily.org/godotengine/2.1.4/Godot_v2.1.4-stable_win32.exe.zip",
"hash": "4b02b3d1ec75d332ff7aa699e5ceb5e9a54bf1479fc8607e0a2481d8fa26b883"
}
},
"pre_install": "Move-Item -Force \"$dir\\Godot_*.exe\" \"$dir\\Godot.exe\"",
"shortcuts": [
[
"Godot.exe",
"Godot"
]
],
"checkver": {
"url": "https://godotengine.org/download",
"re": "Godot Engine ([\\d.]+)-stable"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://downloads.tuxfamily.org/godotengine/$version/Godot_v$version-stable_win64.exe.zip"
},
"32bit": {
"url": "https://downloads.tuxfamily.org/godotengine/$version/Godot_v$version-stable_win32.exe.zip"
}
}
}
}
Feel free to add it as a PR to the extras bucket 馃槃
Or use Rename-Item
"pre_install": "Rename-Item $dir\\Godot_*.exe $dir\\Godot.exe",
Thanks! I've added the PR - lukesampson/scoop-extras#612
Most helpful comment
Currently it's only possible to rename the file with a
pre_installscript:Feel free to add it as a PR to the extras bucket 馃槃