Release Kaleido 0.3.0 with categories, alphabet jumps and audio preferences
All checks were successful
Validate and publish Kaleido / android (push) Successful in 2m24s
All checks were successful
Validate and publish Kaleido / android (push) Successful in 2m24s
This commit is contained in:
parent
54519d4581
commit
0c62d7414e
31 changed files with 1051 additions and 80 deletions
|
|
@ -3,14 +3,14 @@ import hashlib, json, os, pathlib, re, urllib.request, uuid
|
|||
ROOT=pathlib.Path(__file__).resolve().parents[1]
|
||||
API='https://git.elijahkuntz.com/api/v1/repos/Elijah/Kaleido'
|
||||
token=os.environ['KALEIDO_RELEASE_TOKEN']
|
||||
version=dict(l.split('=',1) for l in (ROOT/'version.properties').read_text().splitlines() if '=' in l)
|
||||
version=dict(l.split('=',1) for l in (ROOT/'version.properties').read_text(encoding='utf-8').splitlines() if '=' in l)
|
||||
tag='v'+version['versionName']
|
||||
ref=os.environ.get('RELEASE_REF','')
|
||||
assert ref=='refs/tags/'+tag,'Tag must match version.properties exactly'
|
||||
out=ROOT/'distribution'
|
||||
def notes():
|
||||
"""Only this version's changelog section; the app shows the body as release notes."""
|
||||
text=(ROOT/'CHANGELOG.md').read_text()
|
||||
text=(ROOT/'CHANGELOG.md').read_text(encoding='utf-8')
|
||||
m=re.search(r'^## v?'+re.escape(version['versionName'])+r'[ \t]*$(.*?)(?=^## |\Z)',text,re.M|re.S)
|
||||
return m.group(1).strip() if m else ''
|
||||
assert hashlib.sha256((out/'Kaleido.apk').read_bytes()).hexdigest()==(out/'Kaleido.apk.sha256').read_text().split()[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue