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",
|
|
|
|
"runtime-version": "1.6",
|
|
|
|
"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",
|
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": [
|
|
|
|
". /usr/lib/sdk/golang/enable.sh; export GOPATH=/app/go"
|
|
|
|
],
|
|
|
|
"dest-filename": "my_enable.sh"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "script",
|
|
|
|
"commands": [
|
2018-05-14 06:02:12 +00:00
|
|
|
". /app/bin/scripts/my_enable.sh; cd /app/go/src/$1; go build -o x"
|
2018-05-14 05:56:13 +00:00
|
|
|
],
|
|
|
|
"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",
|
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",
|
2018-05-14 09:49:37 +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",
|
2018-05-14 09:01:50 +00:00
|
|
|
"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": [
|
|
|
|
{
|
2018-05-11 08:52:25 +00:00
|
|
|
"type": "git",
|
2018-05-12 19:42:48 +00:00
|
|
|
"url": "https://github.com/miguelmota/cointop.git",
|
2018-05-16 01:56:26 +00:00
|
|
|
"commit": "8b33ac7b32c3a3f25d803afe9cc425dfb2c2c207",
|
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 05:56:13 +00:00
|
|
|
|
2018-05-11 08:52:25 +00:00
|
|
|
],
|
|
|
|
"finish-args": [
|
2018-05-14 05:56:13 +00:00
|
|
|
"--share=network"
|
2018-05-11 03:43:54 +00:00
|
|
|
]
|
2018-05-14 06:21:06 +00:00
|
|
|
}
|