~avery/public-inbox

compatibility-tools-manager: Patch for Luxtorpeda's new versioning scheme v1 APPLIED

~hunterking: 1
 Patch for Luxtorpeda's new versioning scheme

 1 files changed, 8 insertions(+), 1 deletions(-)
#818596 .build.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~avery/public-inbox/patches/34517/mbox | git am -3
Learn more about email & git

[PATCH compatibility-tools-manager] Patch for Luxtorpeda's new versioning scheme Export this patch

From: Hunter King <hking0036@gmail.com>

---
 src/get-tools.ts | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/get-tools.ts b/src/get-tools.ts
index 7eba1c6..7689636 100644
--- a/src/get-tools.ts
+++ b/src/get-tools.ts
@@ -47,7 +47,14 @@ export const getInstalledTools = async (smm: SMM) => {
			let version = 'unknown';

			try {
				version = (await smm.FS.readFile(join(dir, 'version'))).split(' ')[1];
				console.log(dir);
				version = (await smm.FS.readFile(join(dir, 'version')));
				//TODO: This is poo.
				//Proton-GE stores it's version number in the second string.
				//Luxtorpeda recently started storing version number, but stores it in the first. 
				if( isNaN( Number(version) )){
					version = (await smm.FS.readFile(join(dir, 'version'))).split(' ')[1];
				}
			} catch (err) {
				console.log('"version" not found, trying "VERSION.txt"');
				try {
-- 
2.34.2
compatibility-tools-manager/patches/.build.yml: SUCCESS in 33s

[Patch for Luxtorpeda's new versioning scheme][0] from [~hunterking][1]

[0]: https://lists.sr.ht/~avery/public-inbox/patches/34517
[1]: mailto:hking0036@gmail.com

✓ #818596 SUCCESS compatibility-tools-manager/patches/.build.yml https://builds.sr.ht/~avery/job/818596
Thanks, merged and released a new version of the plugin!