Merge branch 'fix-test-patch' into 'main'

Fix test patching

See merge request KRypt0n_/an-anime-game-launcher!43
This commit is contained in:
Observer KRypt0n_ 2022-02-16 12:09:40 +00:00
commit 2b7498ce3b

View file

@ -50,7 +50,7 @@ class Stream extends AbstractInstaller
/**
* Remove test version restrictions from the main patch
*/
() => Neutralino.os.execCommand(`cd "${path.addSlashes(patchDir)}" && sed -i '/^echo "If you would like to test this patch, modify this script and remove the line below this one."/,+5d' patch.sh`),
() => Neutralino.os.execCommand(`cd "${path.addSlashes(patchDir)}" && sed -i '/^echo " === !! UNTESTED PATCH. CHECK FOR BANS USING A TRASH ACCOUNT !! ==="/,+5d' patch.sh`),
/**
* Remove /etc/hosts editing if running in Flatpak
@ -60,7 +60,7 @@ class Stream extends AbstractInstaller
/**
* Remove test version restrictions from the anti-login crash patch
*/
() => Neutralino.os.execCommand(`cd "${path.addSlashes(patchDir)}" && sed -i '/^echo " necessary afterwards (Friday?). If that's the case, comment the line below."/,+2d' patch_anti_logincrash.sh`),
() => Neutralino.os.execCommand(`cd "${path.addSlashes(patchDir)}" && sed -i '/^#echo " edit this script file to comment\/remove the line below."/,+2d' patch_anti_logincrash.sh`),
/**
* Make the main patch executable