Skip to content

Commit

Permalink
build: change upstream to a maintained fork of transmission-web-control
Browse files Browse the repository at this point in the history
Currently the original project is not under active development, so we
change the upstream to a maintained fork of it.
  • Loading branch information
FujiZ committed Dec 9, 2023
1 parent 065c3b1 commit c3851d3
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 c3851d3

Please sign in to comment.