You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cointop/.flathub/com.github.miguelmota.Coint...

69 lines
2.4 KiB
JSON

{
"app-id": "com.github.miguelmota.Cointop",
"runtime": "org.freedesktop.Platform",
"runtime-version": "19.08",
"sdk": "org.freedesktop.Sdk",
"sdk-extensions": [
"org.freedesktop.Sdk.Extension.golang"
],
"command": "cointop",
"finish-args": [
"--share=network"
],
"cleanup": [
"/go",
"/bin/scripts"
],
"modules": [
{
"name": "scripts",
"sources": [
{
"type": "script",
"commands": [
". /usr/lib/sdk/golang/enable.sh; export GOPATH=/app/go"
],
"dest-filename": "my_enable.sh"
},
{
"type": "script",
"commands": [
". /app/bin/scripts/my_enable.sh; cd /app/go/src/$1; GO111MODULE=off go build -o x"
],
"dest-filename": "build.sh"
}
],
"buildsystem": "simple",
"build-commands": [
"mkdir -p /app/go/{src,pkg,bin}",
"install -d /app/bin/scripts",
"cp *.sh /app/bin/scripts/"
]
},
{
"name": "cointop",
"buildsystem": "simple",
"build-commands": [
"cp -rpv go/* /app/go/",
"/app/bin/scripts/build.sh github.com/miguelmota/cointop",
"install -D /app/go/src/github.com/miguelmota/cointop/x /app/bin/cointop",
"mkdir -p /app/share/icons/hicolor/64x64/apps",
"mkdir -p /app/share/icons/hicolor/128x128/apps",
"mkdir -p /app/share/applications",
"mkdir -p /app/share/metainfo",
"cp /app/go/src/github.com/miguelmota/cointop/assets/icon_64x64.png /app/share/icons/hicolor/64x64/apps/com.github.miguelmota.Cointop.png",
"cp /app/go/src/github.com/miguelmota/cointop/assets/icon_128x128.png /app/share/icons/hicolor/128x128/apps/com.github.miguelmota.Cointop.png",
"cp /app/go/src/github.com/miguelmota/cointop/.flathub/com.github.miguelmota.Cointop.appdata.xml /app/share/metainfo/com.github.miguelmota.Cointop.appdata.xml",
"cp /app/go/src/github.com/miguelmota/cointop/.flathub/com.github.miguelmota.Cointop.desktop /app/share/applications/com.github.miguelmota.Cointop.desktop"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/miguelmota/cointop/archive/1.4.3.tar.gz",
"sha256": "842b11703e4e8c825c7d0e3d167c018f44b555d9bde467a1f57be4aba7ba8606",
"dest": "go/src/github.com/miguelmota/cointop"
}
]
}
]
}