-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6208 from filecoin-project/feat/appimage
Generate AppImage
- Loading branch information
Showing
16 changed files
with
169 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
/AppDir | ||
/appimage-builder-cache | ||
*.AppImage | ||
/lotus | ||
/lotus-miner | ||
/lotus-worker | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: current | ||
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
package build | ||
|
||
import ( | ||
rice "github.com/GeertJohan/go.rice" | ||
"embed" | ||
"path" | ||
|
||
logging "github.com/ipfs/go-log/v2" | ||
) | ||
|
||
// moved from now-defunct build/paramfetch.go | ||
var log = logging.Logger("build") | ||
|
||
//go:embed genesis | ||
var genesisfs embed.FS | ||
|
||
func MaybeGenesis() []byte { | ||
builtinGen, err := rice.FindBox("genesis") | ||
genBytes, err := genesisfs.ReadFile(path.Join("genesis", GenesisFile)) | ||
if err != nil { | ||
log.Warnf("loading built-in genesis: %s", err) | ||
return nil | ||
} | ||
genBytes, err := builtinGen.Bytes(GenesisFile) | ||
if err != nil { | ||
log.Warnf("loading built-in genesis: %s", err) | ||
} | ||
|
||
return genBytes | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
package build | ||
|
||
import rice "github.com/GeertJohan/go.rice" | ||
import ( | ||
_ "embed" | ||
) | ||
|
||
//go:embed proof-params/parameters.json | ||
var params []byte | ||
|
||
func ParametersJSON() []byte { | ||
return rice.MustFindBox("proof-params").MustBytes("parameters.json") | ||
return params | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.