Skip to content

Commit

Permalink
Merge pull request #44 from mytricker0/auto-install
Browse files Browse the repository at this point in the history
Auto install
  • Loading branch information
Pithaya authored Aug 7, 2024
2 parents ecf2c1f + 2de5421 commit 3fb0db0
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 2 deletions.
8 changes: 7 additions & 1 deletion custom-apps/better-local-files/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ View your local songs, albums and artists.

![preview](https://raw.githubusercontent.com/Pithaya/spicetify-apps/main/custom-apps/better-local-files/docs/tracks.png)

## Installation
## Auto Installation (Linux)
```
sh <(curl -s https://raw.githubusercontent.com/Pithaya/spicetify-apps/main/custom-apps/better-local-files/src/install.sh)
```

## Manual Installation

1. Run `spicetify config-dir` to open the spicetify folder.
2. Go to the `CustomApps` folder.
Expand Down
33 changes: 33 additions & 0 deletions custom-apps/better-local-files/src/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

# Define variables
CUSTOM_APPS_DIR="$HOME/.config/spicetify/CustomApps"
NAME="better-local-files"

STATS_APP_DIR="$CUSTOM_APPS_DIR/$NAME"

ZIP_URL="https://github.com/Pithaya/spicetify-apps-dist/archive/refs/heads/dist/better-local-files.zip"
ZIP_FILE="/tmp/spicetifyed.zip"
TEMP_DIR="/tmp/spicetifyed"

# Create CustomApps directory if it doesn't exist
mkdir -p "$CUSTOM_APPS_DIR"

# Download the zip file
curl -L -o "$ZIP_FILE" "$ZIP_URL"

# Unzip the file
unzip "$ZIP_FILE" -d "$TEMP_DIR"

# Move the unzipped folder to the correct location
mv "$TEMP_DIR"/* "$STATS_APP_DIR"

# Apply Spicetify configuration
spicetify config custom_apps "$NAME"

spicetify apply

# Clean up
rm -rf "$ZIP_FILE" "$TEMP_DIR"

echo "Installation complete. Enjoy your new app!"
9 changes: 8 additions & 1 deletion custom-apps/eternal-jukebox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ It finds pathways through similar segments of the song and plays a never-ending
> The custom app is still in **beta**.
> See [known issues](#known-issues) and [upcoming features](#upcoming-features).
## Installation

## Auto Installation (Linux)
```
sh <(curl -s https://raw.githubusercontent.com/Pithaya/spicetify-apps/main/custom-apps/eternal-jukebox/src/install.sh)
```

## Manual Installation

1. Run `spicetify config-dir` to open the spicetify folder.
2. Go to the `CustomApps` folder.
Expand Down
33 changes: 33 additions & 0 deletions custom-apps/eternal-jukebox/src/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

# Define variables
CUSTOM_APPS_DIR="$HOME/.config/spicetify/CustomApps"
NAME="eternal-jukebox"

STATS_APP_DIR="$CUSTOM_APPS_DIR/$NAME"

ZIP_URL="https://github.com/Pithaya/spicetify-apps-dist/archive/refs/heads/dist/eternal-jukebox.zip"
ZIP_FILE="/tmp/spicetifyed.zip"
TEMP_DIR="/tmp/spicetifyed"

# Create CustomApps directory if it doesn't exist
mkdir -p "$CUSTOM_APPS_DIR"

# Download the zip file
curl -L -o "$ZIP_FILE" "$ZIP_URL"

# Unzip the file
unzip "$ZIP_FILE" -d "$TEMP_DIR"

# Move the unzipped folder to the correct location
mv "$TEMP_DIR"/* "$STATS_APP_DIR"

# Apply Spicetify configuration
spicetify config custom_apps "$NAME"

spicetify apply

# Clean up
rm -rf "$ZIP_FILE" "$TEMP_DIR"

echo "Installation complete. Enjoy your new app!"

0 comments on commit 3fb0db0

Please sign in to comment.