Skip to content

Commit ffb05ab

Browse files
authored
Merge pull request #796 from FujiZ/transmission-transmission-web-control
build: change upstream to a maintained fork of transmission-web-control
2 parents 065c3b1 + c3851d3 commit ffb05ab

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/BuildImage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
echo "BASEIMAGE=${{ env.BASEIMAGE }}" >> $GITHUB_OUTPUT
2121
echo "MODNAME=${{ env.MODNAME }}" >> $GITHUB_OUTPUT
2222
# **** If the mod needs to be versioned, set the versioning logic below. Otherwise leave as is. ****
23-
MOD_VERSION=$(curl -s https://api.github.com/repos/ronggang/transmission-web-control/releases/latest | jq -rc ".tag_name")
23+
MOD_VERSION=$(curl -s https://api.github.com/repos/transmission-web-control/transmission-web-control/releases/latest | jq -rc ".tag_name")
2424
echo "MOD_VERSION=${MOD_VERSION}" >> $GITHUB_OUTPUT
2525
outputs:
2626
GITHUB_REPO: ${{ steps.outputs.outputs.GITHUB_REPO }}

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,16 @@ RUN \
88
echo "**** grab transmission-web-control ****" && \
99
mkdir -p /root-layer/themes && \
1010
if [ -z ${MOD_VERSION} ]; then \
11-
MOD_VERSION=$(curl -s "https://api.github.com/repos/ronggang/transmission-web-control/releases/latest" \
11+
MOD_VERSION=$(curl -s "https://api.github.com/repos/transmission-web-control/transmission-web-control/releases/latest" \
1212
| jq -rc ".tag_name"); \
1313
fi && \
1414
curl -o \
1515
/tmp/transmission-web-control.tar.gz -L \
16-
"https://github.com/ronggang/transmission-web-control/archive/refs/tags/${MOD_VERSION}.tar.gz" && \
16+
"https://github.com/transmission-web-control/transmission-web-control/releases/download/${MOD_VERSION}/dist.tar.gz" && \
1717
mkdir -p /root-layer/themes/transmission-web-control && \
1818
tar xzf \
1919
/tmp/transmission-web-control.tar.gz -C \
20-
/root-layer/themes/transmission-web-control \
21-
$(tar tf /tmp/transmission-web-control.tar.gz | grep -E "^[^/]+/src") --strip-components=2
20+
/root-layer/themes/transmission-web-control --strip-components=2
2221

2322
# copy local files
2423
COPY root/ /root-layer/

0 commit comments

Comments
 (0)