Commit 90543a3f authored by probal31's avatar probal31
Browse files

Install appimagetool based on architecture

parent a1e6933b
......@@ -34,14 +34,8 @@ RUN git clone https://github.com/giuliomoro/checkinstall /tmp/checkinstall && \
# checkinstall --pkgname applet-window-buttons-fix --pkgversion 1.0.0 -y --backup=no --nodoc
# Install appimage-builder and dependencies
RUN wget -qc https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-armhf.AppImage -O /opt/appimagetool && \
cd /opt/ && \
chmod +x appimagetool && \
sed -i 's|AI\x02|\x00\x00\x00|' appimagetool && \
./appimagetool --appimage-extract && \
mv /opt/squashfs-root /opt/appimagetool.AppDir && \
ln -s /opt/appimagetool.AppDir/AppRun /usr/local/bin/appimagetool && \
rm /opt/appimagetool
ADD install_appimage-builder.sh /
RUN /install_appimage-builder.sh
RUN pip3 install appimage-builder==0.7.0
......
#!/bin/bash
if [ $(uname -m) = 'x86_64' ]; then
wget -qc https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /opt/appimagetool;
elif [ $(uname -m) = 'aarch64' ]; then
wget -qc https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-aarch64.AppImage -O /opt/appimagetool;
elif [[ $(uname -m) = "armv7"* || $(uname -m) = "armhf" ]]; then
wget -qc https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-armhf.AppImage -O /opt/appimagetool;
fi
cd /opt/ && \
chmod +x appimagetool && \
sed -i 's|AI\x02|\x00\x00\x00|' appimagetool && \
./appimagetool --appimage-extract && \
mv /opt/squashfs-root /opt/appimagetool.AppDir && \
ln -s /opt/appimagetool.AppDir/AppRun /usr/local/bin/appimagetool && \
rm /opt/appimagetool
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment