Comments (4)
What you can do is use your own release naming via cloning the repo and using this action file matrix
This are the lines that is naming renaming and uploading the release asset
https://github.com/userdocs/qbittorrent-nox-static/blob/master/.github/workflows/matrix_multi_build_and_release.yml#L92
https://github.com/userdocs/qbittorrent-nox-static/blob/master/.github/workflows/matrix_multi_build_and_release.yml#L98
from qbittorrent-nox-static.
Hi and i am glad you like it.
I currently use the naming convention defined by the supported multi arch build platform Which is Alpine Linux and you can see it here https://alpinelinux.org/downloads/
This is so that I don't have one scheme that I need to rename to just work with Alpine. I won't change that unless Alpine changes it's own naming schemes as it just makes the multibuild part very complex having to rename things just to work with their repository urls.
If you tell me what it is specifically you need I can maybe provide a switch based workaround?
I assume it is the naming of the output file itself?
x86_64-icu-qbittorrent-nox > amd64-icu-qbittorrent-nox
I cannot see how changing it internally would help buildx. So can you be specific about what you need?
from qbittorrent-nox-static.
yes, as you assume, it just the output name x86_64-icu-qbittorrent-nox > amd64-icu-qbittorrent-nox
So this is my dockerfile sample of ffmpeg-static
FROM registry.gitlab.com/dedyms/debian:latest
ARG DATE
ARG TARGETARCH
ARG BUILDPLATFORM
RUN echo "i am running on $BUILDPLATFORM, building for $TARGETARCH"
ENV FFMPEG_BUILD_DATE=$DATE
RUN apt update && apt install -y --no-install-recommends wget xz-utils && apt clean && rm -rf /var/lib/apt/lists*
USER $CONTAINERUSER
WORKDIR /home/$CONTAINERUSER
RUN wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-$TARGETARCH-static.tar.xz && \
tar -xf ffmpeg-git-$TARGETARCH-static.tar.xz && \
ls -alh && \
mv ffmpeg-git-$DATE-$TARGETARCH-static/ffmpeg .local/bin/ && \
mv ffmpeg-git-$DATE-$TARGETARCH-static/ffprobe .local/bin/ && \
rm -rf ffmpeg-git-$DATE-$TARGETARCH-static
So following the docker buildx command
docker buildx build --push --platform linux/arm64,linux/amd64 --build-arg DATE=$DATE -t "$CI_REGISTRY_IMAGE" -t "$CI_DOCKERHUB_REGISTRY_IMAGE" -t "$CI_REGISTRY_IMAGE:$DATE" -t "$CI_DOCKERHUB_REGISTRY_IMAGE:$DATE" . -f Dockerfile
The TARGETARCH
will result amd64
or arm64
based on platform, then it will download based on the name, ffmpeg-git-amd64-static.tar.xz
or ffmpeg-git-arm64-static.tar.xz
. That's my insight on this.
from qbittorrent-nox-static.
thanks for the suggestion, the reason i closed this because i found that Dockerfile can use if
condition based on TARGETARCH
to download respective binaries.
RUN if [ "${TARGETARCH}" = "amd64" ]; then \
wget https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-$QBVERSION\_v$LIBTORRENT/x86_64-qbittorrent-nox && \
mv ./x86_64-qbittorrent-nox /home/$CONTAINERUSER/.local/bin/qbittorrent-nox; \
fi;
RUN if [ "${TARGETARCH}" = "arm64" ]; then \
wget https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-$QBVERSION\_v$LIBTORRENT/aarch64-qbittorrent-nox && \
mv ./aarch64-qbittorrent-nox /home/$CONTAINERUSER/.local/bin/qbittorrent-nox; \
fi;
Again, thanks for the binary release it really helps.
from qbittorrent-nox-static.
Related Issues (20)
- Cross-compilation doesn't work on Ubuntu HOT 11
- Allow to use local cached repository to speed up build HOT 37
- support qBittorrent Enhanced Edition
- how to reduce binary file size HOT 18
- build questions HOT 1
- Script does not build the latest version of the application HOT 2
- Any plans on compiling the betas/RCs for us? v4.6.0RC2 would be nice. HOT 3
- How to disable logs in qbittorrent-nox? HOT 1
- Status bar not showing data HOT 2
- armv7: dso not found (engine routines) [asio.ssl:318767236] HOT 8
- qbittorrent 4.3.9 libtorrent 1.2.15 x86 HOT 2
- 4.6.1 has issue to parse password from stdout HOT 4
- Invalid username or password for 4.6.1
- aarch64 (arm64) not identified correctly, build fails HOT 2
- ability to dynamically link libc HOT 10
- [Bug]: qBittorrent-nox not downloading on termux anymore?
- Termux (android) : Bad System call HOT 1
- One or more of the provided modules are not supported HOT 1
- sqlite3.c:(.text.unixDlOpen+0x9): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used HOT 2
- Termux build HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qbittorrent-nox-static.