diff --git a/LinuxED.py b/LinuxED.py index 4047b3a..b44e783 100755 --- a/LinuxED.py +++ b/LinuxED.py @@ -24,9 +24,10 @@ 'If you are unaware of what you\'re doing, it\'s recommended you close this installer.\n' 'Otherwise you may continue at your own risk.\n')""" - if os.name == 'nt': print('WARNING: it appears you are running LinuxED on Windows.\n' + """if os.name == 'nt': print('WARNING: it appears you are running LinuxED on Windows.\n' 'LinuxED was not originally made for Windows and Windows compatibility is not maintained.\n' - 'Continue at your own risk.') + 'Continue at your own risk.')""" + print('EnhancedDiscord has now reached end of life as of April 12th, and LinuxED is discontinued as well. You can still use it however, to remove EnhancedDiscord.') # Define the starting variables, these are all their own thing. username = getpass.getuser() dirpath = os.path.realpath('') @@ -153,8 +154,8 @@ def select_client(allow_custom=False): elif option == 'Update LinuxED': - print("Updating LinuxED...") - urllib.request.urlretrieve('https://github.com/Cr3atable/LinuxED/archive/master.zip', '%s/LinuxEDUpdate.zip' % tempdir) + print("No updates are available, LinuxED is discontinued.") + """urllib.request.urlretrieve('https://github.com/Cr3atable/LinuxED/archive/master.zip', '%s/LinuxEDUpdate.zip' % tempdir) with zipfile.ZipFile("%s/LinuxEDUpdate.zip" % tempdir,"r") as zip_ref: zip_ref.extractall(tempdir) os.remove("%s/LinuxED-master/LICENSE" % tempdir) @@ -170,7 +171,7 @@ def select_client(allow_custom=False): os.system("chmod +x %s" % os.path.join(filepath, scriptname)) except: print("Couldn't make script executable...\nYou may experience problems when trying to use it again") - print("Update complete!\nPlease restart LinuxED for the update to take effect.") + print("Update complete!\nPlease restart LinuxED for the update to take effect.")""" elif option == 'Uninstall ED': @@ -185,7 +186,8 @@ def select_client(allow_custom=False): print("Error: Couldn't find index.js backup, did you use the installer to install ED?\n") elif option == 'Install ED': - if not os.path.exists(enhanceddir): + print("Install option for EnhancedDiscord is disabled, as it's at end of life.") + """if not os.path.exists(enhanceddir): print("Downloading ED...") urllib.request.urlretrieve('https://github.com/joe27g/EnhancedDiscord/archive/master.zip', '%s/EnhancedDiscord.zip' % tempdir) with zipfile.ZipFile("%s/EnhancedDiscord.zip" % tempdir,"r") as zip_ref: @@ -209,10 +211,11 @@ def select_client(allow_custom=False): print("Creating config.json...") with open(cfgpath,"w") as cfg: cfg.write("{}") - print("EnhancedDiscord installation complete!\n") + print("EnhancedDiscord installation complete!\n")""" elif option == 'Update ED': - if os.path.exists(enhanceddir): + print("No updates are available, EnhancedDiscord is at end of life.") + """if os.path.exists(enhanceddir): print("Updating ED...") urllib.request.urlretrieve('https://github.com/joe27g/EnhancedDiscord/archive/master.zip', '%s/EDUpdate.zip' % tempdir) with zipfile.ZipFile("%s/EDUpdate.zip" % tempdir,"r") as zip_ref: @@ -222,7 +225,7 @@ def select_client(allow_custom=False): os.remove("%s/EDUpdate.zip" % tempdir) print("Update complete!") else: - print("It seems EnhancedDiscord is not installed in the current directory so it was unable to be updated.") + print("It seems EnhancedDiscord is not installed in the current directory so it was unable to be updated.")""" elif option == 'Select Client': print("Selecting new Discord client...") backup = (client, jspath, version) diff --git a/README.md b/README.md index 97b9ec2..b8c5947 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ +# Discontinuation +EnhancedDiscord has reached End of Life, thus all remaining official support has been dropped. So LinuxED has been discontinued as well. + # LinuxED LinuxED is an alternative installer for EnhancedDiscord that works on Linux. This project is not affiliated with Discord, or EnhancedDiscord in any way. I made this while learning Python and I'm aware of how messy, inconsistent, and poorly coded this script looks. + # Operating systems supported LinuxED supports most major distributions of Linux, MacOS, and even Windows. It also supports all versions of Discord (PTB, Stable, Canary, etc.) @@ -9,9 +13,9 @@ If you wish to use this on MacOS you'll first need to download Python 3 via [Bre After installing Brew, enter `brew install python3` in a terminal, then follow the installation guide below. # Features - Custom index.js location -- EnhancedDiscord updater (this does update ED) -- LinuxED updater (this does not update ED, it updates the LinuxED script) -- Automates all EnhancedDiscord installation on Linux, MacOS, and Windows. +- ~~EnhancedDiscord updater (this does update ED)~~ +- ~~LinuxED updater (this does not update ED, it updates the LinuxED script)~~ +- ~~Automates all EnhancedDiscord installation on Linux, MacOS, and Windows.~~ # Requirements You will need Python's distutils, which most commonly has the package name `python3-distutils` To install Python's distutils on Debian or any Debian derivatives (Ubuntu, Linux Mint) do `sudo apt install python3-distutils` @@ -21,4 +25,4 @@ To install Python's distutils on Debian or any Debian derivatives (Ubuntu, Linux 2. cd into the newly cloned repo: `cd LinuxED` 3. Execute the Python script: `python3 LinuxED.py` and follow the instructions. 4. Restart Discord entirely. -That's it! EnhancedDiscord is now installed. +~~That's it! EnhancedDiscord is now installed.~~