Update 'mkimg.sh'
This commit is contained in:
parent
6e2bf8b6cc
commit
87e5d5d010
20
mkimg.sh
20
mkimg.sh
@ -4,6 +4,9 @@ set -e
|
|||||||
set -x
|
set -x
|
||||||
# modprobe fuse
|
# modprobe fuse
|
||||||
arch=$1
|
arch=$1
|
||||||
|
[ -z $arch ] && arch=amd64
|
||||||
|
tag=$2
|
||||||
|
[ -z $tag ] && tag=latest
|
||||||
# download the appimagetools
|
# download the appimagetools
|
||||||
echo "Downloading the appimage tools"
|
echo "Downloading the appimage tools"
|
||||||
archname=x86_64
|
archname=x86_64
|
||||||
@ -22,21 +25,16 @@ case $arch in
|
|||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
[ -f appimagetool.AppImage ] || wget --no-check-certificate -O appimagetool.AppImage https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
|
||||||
wget --no-check-certificate -O appimagetool.AppImage https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-$archname.AppImage
|
|
||||||
chmod +x appimagetool.AppImage
|
chmod +x appimagetool.AppImage
|
||||||
|
|
||||||
file appimagetool.AppImage
|
wget --no-check-certificate https://github.com/AppImage/AppImageKit/releases/download/continuous/runtime-$archname
|
||||||
|
|
||||||
|
|
||||||
W="/var/jenkins_home/workspace/nightly-antosaio/build/"
|
W="/var/jenkins_home/workspace/nightly-antosaio/build/"
|
||||||
|
|
||||||
[ -d antos.AppDir ] && rm -rf antos.AppDir
|
[ -d antos.AppDir ] && rm -rf antos.AppDir
|
||||||
|
|
||||||
|
|
||||||
[ -z $arch ] && arch=amd64
|
|
||||||
tag=$2
|
|
||||||
[ -z $tag ] && tag=latest
|
|
||||||
|
|
||||||
echo "Building app image for $arch"
|
echo "Building app image for $arch"
|
||||||
|
|
||||||
mkdir antos.AppDir
|
mkdir antos.AppDir
|
||||||
@ -85,8 +83,4 @@ ln -sf /tmp/.antos_pkgcache antos.AppDir/opt/www/htdocs/os/packages/packages.jso
|
|||||||
|
|
||||||
tree antos.AppDir
|
tree antos.AppDir
|
||||||
|
|
||||||
./appimagetool.AppImage --appimage-extract
|
./appimagetool.AppImage --runtime-file runtime-$archname antos.AppDir build/AntOS_$archname-$tag.AppImage
|
||||||
./squashfs-root/AppRun antos.AppDir build/AntOS_$archname-$tag.AppImage
|
|
||||||
# clean up
|
|
||||||
rm -rf squashfs-root
|
|
||||||
rm appimagetool.AppImage
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user