Add arm64 appimage build

This commit is contained in:
Lee Miller 2023-03-02 03:28:35 +02:00
parent 4e20421500
commit 385e3bb6ce
Signed by untrusted user: lee.miller
GPG Key ID: 4F97A5EA88F4AB63
2 changed files with 15 additions and 4 deletions

View File

@ -7,17 +7,18 @@ RUN apt-get install -yq --no-install-suggests --no-install-recommends \
build-essential libcap-dev libssl-dev \ build-essential libcap-dev libssl-dev \
python-all-dev python-setuptools wget \ python-all-dev python-setuptools wget \
git gtk-update-icon-cache \ git gtk-update-icon-cache \
binutils-multiarch crossbuild-essential-armhf binutils-multiarch crossbuild-essential-armhf crossbuild-essential-arm64
RUN dpkg --add-architecture armhf RUN dpkg --add-architecture armhf
RUN dpkg --add-architecture arm64
RUN sed -iE "s|deb |deb [arch=amd64] |g" /etc/apt/sources.list \ RUN sed -iE "s|deb |deb [arch=amd64] |g" /etc/apt/sources.list \
&& echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports/ bionic main universe" >> /etc/apt/sources.list \ && echo "deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports/ bionic main universe" >> /etc/apt/sources.list \
&& echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main universe" >> /etc/apt/sources.list && echo "deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main universe" >> /etc/apt/sources.list
RUN apt-get update | true RUN apt-get update | true
RUN apt-get install -yq libssl-dev:armhf RUN apt-get install -yq libssl-dev:armhf libssl-dev:arm64
RUN wget -qO appimage-builder-x86_64.AppImage \ RUN wget -qO appimage-builder-x86_64.AppImage \
https://github.com/AppImageCrafters/appimage-builder/releases/download/v1.1.0/appimage-builder-1.1.0-x86_64.AppImage https://github.com/AppImageCrafters/appimage-builder/releases/download/v1.1.0/appimage-builder-1.1.0-x86_64.AppImage

View File

@ -27,11 +27,21 @@ set_sourceline
./${BUILDER} --recipe ${RECIPE} || exit 1 ./${BUILDER} --recipe ${RECIPE} || exit 1
export ARCH=armhf export ARCH=armhf
export APPIMAGE_ARCH=${ARCH}
export RUNTIME=gnueabihf export RUNTIME=gnueabihf
export CC=arm-linux-gnueabihf-gcc export CC=arm-linux-gnueabihf-gcc
export CXX=${CC} export CXX=${CC}
set_sourceline set_sourceline
./${BUILDER} --recipe ${RECIPE} || exit 1
export ARCH=arm64
export APPIMAGE_ARCH=aarch64
export RUNTIME=${APPIMAGE_ARCH}
export CC=aarch64-linux-gnu-gcc
export CXX=${CC}
set_sourceline
./${BUILDER} --recipe ${RECIPE} ./${BUILDER} --recipe ${RECIPE}
mkdir -p ../out mkdir -p ../out