Skip to content

Commit

Permalink
ci(experimental-build): set APPIMAGE_EXTRACT_AND_RUN env var to make …
Browse files Browse the repository at this point in the history
…sure appimages can be built in the container
  • Loading branch information
Im-Beast committed Sep 13, 2024
1 parent af1b855 commit 850bf88
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.DS_Store

lib/
bin/
build/
Expand Down
3 changes: 3 additions & 0 deletions ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ WORKDIR /source
# Specify that its a noninteractive environment so all packages install smoothly
ARG DEBIAN_FRONTEND=noninteractive

# Make sure AppImages can build in the docker
ENV APPIMAGE_EXTRACT_AND_RUN=1

# Install dependencies
RUN apt update
RUN apt install -y tree build-essential pkg-config autoconf libtool ccache make cmake \
Expand Down
3 changes: 1 addition & 2 deletions ci/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@ for (const [arch, monerocTarget, denoTarget] of triplets) {
break;
}

await $.raw`echo "$PWD"`;
await $.raw`docker run \
-e ARCH=${arch} \
-e BIN_NAME=${binaryName} \
-v "$PWD":/source \
-v "$PWD":/source:rw \
--platform "${platform}" \
imbeast/monero-tui-ci:latest`;
}
Expand Down
5 changes: 3 additions & 2 deletions ci/build_appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
# ARCH = x86_64

pushd appimage
wget https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-$ARCH.AppImage -O appimagetool.AppImage
chmod +x appimagetool.AppImage

pushd monero-tui.AppDir
mkdir -p ./usr/bin
mkdir -p ./usr/lib
popd

wget https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-$ARCH.AppImage -O appimagetool.AppImage
chmod +x appimagetool.AppImage

cp ../bin/$BIN_NAME ./monero-tui.AppDir/usr/bin/monero-tui
cp ../lib/* ./monero-tui.AppDir/usr/lib/

Expand Down

0 comments on commit 850bf88

Please sign in to comment.