Skip to content

Commit 07c7cf3

Browse files
committed
Add release script
1 parent 7643319 commit 07c7cf3

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ tmp/
88
*.egg
99
build
1010
htmlcov
11+
12+
*.addon
13+
*.ankiaddon
14+
*.zip
15+
meta.json

ci/release.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
pushd $(dirname $0)/..
3+
CUR_TAG=$(git describe --tags)
4+
OUT="org-open-note_$CUR_TAG.ankiaddon"
5+
sed "s/__MOD__/$(date +%s)/g" meta.json.tpl > meta.json
6+
rm -f $OUT
7+
zip -9r $OUT \
8+
meta.json \
9+
__init__.py \
10+
config.json \
11+
icons
12+
popd
13+
echo done
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"mod": 1234123412341,
2+
"mod": __MOD__,
33
"name": "Open Org Note",
44
"conflicts": []
5-
}
5+
}

0 commit comments

Comments
 (0)