Skip to content

Commit

Permalink
Put LD_LIBRARY_PATH on the Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpl0itU committed Jan 20, 2024
1 parent e6713ef commit 608a32c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Deploy WiiUDownloader
run: |
mv main WiiUDownloader
docker run --privileged --rm -e LD_LIBRARY_PATH=$LD_LIBRARY_PATH:pkg/aria2go/aria2-lib/lib DEPLOY_GTK_VERSION=3 -e OUTPUT="WiiUDownloader-Linux-x86_64.AppImage" -e UPDATE_INFORMATION="gh-releases-zsync|Xpl0itU|WiiUDownloader|latest|WiiUDownloader-*.AppImage.zsync" -v ${PWD}:/project builder linuxdeploy.AppImage --plugin gtk --plugin checkrt --output=appimage --create-desktop-file --executable=WiiUDownloader --appdir dist --icon-file data/WiiUDownloader.png
docker run --privileged --rm -e DEPLOY_GTK_VERSION=3 -e OUTPUT="WiiUDownloader-Linux-x86_64.AppImage" -e UPDATE_INFORMATION="gh-releases-zsync|Xpl0itU|WiiUDownloader|latest|WiiUDownloader-*.AppImage.zsync" -v ${PWD}:/project builder linuxdeploy.AppImage --plugin gtk --plugin checkrt --output=appimage --create-desktop-file --executable=WiiUDownloader --appdir dist --icon-file data/WiiUDownloader.png
- name: Upload Linux Artifact
uses: ncipollo/release-action@v1
with:
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.linux
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive \
PATH="$HOME/go/bin:/usr/local/go/bin:$PATH"
PATH="$HOME/go/bin:/usr/local/go/bin:$PATH" \
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:pkg/aria2go/aria2-lib/lib"

RUN mkdir -p /usr/share/man/man1 /usr/share/man/man2 && \
apt -y --no-install-recommends update && \
Expand Down
1 change: 0 additions & 1 deletion pkg/aria2go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ go 1.12

require (
github.com/benesch/cgosymbolizer v0.0.0-20190515212042-bec6fe6e597b // indirect
github.com/ianlancetaylor/cgosymbolizer v0.0.0-20231130194700-cfcb2fd150eb // indirect
)
2 changes: 0 additions & 2 deletions pkg/aria2go/go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
github.com/benesch/cgosymbolizer v0.0.0-20190515212042-bec6fe6e597b h1:5JgaFtHFRnOPReItxvhMDXbvuBkjSWE+9glJyF466yw=
github.com/benesch/cgosymbolizer v0.0.0-20190515212042-bec6fe6e597b/go.mod h1:eMD2XUcPsHYbakFEocKrWZp47G0MRJYoC60qFblGjpA=
github.com/ianlancetaylor/cgosymbolizer v0.0.0-20231130194700-cfcb2fd150eb h1:asfjGoPvNgSPvgbBiwFqMUOgWgid8xlQGCGHfgM/PAs=
github.com/ianlancetaylor/cgosymbolizer v0.0.0-20231130194700-cfcb2fd150eb/go.mod h1:DvXTE/K/RtHehxU8/GtDs4vFtfw64jJ3PaCnFri8CRg=

0 comments on commit 608a32c

Please sign in to comment.