-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzip.sh
38 lines (33 loc) · 1.16 KB
/
zip.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
SCRIPT=$(readlink -f $0)
ZIP=`dirname $SCRIPT`
VERSION=$(jq -r '.version' ./composer.json)
rm -f *.zip
if [ -d ./temp ]
then
rm -rf ./temp
fi
mkdir -p ./temp/MappDigital/Cloud
cp ./composer.json ./temp/MappDigital/Cloud
cp ./registration.php ./temp/MappDigital/Cloud
cp ./CHANGELOG.md ./temp/MappDigital/Cloud
cp ./README.md ./temp/MappDigital/Cloud
cp ./LICENSE.txt ./temp/MappDigital/Cloud
cp -r ./Api ./temp/MappDigital/Cloud
cp -r ./Controller ./temp/MappDigital/Cloud
cp -r ./Enum ./temp/MappDigital/Cloud
cp -r ./Framework ./temp/MappDigital/Cloud
cp -r ./Observer ./temp/MappDigital/Cloud
cp -r ./Block ./temp/MappDigital/Cloud
cp -r ./Console ./temp/MappDigital/Cloud
cp -r ./Cron ./temp/MappDigital/Cloud
cp -r ./Helper ./temp/MappDigital/Cloud
cp -r ./Logger ./temp/MappDigital/Cloud
cp -r ./Model ./temp/MappDigital/Cloud
cp -r ./Plugin ./temp/MappDigital/Cloud
cp -r ./Setup ./temp/MappDigital/Cloud
cp -r ./etc ./temp/MappDigital/Cloud
cp -r ./view ./temp/MappDigital/Cloud
cd ./temp && zip -rq ../Mapp_Cloud_Magento2_$VERSION.zip ./MappDigital
cd ./MappDigital/Cloud && zip -rq ../../../Mapp_Cloud_Magento2_For_Marketplace_$VERSION.zip ./*
rm -rf $ZIP/temp