2018-05-11 03:43:54 +00:00
|
|
|
{
|
2018-05-14 06:51:20 +00:00
|
|
|
"app-id": "com.github.miguelmota.Cointop",
|
2018-05-11 03:43:54 +00:00
|
|
|
"runtime": "org.freedesktop.Platform",
|
2019-12-31 19:44:45 +00:00
|
|
|
"runtime-version": "19.08",
|
2018-05-11 03:43:54 +00:00
|
|
|
"sdk": "org.freedesktop.Sdk",
|
2018-05-14 05:56:13 +00:00
|
|
|
"sdk-extensions": [
|
|
|
|
"org.freedesktop.Sdk.Extension.golang"
|
|
|
|
],
|
2018-05-11 03:43:54 +00:00
|
|
|
"command": "cointop",
|
2019-12-31 19:44:45 +00:00
|
|
|
"finish-args": [
|
|
|
|
"--share=network"
|
|
|
|
],
|
2018-05-14 06:51:20 +00:00
|
|
|
"cleanup": [
|
|
|
|
"/go",
|
|
|
|
"/bin/scripts"
|
|
|
|
],
|
2018-05-11 03:43:54 +00:00
|
|
|
"modules": [
|
|
|
|
{
|
2018-05-14 05:56:13 +00:00
|
|
|
"name": "scripts",
|
|
|
|
"sources": [
|
|
|
|
{
|
|
|
|
"type": "script",
|
|
|
|
"commands": [
|
2019-12-31 19:44:45 +00:00
|
|
|
". /usr/lib/sdk/golang/enable.sh; export GOPATH=/app/go"
|
2018-05-14 05:56:13 +00:00
|
|
|
],
|
|
|
|
"dest-filename": "my_enable.sh"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "script",
|
|
|
|
"commands": [
|
2019-12-31 19:44:45 +00:00
|
|
|
". /app/bin/scripts/my_enable.sh; cd /app/go/src/$1; GO111MODULE=off go build -o x"
|
2018-05-14 05:56:13 +00:00
|
|
|
],
|
|
|
|
"dest-filename": "build.sh"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"buildsystem": "simple",
|
|
|
|
"build-commands": [
|
2019-12-31 19:44:45 +00:00
|
|
|
"mkdir -p /app/go/{src,pkg,bin}",
|
2018-05-14 05:56:13 +00:00
|
|
|
"install -d /app/bin/scripts",
|
|
|
|
"cp *.sh /app/bin/scripts/"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2019-12-31 19:44:45 +00:00
|
|
|
"name": "cointop",
|
2018-05-11 03:43:54 +00:00
|
|
|
"buildsystem": "simple",
|
2018-05-11 08:41:12 +00:00
|
|
|
"build-commands": [
|
2018-05-14 05:56:13 +00:00
|
|
|
"cp -rpv go/* /app/go/",
|
2018-05-14 06:02:12 +00:00
|
|
|
"/app/bin/scripts/build.sh github.com/miguelmota/cointop",
|
2018-05-14 09:01:50 +00:00
|
|
|
"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",
|
2018-05-14 09:49:37 +00:00
|
|
|
"mkdir -p /app/share/metainfo",
|
2018-05-14 09:01:50 +00:00
|
|
|
"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",
|
2019-12-31 19:44:45 +00:00
|
|
|
"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"
|
2018-05-11 08:41:12 +00:00
|
|
|
],
|
2018-05-11 03:43:54 +00:00
|
|
|
"sources": [
|
|
|
|
{
|
2019-12-31 19:44:45 +00:00
|
|
|
"type": "archive",
|
|
|
|
"url": "https://github.com/miguelmota/cointop/archive/1.4.3.tar.gz",
|
|
|
|
"sha256": "842b11703e4e8c825c7d0e3d167c018f44b555d9bde467a1f57be4aba7ba8606",
|
2018-05-14 05:56:13 +00:00
|
|
|
"dest": "go/src/github.com/miguelmota/cointop"
|
2018-05-11 03:43:54 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2018-05-14 06:21:06 +00:00
|
|
|
}
|