build on ubuntu 18.04

This commit is contained in:
Cory Schwartz 2021-05-06 19:48:56 -07:00 committed by Łukasz Magiera
parent 56ce8fb293
commit 2cf3674089
2 changed files with 5 additions and 7 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
/AppDir
/appimage-builder-cache
*.AppImage
/lotus
/lotus-miner
/lotus-worker

View File

@ -337,13 +337,10 @@ api-gen:
.PHONY: api-gen
appimage: lotus
command -v appimage-builder || echo you must install appimage-builder && exit 1
command -v appimagetool || echo you must install appimagetool && exit 1
grep "Ubuntu 18.04" /etc/lsb-release || echo you are not running ubuntu 18.04, so this might not work. Try `appimage-builder --generate` if you run into problems.
rm -rf appimage-builder-cache
rm AppDir/io.filecoin.lotus.desktop
rm AppDir/icon.svg
rm Appdir/AppRun
rm -rf appimage-builder-cache || true
rm AppDir/io.filecoin.lotus.desktop || true
rm AppDir/icon.svg || true
rm Appdir/AppRun || true
mkdir -p AppDir/usr/bin
cp ./lotus AppDir/usr/bin/
appimage-builder