From 96a1a45370935949ccc8443a358c52546d5e274b Mon Sep 17 00:00:00 2001 From: Vivek Revankar Date: Mon, 9 Dec 2024 07:27:57 -0800 Subject: [PATCH] move install script --- README.md | 2 ++ install.sh | 18 ------------------ 2 files changed, 2 insertions(+), 18 deletions(-) delete mode 100644 install.sh diff --git a/README.md b/README.md index 1bea9f2..7228f0d 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,8 @@ installation is essentially just copying the scripts to the device & making them ```sh -c "$(curl -fSs https://raw.githubusercontent.com/master-hax/pixel-backup-gang/master/install.sh)"``` +this runs a small installer script that downloads the latest release archive from github, unpacks it, then makes the contents executable. the current install script can be viewed [here](https://github.com/master-hax/pixel-backup-gang/blob/install/install.sh). + ### via linux pc using adb 1. install Android Debug Bridge (adb) & connect the pixel 1. clone this repository diff --git a/install.sh b/install.sh deleted file mode 100644 index 0dfacc6..0000000 --- a/install.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -eu - -################################################################################ -# Description: install the latest version of pixel-backup to the local directory -# Author: Vivek Revankar -# Usage: sh -c "$(curl -fSs https://raw.githubusercontent.com/master-hax/pixel-backup-gang/master/install.sh)" -################################################################################ - -pbg_tarball_version="0.0.5" -pbg_tarball_filename="pixel-backup-gang-$pbg_tarball_version.tar.gz" -pbg_tarball_url="https://github.com/master-hax/pixel-backup-gang/releases/download/$pbg_tarball_version/$pbg_tarball_filename" -echo "install.sh: downloading version $pbg_tarball_version from github" -curl -fL $pbg_tarball_url --output $pbg_tarball_filename || { echo 'failed to download release archive' ; exit 1; } -echo "install.sh: unpacking the release archive (requires root)" || { echo 'failed to unpack release archive' ; exit 1; } -su --command "tar -xvf $pbg_tarball_filename" || { echo 'failed to inflate release archive' ; exit 1; } -echo "install.sh: making the release executable (requires root)" -su --command "chmod +x ./pixel-backup-gang/*.sh" || { echo 'failed to make scripts executable' ; exit 1; } -echo "install.sh: pixel backup gang successfully installed to $(realpath ./pixel-backup-gang)"