2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-10 13:10:26 +00:00
cointop/.flathub/com.github.miguelmota.Cointop.json
2018-05-21 01:23:39 -07:00

70 lines
2.3 KiB
JSON

{
"app-id": "com.github.miguelmota.Cointop",
"runtime": "org.freedesktop.Platform",
"runtime-version": "1.6",
"sdk": "org.freedesktop.Sdk",
"sdk-extensions": [
"org.freedesktop.Sdk.Extension.golang"
],
"command": "cointop",
"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; go build -o x"
],
"dest-filename": "build.sh"
}
],
"buildsystem": "simple",
"build-commands": [
"mkdir -p /app/go/{src,pkg,bin} # make go workspace",
"install -d /app/bin/scripts",
"cp *.sh /app/bin/scripts/"
]
},
{
"name": "hello",
"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": "git",
"url": "https://github.com/miguelmota/cointop.git",
"commit": "8b33ac7b32c3a3f25d803afe9cc425dfb2c2c207",
"dest": "go/src/github.com/miguelmota/cointop"
}
]
}
],
"finish-args": [
"--share=network"
]
}