Skip to content

Commit

Permalink
Merge pull request #796 from FujiZ/transmission-transmission-web-control
Browse files Browse the repository at this point in the history
build: change upstream to a maintained fork of transmission-web-control
  • Loading branch information
thespad authored Dec 21, 2023
2 parents 065c3b1 + c3851d3 commit ffb05ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/BuildImage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
echo "BASEIMAGE=${{ env.BASEIMAGE }}" >> $GITHUB_OUTPUT
echo "MODNAME=${{ env.MODNAME }}" >> $GITHUB_OUTPUT
# **** If the mod needs to be versioned, set the versioning logic below. Otherwise leave as is. ****
MOD_VERSION=$(curl -s https://api.github.com/repos/ronggang/transmission-web-control/releases/latest | jq -rc ".tag_name")
MOD_VERSION=$(curl -s https://api.github.com/repos/transmission-web-control/transmission-web-control/releases/latest | jq -rc ".tag_name")
echo "MOD_VERSION=${MOD_VERSION}" >> $GITHUB_OUTPUT
outputs:
GITHUB_REPO: ${{ steps.outputs.outputs.GITHUB_REPO }}
Expand Down
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@ RUN \
echo "**** grab transmission-web-control ****" && \
mkdir -p /root-layer/themes && \
if [ -z ${MOD_VERSION} ]; then \
MOD_VERSION=$(curl -s "https://api.github.com/repos/ronggang/transmission-web-control/releases/latest" \
MOD_VERSION=$(curl -s "https://api.github.com/repos/transmission-web-control/transmission-web-control/releases/latest" \
| jq -rc ".tag_name"); \
fi && \
curl -o \
/tmp/transmission-web-control.tar.gz -L \
"https://github.com/ronggang/transmission-web-control/archive/refs/tags/${MOD_VERSION}.tar.gz" && \
"https://github.com/transmission-web-control/transmission-web-control/releases/download/${MOD_VERSION}/dist.tar.gz" && \
mkdir -p /root-layer/themes/transmission-web-control && \
tar xzf \
/tmp/transmission-web-control.tar.gz -C \
/root-layer/themes/transmission-web-control \
$(tar tf /tmp/transmission-web-control.tar.gz | grep -E "^[^/]+/src") --strip-components=2
/root-layer/themes/transmission-web-control --strip-components=2

# copy local files
COPY root/ /root-layer/
Expand Down

0 comments on commit ffb05ab

Please sign in to comment.