Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

FlameKat53/Twister-OS-Patcher

Repository files navigation

OLD TWISTPATCH!!!! DO NOT USE! (For Twister OS)


An updater for Twister OS that downloads, unzips, and runs the latest patch for Twister OS. It is fine if you run the patcher more than once as it auto-detects your version. when you run the patcher, you must reboot your computer after patching completes.

⚠️ Warning

This program isn't supported anymore! Twister OS now uses the lighter and more bug free TwisterUP by Botspot. This means all the code here won't be maintained or supported from now on! This repo will still be up for historial purposes, as well as for the older Twister OS systems that use this patcher.

Go support Twister OS!

Install/Update

wget https://raw.githubusercontent.com/FlameKat53/Twister-OS-Patcher/master/install.sh && chmod +x ./install.sh && ./install.sh && rm install.sh
If you notice the repo has been changed, run twistpatch --update to update your current version of the patcher.

Uninstall

twistpatch --remove

Usage

Screenshot-2020-09-21-11-40-47.png Screenshot-2020-09-21-11-41-29.png
There are 3 ways to open the patcher. Firstly, you can click on the "Twister OS Patcher" in your applications menu. Secondly, you can type "twistpatch" into terminal, and thirdly, you can use the "Patch Twister OS" button in notificationcenter. it will take a while to open, but once you open the patcher, make sure nothing important is running(compiling, unsaved mc worlds, etc)because you have to reboot after the patch. Once it is open, click the big button labeled "Update Twister OS" to download the latest scripts to check for updates. It will either start downloading patches and rebooting, or say you are on the latest patch and exit, or say you're offline and then exit. If you have missed out on more than 1 patch, then you will have to run the patcher after each reboot due to the nature of how the patches install updates. You may have noticed that sometimes you get a little pop-up window on your desktop telling you to upgrade. If you want to peramently stop them, then type sudo rm ~/.config/autostart/patcher.desktop. NOTE: This will be reverted the next time you update the patcher.
image.png

Commands

twistpatch:           Runs the GUI patcher
twistpatch --nogui:   Runs the CLI patcher
twistpatch --update:  Removes and reinstalls TwistPatcher to get the latest code
twistpatch --remove:  Uninstalls TwistPatcher from your system

Icon

twister-update-blue.png twister-update.png
If you don't like the default icon, then right-click on the application icon and select 'Edit application', then click on either one of the two other icons that are in the folder, which are displayed above.
18-08-2020-12-08-17-REC.png
18-08-2020-12-08-49-REC.png

Support

We have tested the code extensively, but mistakes do happen. If you have any problems, make an issue in this repository or go to the Pi Labs discord to connect with us at https://discord.gg/ttxhYrX

Demonstration

The patcher has been featured in these places:
Raspberry Pi News
leepspvideo on Youtube

Credits

FlameKat53: Main patch.sh and logic behind automatic patching. Started developing the code first.
Raspberry Pi News: The idea of an automatic patcher, install.sh and various other pieces of code.
grayduck: Lending us his bash expertise and all graphics in this patcher.
phoenixbyrd: Uploading files for us to the website.
kreal: making checkforupdates.sh, modifying install.sh, and cron code.
Botspot: Writing custom code to make YAD update popups possible and letting us yoink the icons from his project pi-apps
Jack477: Letting us steal GUI code from CommanderPi and lending us python help. https://github.com/Jack477/CommanderPi

Changes

Dev phase

  • Can install patch
  • Automatically update in order from current release to latest release
  • Uninstall script
  • Prefixes

Alpha/Beta

  • Make sure it works

Official release

  • Release program to public and inclusion in patch 1.6
  • Release the Python3 patcher to public and inclusion in patch 1.8.2
  • Get YAD notifications to work for patches and inclusion in patch 1.8.5
  • As of patch 1.8.5, this patcher has been archived in favour of TwistUP