~avery/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

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

Details
Message ID
<165989606297.10426.14026359381398903756-0@git.sr.ht>
DKIM signature
missing
Download raw message
Patch: +8 -1
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] build success

builds.sr.ht <builds@sr.ht>
Details
Message ID
<CM0024J95K63.2L0UREYLD8YRV@cirno>
In-Reply-To
<165989606297.10426.14026359381398903756-0@git.sr.ht> (view parent)
DKIM signature
missing
Download raw message
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]: hking0036@gmail.com

✓ #818596 SUCCESS compatibility-tools-manager/patches/.build.yml https://builds.sr.ht/~avery/job/818596
Details
Message ID
<CM1NT7KF0VS3.2SF72CSCZEA5E@fancy-pc>
In-Reply-To
<165989606297.10426.14026359381398903756-0@git.sr.ht> (view parent)
DKIM signature
pass
Download raw message
Thanks, merged and released a new version of the plugin!
Reply to thread Export thread (mbox)