Skip to content

Commit

Permalink
change tmux script, adjust version checker
Browse files Browse the repository at this point in the history
  • Loading branch information
phyzical committed Aug 29, 2024
1 parent 6ea6596 commit 3ab4a55
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@swapnilsoni1999/spotify-dl",
"productName": "Spotify Downloader",
"version": "1.2.6",
"version": "1.2.7",
"description": "Spotify Songs, Playlist & Album Downloader",
"main": "app.js",
"bin": {
Expand Down
6 changes: 3 additions & 3 deletions tools/termux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
echo "[ spotifydl ] Installing required packages..."

# Install packages
pkg install -y nodejs ffmpeg
pkg install -y nodejs ffmpeg git

# Get spotify-dl from npmjs
echo "[ spotifydl ] Installing spotify-dl"
npm install -g spotify-dl
npm install -g https://github.com/swapnilsoni1999/spotify-dl

# Setup app sharing script
echo "[ spotifydl ] Setting up scripts..."
Expand All @@ -16,7 +16,7 @@ if [ ! -d "$HOME/bin" ]; then
mkdir "$HOME/bin"
fi

curl https://gist.githubusercontent.com/SwapnilSoni1999/e163a8c380e1cdfa65cecbf71972a579/raw/c270edd7634a88f710a735f4a5ac4cb93ad50b11/termux-url-opener-spotifydl > "$HOME/bin/termux-url-opener"
curl https://gist.githubusercontent.com/SwapnilSoni1999/e163a8c380e1cdfa65cecbf71972a579/raw/c270edd7634a88f710a735f4a5ac4cb93ad50b11/termux-url-opener-spotifydl >"$HOME/bin/termux-url-opener"

echo "[ spotifydl ] Setting up storage..."
termux-setup-storage
Expand Down
8 changes: 4 additions & 4 deletions util/version-checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const checkVersion = async () => {
);
const latestVersion = res.data[0].name;
const pkg = meow('', { importMeta: import.meta }).pkg;
if (pkg.version !== latestVersion) {

if (pkg.version < latestVersion) {
console.log(
[
'\n========Update Available========',
Expand All @@ -20,8 +20,8 @@ const checkVersion = async () => {
);
}
} catch (_e) {
console.log("Could not check current version, have checked too many times skipping");
return;
console.log("Could not check current version, have checked too many times skipping");
return;
}
};

Expand Down

0 comments on commit 3ab4a55

Please sign in to comment.