include appimage on release
This commit is contained in:
parent
f296385141
commit
9d3410d374
@ -428,6 +428,41 @@ jobs:
|
|||||||
- "~/.rustup"
|
- "~/.rustup"
|
||||||
- "~/.cargo"
|
- "~/.cargo"
|
||||||
|
|
||||||
|
build-appimage:
|
||||||
|
machine:
|
||||||
|
image: ubuntu-2004:202104-01
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- attach_workspace:
|
||||||
|
at: "."
|
||||||
|
- run:
|
||||||
|
name: install appimage-builder
|
||||||
|
command: |
|
||||||
|
# docs: https://appimage-builder.readthedocs.io/en/latest/intro/install.html
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y python3-pip python3-setuptools patchelf desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace
|
||||||
|
sudo curl -Lo /usr/local/bin/appimagetool https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
|
||||||
|
sudo chmod +x /usr/local/bin/appimagetool
|
||||||
|
sudo pip3 install appimage-builder
|
||||||
|
- run:
|
||||||
|
name: install lotus dependencies
|
||||||
|
command: sudo apt install ocl-icd-opencl-dev libhwloc-dev
|
||||||
|
- run:
|
||||||
|
name: build appimage
|
||||||
|
command: |
|
||||||
|
sed -i "s/version: latest/version: ${CIRCLE_TAG:-latest}/" AppImageBuilder.yml
|
||||||
|
make appimage
|
||||||
|
- run:
|
||||||
|
name: prepare workspace
|
||||||
|
command: |
|
||||||
|
mkdir appimage
|
||||||
|
mv Lotus-latest-x86_64.AppImage appimage
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: "."
|
||||||
|
paths:
|
||||||
|
- appimage
|
||||||
|
|
||||||
|
|
||||||
gofmt:
|
gofmt:
|
||||||
executor: golang
|
executor: golang
|
||||||
steps:
|
steps:
|
||||||
@ -767,8 +802,8 @@ workflows:
|
|||||||
- master
|
- master
|
||||||
- build-debug
|
- build-debug
|
||||||
- build-all:
|
- build-all:
|
||||||
requires:
|
# requires:
|
||||||
- test-short
|
# - test-short
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
only:
|
only:
|
||||||
@ -805,10 +840,21 @@ workflows:
|
|||||||
tags:
|
tags:
|
||||||
only:
|
only:
|
||||||
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
|
- build-appimage:
|
||||||
|
requires:
|
||||||
|
- test-short
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
ignore:
|
||||||
|
- /.*/
|
||||||
|
tags:
|
||||||
|
only:
|
||||||
|
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
- publish:
|
- publish:
|
||||||
requires:
|
requires:
|
||||||
- build-all
|
- build-all
|
||||||
- build-macos
|
- build-macos
|
||||||
|
- build-appimage
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
ignore:
|
ignore:
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
# appimage-builder recipe see https://appimage-builder.readthedocs.io for details
|
|
||||||
version: 1
|
version: 1
|
||||||
AppDir:
|
AppDir:
|
||||||
path: ./AppDir
|
path: ./AppDir
|
||||||
@ -6,31 +5,40 @@ AppDir:
|
|||||||
id: io.filecoin.lotus
|
id: io.filecoin.lotus
|
||||||
name: Lotus
|
name: Lotus
|
||||||
icon: icon
|
icon: icon
|
||||||
version: current
|
version: latest
|
||||||
exec: usr/bin/lotus
|
exec: usr/bin/lotus
|
||||||
exec_args: $@
|
exec_args: $@
|
||||||
apt:
|
apt:
|
||||||
arch: amd64
|
arch: amd64
|
||||||
allow_unauthenticated: true
|
allow_unauthenticated: true
|
||||||
sources:
|
sources:
|
||||||
- sourceline: deb http://us.archive.ubuntu.com/ubuntu bionic main restricted
|
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal main restricted
|
||||||
- sourceline: deb http://us.archive.ubuntu.com/ubuntu bionic-updates main restricted
|
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted
|
||||||
- sourceline: deb http://us.archive.ubuntu.com/ubuntu bionic universe
|
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal universe
|
||||||
- sourceline: deb http://us.archive.ubuntu.com/ubuntu bionic-updates universe
|
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-updates universe
|
||||||
- sourceline: deb http://us.archive.ubuntu.com/ubuntu bionic multiverse
|
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal multiverse
|
||||||
- sourceline: deb http://us.archive.ubuntu.com/ubuntu bionic-updates multiverse
|
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-updates multiverse
|
||||||
- sourceline: deb http://us.archive.ubuntu.com/ubuntu bionic-backports main restricted
|
- sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted
|
||||||
universe multiverse
|
universe multiverse
|
||||||
- sourceline: deb http://security.ubuntu.com/ubuntu bionic-security main restricted
|
- sourceline: deb http://security.ubuntu.com/ubuntu focal-security main restricted
|
||||||
- sourceline: deb http://security.ubuntu.com/ubuntu bionic-security universe
|
- sourceline: deb http://security.ubuntu.com/ubuntu focal-security universe
|
||||||
- sourceline: deb http://security.ubuntu.com/ubuntu bionic-security multiverse
|
- sourceline: deb http://security.ubuntu.com/ubuntu focal-security multiverse
|
||||||
|
- sourceline: deb https://cli-assets.heroku.com/apt ./
|
||||||
|
- sourceline: deb http://ppa.launchpad.net/openjdk-r/ppa/ubuntu focal main
|
||||||
|
- sourceline: deb http://ppa.launchpad.net/git-core/ppa/ubuntu focal main
|
||||||
|
- sourceline: deb http://archive.canonical.com/ubuntu focal partner
|
||||||
include:
|
include:
|
||||||
- libgcc1
|
|
||||||
- libhwloc5
|
|
||||||
- ocl-icd-libopencl1
|
- ocl-icd-libopencl1
|
||||||
|
- libhwloc15
|
||||||
exclude: []
|
exclude: []
|
||||||
files:
|
files:
|
||||||
include: []
|
include:
|
||||||
|
- /usr/lib/x86_64-linux-gnu/libgcc_s.so.1
|
||||||
|
- /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
|
||||||
|
- /usr/lib/x86_64-linux-gnu/libm-2.31.so
|
||||||
|
- /usr/lib/x86_64-linux-gnu/libdl-2.31.so
|
||||||
|
- /usr/lib/x86_64-linux-gnu/libc-2.31.so
|
||||||
|
- /usr/lib/x86_64-linux-gnu/libudev.so.1.6.17
|
||||||
exclude:
|
exclude:
|
||||||
- usr/share/man
|
- usr/share/man
|
||||||
- usr/share/doc/*/README.*
|
- usr/share/doc/*/README.*
|
||||||
|
@ -49,4 +49,7 @@ do
|
|||||||
|
|
||||||
ipfs add -q "lotus_${CIRCLE_TAG}_${ARCH}-amd64.tar.gz" > "lotus_${CIRCLE_TAG}_${ARCH}-amd64.tar.gz.cid"
|
ipfs add -q "lotus_${CIRCLE_TAG}_${ARCH}-amd64.tar.gz" > "lotus_${CIRCLE_TAG}_${ARCH}-amd64.tar.gz.cid"
|
||||||
done
|
done
|
||||||
|
cp "../appimage/Lotus-${CIRCLE_TAG}-x86_64.AppImage" .
|
||||||
|
sha512sum "Lotus-${CIRCLE_TAG}-x86_64.AppImage" > "Lotus-${CIRCLE_TAG}-x86_64.AppImage.sha512"
|
||||||
|
ipfs add -q "Lotus-${CIRCLE_TAG}-x86_64.AppImage" > "Lotus-${CIRCLE_TAG}-x86_64.AppImage.cid"
|
||||||
popd
|
popd
|
||||||
|
@ -68,6 +68,9 @@ artifacts=(
|
|||||||
"lotus_${CIRCLE_TAG}_darwin-amd64.tar.gz"
|
"lotus_${CIRCLE_TAG}_darwin-amd64.tar.gz"
|
||||||
"lotus_${CIRCLE_TAG}_darwin-amd64.tar.gz.cid"
|
"lotus_${CIRCLE_TAG}_darwin-amd64.tar.gz.cid"
|
||||||
"lotus_${CIRCLE_TAG}_darwin-amd64.tar.gz.sha512"
|
"lotus_${CIRCLE_TAG}_darwin-amd64.tar.gz.sha512"
|
||||||
|
"Lotus-${CIRCLE_TAG}-x86_64.AppImage"
|
||||||
|
"Lotus-${CIRCLE_TAG}-x86_64.AppImage.cid"
|
||||||
|
"Lotus-${CIRCLE_TAG}-x86_64.AppImage.sha512"
|
||||||
)
|
)
|
||||||
|
|
||||||
for RELEASE_FILE in "${artifacts[@]}"
|
for RELEASE_FILE in "${artifacts[@]}"
|
||||||
|
Loading…
Reference in New Issue
Block a user