Skip to content

Commit

Permalink
chore: add license in release package
Browse files Browse the repository at this point in the history
  • Loading branch information
Bambooin committed Jun 25, 2021
1 parent cb0d85d commit 7a57fb0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion script/archive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
releasePath=release

flavors=(fcitx fcitx5 ibus squirrel trime weasel)

licence='Copyleft.txt LICENSE README.md'

version=$(git describe --tags --abbrev=0)

pushd ${releasePath}

for flavor in ${flavors[*]}
do
zip -r rimerc-${flavor}-${version}.zip ${flavor} -x "*/.*"
zip -r rimerc-${flavor}-${version}.zip ${flavor} ${licence} -x "*/.*"
done

popd
3 changes: 3 additions & 0 deletions script/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ schemas=(common easy_en luna_pinyin)

mkdir -p ${releasePath}

licence='Copyleft.txt LICENSE README.md'
cp -r ${licence} ${releasePath}

for flavor in ${flavors[*]}
do
cp -arH ${flavor} ${releasePath}
Expand Down

0 comments on commit 7a57fb0

Please sign in to comment.