File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed
Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -14,36 +14,45 @@ function set_sourceline {
1414 fi
1515}
1616
17+ function build_appimage {
18+ set_sourceline
19+ ./${BUILDER} --recipe ${RECIPE} || exit 1
20+ rm -rf build
21+ }
22+
1723[ -f ${BUILDER} ] || wget -qO ${BUILDER} \
1824 https://github.com/AppImageCrafters/appimage-builder/releases/download/v1.1.0/appimage-builder-1.1.0-x86_64.AppImage \
1925 && chmod +x ${BUILDER}
2026
27+ chmod 1777 /tmp
2128
2229export ARCH=amd64
2330export APPIMAGE_ARCH=x86_64
2431export RUNTIME=${APPIMAGE_ARCH}
25- set_sourceline
2632
27- ./ ${BUILDER} --recipe ${RECIPE} || exit 1
33+ build_appimage
2834
2935export ARCH=armhf
3036export APPIMAGE_ARCH=${ARCH}
3137export RUNTIME=gnueabihf
3238export CC=arm-linux-gnueabihf-gcc
3339export CXX=${CC}
34- set_sourceline
3540
36- ./ ${BUILDER} --recipe ${RECIPE} || exit 1
41+ build_appimage
3742
3843export ARCH=arm64
3944export APPIMAGE_ARCH=aarch64
4045export RUNTIME=${APPIMAGE_ARCH}
4146export CC=aarch64-linux-gnu-gcc
4247export CXX=${CC}
43- set_sourceline
4448
45- ./ ${BUILDER} --recipe ${RECIPE}
49+ build_appimage
4650
47- mkdir -p ../out
48- sha256sum PyBitmessage* .AppImage > ../out/SHA256SUMS
51+ EXISTING_OWNER=$( stat -c %u ../out) || mkdir -p ../out
52+
53+ sha256sum PyBitmessage* .AppImage >> ../out/SHA256SUMS
4954cp PyBitmessage* .AppImage ../out
55+
56+ if [ ${EXISTING_OWNER} ]; then
57+ chown ${EXISTING_OWNER} ../out/PyBitmessage* .AppImage ../out/SHA256SUMS
58+ fi
You can’t perform that action at this time.
0 commit comments