Skip to content

Commit

Permalink
Merge pull request #196 from nyanmisaka/win-rev
Browse files Browse the repository at this point in the history
Do not hardcode pkg version for windows build
  • Loading branch information
nyanmisaka authored Oct 28, 2022
2 parents b686e07 + fb7f557 commit a7ee174
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion Dockerfile.win64.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ ARG ARTIFACT_DIR=/dist
ENV DEBIAN_FRONTEND=noninteractive \
SOURCE_DIR=/ffmpeg \
ARTIFACT_DIR=/dist \
FF_REV=FFMPEG_REV \
FF_PREFIX=/opt/ffmpeg \
FF_DEPS_PREFIX=/opt/ffdeps \
FF_TOOLCHAIN=x86_64-w64-mingw32 \
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile.win64.make
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/usr/bin/make
DISTRO=ubuntu:hirsute
FF_REV=1
.PHONY: Dockerfile
Dockerfile: Dockerfile.win64.in
sed 's/DISTRO/$(DISTRO)/; s/FFMPEG_REV/$(FF_REV)/' $< > $@ || rm -f $@
sed 's/DISTRO/$(DISTRO)/' $< > $@ || rm -f $@
clean:
rm -f Dockerfile
3 changes: 1 addition & 2 deletions build-win64
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ done

# Use the latest distro for toolchains
distro="ubuntu:kinetic"
ffrevison="3"
image_name="jellyfin-ffmpeg-build-windows-win64"
package_temporary_dir="$( mktemp -d )"
current_user="$( whoami )"
Expand All @@ -25,7 +24,7 @@ cleanup() {
trap cleanup EXIT INT

# Generate Dockerfile
make -f Dockerfile.win64.make DISTRO=${distro} FF_REV=${ffrevison}
make -f Dockerfile.win64.make DISTRO=${distro}
# Set up the build environment docker image
docker build . -t "${image_name}"
# Build the APKs and copy out to ${package_temporary_dir}
Expand Down
2 changes: 1 addition & 1 deletion docker-build-win64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ popd

# Jellyfin-FFmpeg
pushd ${SOURCE_DIR}
ffversion="$(cat RELEASE)-${FF_REV}"
ffversion="$(dpkg-parsechangelog --show-field Version)"
if [[ -f "patches/series" ]]; then
quilt push -a
fi
Expand Down

0 comments on commit a7ee174

Please sign in to comment.