diff --git a/script/archive.sh b/script/archive.sh index 4de0ced..8f45426 100755 --- a/script/archive.sh +++ b/script/archive.sh @@ -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 diff --git a/script/package.sh b/script/package.sh index 3dd6cf5..55ee0b9 100755 --- a/script/package.sh +++ b/script/package.sh @@ -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}