forked from wowlet/wowlet
parent
c2b5a13f59
commit
177773eb66
@ -1,18 +0,0 @@
|
|||||||
FROM ubuntu:20.04
|
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
RUN apt clean && apt update
|
|
||||||
RUN apt install -y golang git build-essential wget curl ngrep unzip file squashfs-tools desktop-file-utils patchelf libxkbcommon-x11-dev libx11-xcb-dev libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render0 libxcb-render-util0 libxcb-shape0 libxcb-sync1 libxcb-xfixes0 libxcb-shm0 libxcb-keysyms1 libxcb-xkb1
|
|
||||||
|
|
||||||
RUN go get github.com/probonopd/go-appimage/src/appimagetool
|
|
||||||
RUN go build -trimpath -ldflags="-s -w" github.com/probonopd/go-appimage/src/appimagetool
|
|
||||||
RUN chmod +x appimagetool
|
|
||||||
|
|
||||||
RUN cd /usr/bin && \
|
|
||||||
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh -O uploadtool && \
|
|
||||||
chmod +x uploadtool
|
|
||||||
|
|
||||||
RUN cd / && \
|
|
||||||
wget -c https://github.com/AppImage/AppImageKit/releases/download/continuous/runtime-x86_64 && \
|
|
||||||
chmod +x runtime-x86_64
|
|
@ -1,18 +1,32 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
unset SOURCE_DATE_EPOCH
|
||||||
|
|
||||||
APPDIR="$PWD/feather.AppDir"
|
APPDIR="$PWD/feather.AppDir"
|
||||||
mkdir -p "$APPDIR"
|
mkdir -p "$APPDIR"
|
||||||
mkdir -p "$APPDIR/usr/share/applications/"
|
mkdir -p "$APPDIR/usr/share/applications/"
|
||||||
mkdir -p "$APPDIR/usr/bin"
|
mkdir -p "$APPDIR/usr/bin"
|
||||||
|
|
||||||
unzip -q feather.zip
|
|
||||||
|
|
||||||
cp "$PWD/src/assets/feather.desktop" "$APPDIR/usr/share/applications/feather.desktop"
|
cp "$PWD/src/assets/feather.desktop" "$APPDIR/usr/share/applications/feather.desktop"
|
||||||
cp "$PWD/src/assets/images/appicons/64x64.png" "$APPDIR/feather.png"
|
cp "$PWD/src/assets/images/appicons/64x64.png" "$APPDIR/feather.png"
|
||||||
cp "$PWD/feather" "$APPDIR/usr/bin/feather"
|
cp "$PWD/build/bin/feather" "$APPDIR/usr/bin/feather"
|
||||||
|
|
||||||
|
LD_LIBRARY_PATH=/usr/local/lib /linuxdeployqt/squashfs-root/AppRun feather.AppDir/usr/share/applications/feather.desktop -bundle-non-qt-libs
|
||||||
|
|
||||||
|
find feather.AppDir/ -exec touch -h -a -m -t 202101010100.00 {} \;
|
||||||
|
|
||||||
|
# Manually create AppImage (reproducibly)
|
||||||
|
|
||||||
|
# download runtime
|
||||||
|
wget -nc https://github.com/AppImage/AppImageKit/releases/download/12/runtime-x86_64
|
||||||
|
echo "24da8e0e149b7211cbfb00a545189a1101cb18d1f27d4cfc1895837d2c30bc30 runtime-x86_64" | sha256sum -c
|
||||||
|
|
||||||
/appimagetool deploy "$APPDIR/usr/share/applications/feather.desktop"
|
mksquashfs feather.AppDir feather.squashfs -info -root-owned -no-xattrs -noappend -fstime 0
|
||||||
VERSION=1.0 /appimagetool ./feather.AppDir
|
# mksquashfs writes a timestamp to the header
|
||||||
|
printf '\x00\x00\x00\x00' | dd conv=notrunc of=feather.squashfs bs=1 seek=$((0x8))
|
||||||
|
|
||||||
|
rm -f feather.AppImage
|
||||||
|
cat runtime-x86_64 >> feather.AppImage
|
||||||
|
cat feather.squashfs >> feather.AppImage
|
||||||
|
chmod a+x feather.AppImage
|
||||||
|
Loading…
Reference in new issue