mirror of
https://github.com/peter-tanner/spidertron-squad-control.git
synced 2024-11-30 19:10:18 +08:00
13 lines
523 B
Bash
13 lines
523 B
Bash
# 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"
|
|
|
|
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
|
|
cd ..
|
|
|
|
7z a -tzip ${n}_${v}.zip ./${n} -xr'!.git' -xr'!.gitignore' -xr'!*.pdn' |