...
 
Commits (2)
......@@ -73,6 +73,8 @@ windows-release:
only:
refs:
- tags
except:
- master
linux-release:
stage: bundle
......@@ -87,6 +89,8 @@ linux-release:
only:
refs:
- tags
except:
- master
pages:
stage: publish
......@@ -94,7 +98,8 @@ pages:
- linux-release
- windows-release
script:
- make update-releasepage
- echo "publish release under:" " public/$CI_COMMIT_REF_SLUG"
- make update-releasepage REF_SLUG=$CI_COMMIT_REF_SLUG
artifacts:
paths:
- public/
......@@ -102,3 +107,6 @@ pages:
only:
refs:
- tags
except:
- master
......@@ -9,6 +9,8 @@ GITCOMMIT := -X main.gitcommit=$(GITCOMMITHASH)
VERSIONTAG := $(shell git describe --tags --abbrev=0)
VERSION := -X main.appversion=$(VERSIONTAG)
REF_SLUG := $(VERSIONTAG)
BUILDTIMEVALUE := $(shell date +%Y-%m-%dT%H:%M:%S%z)
BUILDTIME := -X main.buildtime=$(BUILDTIMEVALUE)
......@@ -60,44 +62,34 @@ image:
release-linux:
@mkdir -p release/linux
@echo Bundle linux release $(VERSIONTAG)
@echo -n "verify checksum: "
@cd build/linux && \
sha256sum -c $(APPNAME)-$(VERSIONTAG)-linux_x86_64.sha256sum
@cd build/linux && \
tar cfz ../../release/linux/$(APPNAME)-$(VERSIONTAG)-linux_x86_64.tar.gz $(APPNAME)-$(VERSIONTAG)-linux_x86_64
@cd release/linux && \
sha256sum $(APPNAME)-$(VERSIONTAG)-linux_x86_64.tar.gz > $(APPNAME)-$(VERSIONTAG)-linux_x86_64.tar.gz.sha256sum
@echo archive created: $(APPNAME)-$(VERSIONTAG)-linux_x86_64.tar.gz
@echo -n "verify checksum: "
@cd $(BASEDIR)/build/linux && \
sha256sum -c $(APPNAME)-$(VERSIONTAG)-linux_x86_64.sha256sum;\
cp $(BASEDIR)/build/linux/* $(BASEDIR)/release/linux;\
release-windows:
@mkdir -p release/windows
@echo Bundle windows release $(VERSIONTAG)
@echo -n "verify checksum: "
@cd build/windows && \
sha256sum -c $(APPNAME)-$(VERSIONTAG).exe.sha256sum
@echo adding zip package
@apt-get update && apt-get install -y zip
@cd build/windows && \
zip ../../release/windows/$(APPNAME)-$(VERSIONTAG)-windows.zip $(APPNAME)-$(VERSIONTAG).exe
@cd release/windows && \
sha256sum $(APPNAME)-$(VERSIONTAG)-windows.zip > $(APPNAME)-$(VERSIONTAG)-windows.zip.sha256sum
@echo archive created: $(APPNAME)-$(VERSIONTAG)-windows.zip
@echo -n "verify checksum: "
@cd $(BASEDIR)/build/windows && \
sha256sum -c $(APPNAME)-$(VERSIONTAG).exe.sha256sum;\
cp $(BASEDIR)/build/windows/* $(BASEDIR)/release/windows;\
update-releasepage:
apt update && apt install markdown
mkdir -p public/releases
git archive HEAD | gzip > public/releases/$(APPNAME)-$(VERSIONTAG).src.tar.gz
@cd public/releases && \
go get github.com/russross/blackfriday-tool
go install github.com/russross/blackfriday-tool
mkdir -p public/$(REF_SLUG)/releases
git archive HEAD | gzip > public/$(REF_SLUG)/releases/$(APPNAME)-$(VERSIONTAG).src.tar.gz
@cd public/$(REF_SLUG)/releases && \
sha256sum $(APPNAME)-$(VERSIONTAG).src.tar.gz > $(APPNAME)-$(VERSIONTAG).src.tar.gz.sha256sum
cp release/linux/$(APPNAME)-$(VERSIONTAG)-linux_x86_64.tar.gz public/releases
cp release/linux/$(APPNAME)-$(VERSIONTAG)-linux_x86_64.tar.gz.sha256sum public/releases
cp release/windows/$(APPNAME)-$(VERSIONTAG)-windows.zip public/releases
cp release/windows/$(APPNAME)-$(VERSIONTAG)-windows.zip.sha256sum public/releases
markdown page/index-body.md > page/index-body.tpl
cat page/index-header.tpl page/index-body.tpl page/index-footer.tpl > public/index.html
sed -i 's/__release_linux__/$(APPNAME)-$(VERSIONTAG)-linux_x86_64.tar.gz/g' public/index.html
sed -i 's/__release_windows__/$(APPNAME)-$(VERSIONTAG)-windows.zip/g' public/index.html
sed -i 's/__release_source__/$(APPNAME)-$(VERSIONTAG).src.tar.gz/g' public/index.html
\ No newline at end of file
cp release/linux/* public/$(REF_SLUG)/releases
cp release/windows/* public/$(REF_SLUG)/releases
blackfriday-tool -css style.css -page page/index-body.md > page/index-body.tpl
cp page/style.css public/style.css
cat page/index-header.tpl page/index-body.tpl page/index-footer.tpl > public/$(REF_SLUG)/index.html
sed -i 's/__release_linux__/$(APPNAME)-$(VERSIONTAG)-linux_x86_64/g' public/$(REF_SLUG)/index.html
sed -i 's/__release_windows__/$(APPNAME)-$(VERSIONTAG).exe/g' public/$(REF_SLUG)/index.html
sed -i 's/__release_source__/$(APPNAME)-$(VERSIONTAG).src.tar.gz/g' public/$(REF_SLUG)/index.html
......@@ -9,8 +9,11 @@ require (
github.com/google/uuid v1.1.1
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
github.com/kr/pretty v0.1.0
github.com/russross/blackfriday v2.0.0+incompatible // indirect
github.com/russross/blackfriday-tool v0.0.0-20120308051103-a78eb387e806 // indirect
github.com/sbreitf1/errors v1.1.0
github.com/sebidude/configparser v1.0.0
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
github.com/sirupsen/logrus v1.4.2
github.com/stretchr/testify v1.4.0
golang.org/x/crypto v0.0.0-20191029031824-8986dd9e96cf // indirect
......
......@@ -22,10 +22,16 @@ github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/russross/blackfriday v2.0.0+incompatible h1:cBXrhZNUf9C+La9/YpS+UHpUT8YD6Td9ZMSU9APFcsk=
github.com/russross/blackfriday v2.0.0+incompatible/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
github.com/russross/blackfriday-tool v0.0.0-20120308051103-a78eb387e806 h1:eehmvKp7Y/oJnZLyFrC+NFtDb5aMVW25QHzXjs+egWE=
github.com/russross/blackfriday-tool v0.0.0-20120308051103-a78eb387e806/go.mod h1:Dn/w91XVDVHljHfa908Dn3l6S8XF0zRm67IbS87oFRI=
github.com/sbreitf1/errors v1.1.0 h1:U5DmV7z1ZaYW7Gn/Eldt04hZAhSkwLREd/ukWZfdAJw=
github.com/sbreitf1/errors v1.1.0/go.mod h1:LPRpMKi6LkbRiZogETdCJgfQr++ckhEk6o2t7hR5uk4=
github.com/sebidude/configparser v1.0.0 h1:TYZC0NkIOu2KoqkJP8BhjkZoojSKk86RAkoQf6Bpk9Q=
github.com/sebidude/configparser v1.0.0/go.mod h1:D83gOXav7ywBW8dSS2bPtssu+nTUmS9ER+tK32Df/Qw=
github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4=
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
......
# aim-client
# aim-client v2
## Latest releases
[\_\_release\_linux\_\_](releases/\_\_release\_linux\_\_)
......@@ -12,5 +12,4 @@
## License
aim-client is licensed under the terms of the MIT License.
See the repositories' [LICENSE](https://gitlab.com/denic-id/aim-client/raw/master/LICENSE) file for further information.
See the repositories' [LICENSE](https://gitlab.com/denic-id/aim-client/raw/v2/LICENSE) file for further information.
\ No newline at end of file