Skip to content

Commit

Permalink
change extra releases to use p tag and allow installing them using in…
Browse files Browse the repository at this point in the history
…stall.sh
  • Loading branch information
antheas committed Feb 6, 2024
1 parent 4025752 commit afd3658
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ permissions:
on:
workflow_dispatch:
push:
branches:
- "main"
tags:
- "v*.*.*"
- "p*.*.*"

jobs:
build_plugin:
Expand Down
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# does the following:
# - hhd Decky Plugin
VERSION=${PIN_VERSION:-"LATEST"}
VERSION=${VERSION_TAG:-"LATEST"}
if [ "$EUID" -eq 0 ]
then echo "Please do not run as root"
exit
Expand All @@ -18,7 +18,7 @@ echo "installing hhd plugin"

FINAL_URL='https://api.github.com/repos/hhd-dev/hhd-decky/releases/latest'
if [ $VERSION != "LATEST" ] ; then
FINAL_URL="https://api.github.com/repos/hhd-dev/hhd-decky/releases/tags/v${VERSION}"
FINAL_URL="https://api.github.com/repos/hhd-dev/hhd-decky/releases/tags/${VERSION}"
fi

curl -L $(curl -s "${FINAL_URL}" | grep "browser_download_url" | cut -d '"' -f 4) -o $HOME/hhd-decky.tar.gz
Expand Down

0 comments on commit afd3658

Please sign in to comment.