diff --git a/.gitignore b/.gitignore index e34ebb935..1838a44f3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +/AppDir +/appimage-builder-cache /lotus /lotus-miner /lotus-worker diff --git a/AppDir/usr/share/icons/icon.svg b/AppDir/usr/share/icons/icon.svg new file mode 100644 index 000000000..da992296a --- /dev/null +++ b/AppDir/usr/share/icons/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/AppImageBuilder.yml b/AppImageBuilder.yml new file mode 100644 index 000000000..5d0083eef --- /dev/null +++ b/AppImageBuilder.yml @@ -0,0 +1,65 @@ +# appimage-builder recipe see https://appimage-builder.readthedocs.io for details +version: 1 +AppDir: + path: ./AppDir + app_info: + id: io.filecoin.lotus + name: Lotus + icon: icon + version: v1.8.0 + exec: usr/bin/lotus + exec_args: $@ + apt: + arch: amd64 + allow_unauthenticated: true + sources: + - sourceline: deb http://us.archive.ubuntu.com/ubuntu bionic main restricted + - sourceline: deb http://us.archive.ubuntu.com/ubuntu bionic-updates main restricted + - sourceline: deb http://us.archive.ubuntu.com/ubuntu bionic universe + - sourceline: deb http://us.archive.ubuntu.com/ubuntu bionic-updates universe + - sourceline: deb http://us.archive.ubuntu.com/ubuntu bionic multiverse + - sourceline: deb http://us.archive.ubuntu.com/ubuntu bionic-updates multiverse + - sourceline: deb http://us.archive.ubuntu.com/ubuntu bionic-backports main restricted + universe multiverse + - sourceline: deb http://security.ubuntu.com/ubuntu bionic-security main restricted + - sourceline: deb http://security.ubuntu.com/ubuntu bionic-security universe + - sourceline: deb http://security.ubuntu.com/ubuntu bionic-security multiverse + include: + - libgcc1 + - libhwloc5 + - ocl-icd-libopencl1 + exclude: [] + files: + include: [] + exclude: + - usr/share/man + - usr/share/doc/*/README.* + - usr/share/doc/*/changelog.* + - usr/share/doc/*/NEWS.* + - usr/share/doc/*/TODO.* + test: + fedora: + image: appimagecrafters/tests-env:fedora-30 + command: ./AppRun + use_host_x: true + debian: + image: appimagecrafters/tests-env:debian-stable + command: ./AppRun + use_host_x: true + arch: + image: appimagecrafters/tests-env:archlinux-latest + command: ./AppRun + use_host_x: true + centos: + image: appimagecrafters/tests-env:centos-7 + command: ./AppRun + use_host_x: true + ubuntu: + image: appimagecrafters/tests-env:ubuntu-xenial + command: ./AppRun + use_host_x: true +AppImage: + arch: x86_64 + update-information: guess + sign-key: None + diff --git a/Makefile b/Makefile index b0cf27f99..072d6cbfd 100644 --- a/Makefile +++ b/Makefile @@ -336,6 +336,18 @@ api-gen: goimports -w api .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 + mkdir -p AppDir/usr/bin + cp ./lotus AppDir/usr/bin/ + appimage-builder + docsgen: docsgen-md docsgen-openrpc docsgen-md-bin: api-gen actors-gen