2020-11-28 01:37:34 +08:00
|
|
|
# v=$(grep "\"version\"" info.json | sed 's|.*:||;s|[",]||g;s| ||g')
|
|
|
|
# n=$(grep "\"name\"" info.json | sed 's|.*:||;s|[",]||g;s| ||g')
|
|
|
|
# #echo ${n}_${v}.zip
|
|
|
|
|
|
|
|
# powershell -c "\$files = Get-ChildItem -Path . -Exclude .git,*.sh
|
|
|
|
# Compress-Archive -Path \$files -DestinationPath ../${n}_${v}.zip"
|
|
|
|
|
2020-08-24 20:43:41 +08:00
|
|
|
v=$(grep "\"version\"" info.json | sed 's|.*:||;s|[",]||g;s| ||g')
|
|
|
|
n=$(grep "\"name\"" info.json | sed 's|.*:||;s|[",]||g;s| ||g')
|
2020-11-28 01:37:34 +08:00
|
|
|
echo ${n}_${v}.zip
|
|
|
|
cd ..
|
2020-08-24 20:43:41 +08:00
|
|
|
|
2020-11-28 01:37:34 +08:00
|
|
|
7z a -tzip ${n}_${v}.zip ./${n} -xr'!.git' -xr'!.gitignore' -xr'!*.pdn'
|