Fix flathub app release version

pull/49/head 1.4.4
Miguel Mota 4 years ago
parent ff39b35c21
commit 3ec64837dd

@ -17,7 +17,7 @@
</screenshots> </screenshots>
<url type="homepage">https://cointop.sh/</url> <url type="homepage">https://cointop.sh/</url>
<releases> <releases>
<release version="0.0.4" date="2018-05-11"/> <release version="1.4.4" date="2019-12-31"/>
</releases> </releases>
<content_rating type="oars-1.0"> <content_rating type="oars-1.0">
<content_attribute id="violence-cartoon">none</content_attribute> <content_attribute id="violence-cartoon">none</content_attribute>

@ -1,12 +1,15 @@
{ {
"app-id": "com.github.miguelmota.Cointop", "app-id": "com.github.miguelmota.Cointop",
"runtime": "org.freedesktop.Platform", "runtime": "org.freedesktop.Platform",
"runtime-version": "1.6", "runtime-version": "19.08",
"sdk": "org.freedesktop.Sdk", "sdk": "org.freedesktop.Sdk",
"sdk-extensions": [ "sdk-extensions": [
"org.freedesktop.Sdk.Extension.golang" "org.freedesktop.Sdk.Extension.golang"
], ],
"command": "cointop", "command": "cointop",
"finish-args": [
"--share=network"
],
"cleanup": [ "cleanup": [
"/go", "/go",
"/bin/scripts" "/bin/scripts"
@ -18,27 +21,27 @@
{ {
"type": "script", "type": "script",
"commands": [ "commands": [
". /usr/lib/sdk/golang/enable.sh; export GOPATH=/app/go" ". /usr/lib/sdk/golang/enable.sh; export GOPATH=/app/go"
], ],
"dest-filename": "my_enable.sh" "dest-filename": "my_enable.sh"
}, },
{ {
"type": "script", "type": "script",
"commands": [ "commands": [
". /app/bin/scripts/my_enable.sh; cd /app/go/src/$1; go build -o x" ". /app/bin/scripts/my_enable.sh; cd /app/go/src/$1; GO111MODULE=off go build -o x"
], ],
"dest-filename": "build.sh" "dest-filename": "build.sh"
} }
], ],
"buildsystem": "simple", "buildsystem": "simple",
"build-commands": [ "build-commands": [
"mkdir -p /app/go/{src,pkg,bin} # make go workspace", "mkdir -p /app/go/{src,pkg,bin}",
"install -d /app/bin/scripts", "install -d /app/bin/scripts",
"cp *.sh /app/bin/scripts/" "cp *.sh /app/bin/scripts/"
] ]
}, },
{ {
"name": "hello", "name": "cointop",
"buildsystem": "simple", "buildsystem": "simple",
"build-commands": [ "build-commands": [
"cp -rpv go/* /app/go/", "cp -rpv go/* /app/go/",
@ -50,21 +53,17 @@
"mkdir -p /app/share/metainfo", "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_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/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.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" "cp /app/go/src/github.com/miguelmota/cointop/.flathub/com.github.miguelmota.Cointop.desktop /app/share/applications/com.github.miguelmota.Cointop.desktop"
], ],
"sources": [ "sources": [
{ {
"type": "git", "type": "archive",
"url": "https://github.com/miguelmota/cointop.git", "url": "https://github.com/miguelmota/cointop/archive/1.4.3.tar.gz",
"commit": "8b33ac7b32c3a3f25d803afe9cc425dfb2c2c207", "sha256": "842b11703e4e8c825c7d0e3d167c018f44b555d9bde467a1f57be4aba7ba8606",
"dest": "go/src/github.com/miguelmota/cointop" "dest": "go/src/github.com/miguelmota/cointop"
} }
] ]
} }
],
"finish-args": [
"--share=network"
] ]
} }

@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.4.4] - 2019-12-31
### Fixed
- Flathub app release version
## [1.4.3] - 2019-12-29 ## [1.4.3] - 2019-12-29
### Fixed ### Fixed
- Chart update bug fixes - Chart update bug fixes

@ -1,4 +1,5 @@
VERSION = $$(git describe --abbrev=0 --tags) VERSION = $$(git describe --abbrev=0 --tags)
VERSION_DATE = $$(git log -1 --pretty='%ad' --date=format:'%Y-%m-%d' $(VERSION))
COMMIT_REV = $$(git rev-list -n 1 $(VERSION)) COMMIT_REV = $$(git rev-list -n 1 $(VERSION))
all: build all: build
@ -114,6 +115,10 @@ flatpak/install:
flatpak/run: flatpak/run:
flatpak run com.github.miguelmota.Cointop flatpak run com.github.miguelmota.Cointop
flatpak/update-version:
xmlstarlet ed --inplace -u '/component/releases/release/@version' -v $(VERSION) .flathub/com.github.miguelmota.Cointop.appdata.xml
xmlstarlet ed --inplace -u '/component/releases/release/@date' -v $(VERSION_DATE) .flathub/com.github.miguelmota.Cointop.appdata.xml
rpm/install/deps: rpm/install/deps:
sudo dnf install -y rpm-build sudo dnf install -y rpm-build
sudo dnf install -y dnf-plugins-core sudo dnf install -y dnf-plugins-core

Loading…
Cancel
Save