From 7a57fb054b414c4bca6038b7ef19535596c815c6 Mon Sep 17 00:00:00 2001 From: Bambooin Date: Fri, 25 Jun 2021 18:42:06 +0800 Subject: [PATCH] chore: add license in release package --- script/archive.sh | 5 ++++- script/package.sh | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) 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}