From f7dfc993aa7305d12ce3626244b67fdb27d3fcf1 Mon Sep 17 00:00:00 2001 From: filip2cz Date: Wed, 11 Dec 2024 16:05:21 +0100 Subject: [PATCH 1/4] Tf2classic: Add version 2023-05-27 --- bucket/tf2classic.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 bucket/tf2classic.json diff --git a/bucket/tf2classic.json b/bucket/tf2classic.json new file mode 100644 index 000000000000..6f7d40010953 --- /dev/null +++ b/bucket/tf2classic.json @@ -0,0 +1,24 @@ +{ + "version": "2023-05-27", + "license": "Freeware", + "homepage": "https://tf2classic.com/", + "description": "Team Fortress 2 Classic is a free Sourcemod that aims to re-imagine the 2008/2009 era of the original Team Fortress 2. New features range from weapons and maps to gamemodes such as VIP and Four-Team.", + "url": "https://github.com/tf2classic/TF2CDownloader/releases/download/2023-05-27/TF2CDownloaderWindows.exe", + "hash": "3694098fa24b1c08a75a24eafeef4ffed4ec4eddcbe002d2857115da82579cb6", + "checkver": { + "github": "https://github.com/tf2classic/TF2CDownloader" + }, + "autoupdate": { + "url": "https://github.com/tf2classic/TF2CDownloader/releases/download/$version/TF2CDownloaderWindows.exe" + }, + "bin": "TF2CDownloaderWindows.exe", + "post_install": [ + "Write-Host", + "cd 'C:\\Program Files (x86)\\Steam\\steamapps\\sourcemods\\'", + "if ($cmd -eq \"install\") { TF2CDownloaderWindows --install }", + "if ($cmd -eq \"update\") { TF2CDownloaderWindows --update }" + ], + "pre_uninstall": [ + "if ($cmd -eq \"uninstall\") { rm -r 'C:\\Program Files (x86)\\Steam\\steamapps\\sourcemods\\tf2classic' }" + ] +} From c03d6d401579dffc5a33686c8bf79353671ab72e Mon Sep 17 00:00:00 2001 From: filip2cz Date: Wed, 11 Dec 2024 18:48:20 +0100 Subject: [PATCH 2/4] Tf2classic: Add Setup instructions --- bucket/tf2classic.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bucket/tf2classic.json b/bucket/tf2classic.json index 6f7d40010953..080669594045 100644 --- a/bucket/tf2classic.json +++ b/bucket/tf2classic.json @@ -20,5 +20,8 @@ ], "pre_uninstall": [ "if ($cmd -eq \"uninstall\") { rm -r 'C:\\Program Files (x86)\\Steam\\steamapps\\sourcemods\\tf2classic' }" + ], + "notes": [ + "Setup instructions: https://tf2classic.com/download" ] } From 2041af8512bb22981481a0c0b922e89d99f546ba Mon Sep 17 00:00:00 2001 From: filip2cz Date: Wed, 11 Dec 2024 19:06:46 +0100 Subject: [PATCH 3/4] Tf2classic: better notes --- bucket/tf2classic.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bucket/tf2classic.json b/bucket/tf2classic.json index 080669594045..a1fb64af001c 100644 --- a/bucket/tf2classic.json +++ b/bucket/tf2classic.json @@ -22,6 +22,6 @@ "if ($cmd -eq \"uninstall\") { rm -r 'C:\\Program Files (x86)\\Steam\\steamapps\\sourcemods\\tf2classic' }" ], "notes": [ - "Setup instructions: https://tf2classic.com/download" + "To run TF2 Classic, you must have Source SDK Base 2013 Multiplayer installed. If you do not have it, follow this link: steam://install/243750" ] } From e7a8b6ea58ac33338388d6cdcd8b2a5887fdae69 Mon Sep 17 00:00:00 2001 From: filip2cz Date: Wed, 11 Dec 2024 19:52:25 +0100 Subject: [PATCH 4/4] Tf2classic: use zip file instead of installer --- bucket/tf2classic.json | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/bucket/tf2classic.json b/bucket/tf2classic.json index a1fb64af001c..3d3cd1b0d4b8 100644 --- a/bucket/tf2classic.json +++ b/bucket/tf2classic.json @@ -1,27 +1,23 @@ { - "version": "2023-05-27", + "version": "2.1.5", "license": "Freeware", "homepage": "https://tf2classic.com/", "description": "Team Fortress 2 Classic is a free Sourcemod that aims to re-imagine the 2008/2009 era of the original Team Fortress 2. New features range from weapons and maps to gamemodes such as VIP and Four-Team.", - "url": "https://github.com/tf2classic/TF2CDownloader/releases/download/2023-05-27/TF2CDownloaderWindows.exe", - "hash": "3694098fa24b1c08a75a24eafeef4ffed4ec4eddcbe002d2857115da82579cb6", - "checkver": { - "github": "https://github.com/tf2classic/TF2CDownloader" - }, - "autoupdate": { - "url": "https://github.com/tf2classic/TF2CDownloader/releases/download/$version/TF2CDownloaderWindows.exe" - }, - "bin": "TF2CDownloaderWindows.exe", + "url": "https://wiki.tf2classic.com/kachemak/tf2classic.zip", "post_install": [ - "Write-Host", - "cd 'C:\\Program Files (x86)\\Steam\\steamapps\\sourcemods\\'", - "if ($cmd -eq \"install\") { TF2CDownloaderWindows --install }", - "if ($cmd -eq \"update\") { TF2CDownloaderWindows --update }" + "New-Item -ItemType SymbolicLink -Path 'C:\\Program Files (x86)\\Steam\\steamapps\\sourcemods\\tf2classic' -Target \"$dir\"" ], + "checkver": { + "url": "https://tf2classic.com/history", + "regex": "([\\d.]+) Patch" + }, "pre_uninstall": [ "if ($cmd -eq \"uninstall\") { rm -r 'C:\\Program Files (x86)\\Steam\\steamapps\\sourcemods\\tf2classic' }" ], "notes": [ "To run TF2 Classic, you must have Source SDK Base 2013 Multiplayer installed. If you do not have it, follow this link: steam://install/243750" + ], + "persist": [ + "cfg" ] }