4.get_exe_debug.sh 4.31 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2
#!/bin/bash
#获取git 最后一个 tag 的描述!!!!
潘栩锋's avatar
潘栩锋 committed
3
#LatestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
潘栩锋's avatar
潘栩锋 committed
4

潘栩锋's avatar
潘栩锋 committed
5 6
#install_dir="和美安装包_"$LatestTag
install_dir="和美安装包_xxxx"
潘栩锋's avatar
潘栩锋 committed
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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
if [ -e $install_dir ]; then
	rm -rf $install_dir
fi
#复制 install 到 测厚仪安装包
cp -rf install $install_dir

install_dir=$install_dir"/佛山市枫莱尔自动化技术有限公司/windows"

copy_to()
{
    src_dir=$1
    dest_dir=$2
    files=$3

	#检测文件夹是否存在
	#存在,删除全部数据,再新创建;
	#不存在,创建。
	if [ -e $dest_dir ]; then
        rm -rf $dest_dir
    fi

	mkdir -p $dest_dir
	
	echo 复制 $dest_dir

	for f in ${files[*]}; do
		file_path=$src_dir"/"$f
		cp -rf $file_path $dest_dir
		if [ $? != 0 ]; then
			echo 复制失败
			exit 1
		fi
	done
}

copy_to2()
{
    src_dir=$1
	dest_dir=$2
    files=$3

    src_dir=$src_dir"/bin/Debug" 
	dest_dir=$install_dir"/"$dest_dir
    copy_to $src_dir $dest_dir $files
}

# Project.FLY.Thick.Blowing

src_dir="../Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Client"
dest_dir="FLY.Thick.Blowing.UI.Fix.Client"
files=(\
58
	"x64" "x86" "nlog.config" \
潘栩锋's avatar
潘栩锋 committed
59
	"FLY.Thick.Blowing.UI.Fix.Client.exe" \
潘栩锋's avatar
潘栩锋 committed
60
	"unity" "layout" "music" "default"\
潘栩锋's avatar
潘栩锋 committed
61
	"版本说明.txt" "测厚仪说明书.pdf" \
潘栩锋's avatar
潘栩锋 committed
62 63 64 65 66 67 68
	)
copy_to2 $src_dir $dest_dir $files


src_dir="../Project.FLY.Thick.Blowing/FLY.Thick.Blowing.UI.Fix.Server" 
dest_dir="FLY.Thick.Blowing.UI.Fix.Server" 
files=(\
69
	"x64" "x86" "nlog.config" \
潘栩锋's avatar
潘栩锋 committed
70
	"FLY.Thick.Blowing.UI.Fix.Server.exe" \
71
	"Gage1" \
潘栩锋's avatar
潘栩锋 committed
72 73 74 75 76 77 78
	)
copy_to2 $src_dir $dest_dir $files

#Project.FLY.FeedbackRenZiJia
src_dir="../Project.FLY.FeedbackRenZiJia/FLY.FeedbackRenZiJia.UI.Server"
dest_dir="FLY.FeedbackRenZiJia.UI.Server"
files=(\
79
	"x64" "x86" "nlog.config" \
潘栩锋's avatar
潘栩锋 committed
80
	"FLY.FeedbackRenZiJia.UI.Server.exe" \
81
	"Gage1" \
潘栩锋's avatar
潘栩锋 committed
82 83 84 85 86 87 88
	)
copy_to2 $src_dir $dest_dir $files

#Project.FLY.Weight
src_dir="../Project.FLY.Weight/FLY.Weight.UI.Server"
dest_dir="FLY.Weight.UI.Server"
files=(\
89
	"x64" "x86" "nlog.config" \
潘栩锋's avatar
潘栩锋 committed
90
	"FLY.Weight.UI.Server.exe" \
91
	"Gage1" \
潘栩锋's avatar
潘栩锋 committed
92 93 94
	)
copy_to2 $src_dir $dest_dir $files

潘栩锋's avatar
潘栩锋 committed
95 96 97 98
#Project.FLY.Weight2
src_dir="../Project.FLY.Weight2/FLY.Weight2.UI.Server"
dest_dir="FLY.Weight2.UI.Server"
files=(\
99
	"x64" "x86" "nlog.config" \
潘栩锋's avatar
潘栩锋 committed
100
	"FLY.Weight2.UI.Server.exe" \
101
	"Gage1" \
潘栩锋's avatar
潘栩锋 committed
102 103 104 105
	)
copy_to2 $src_dir $dest_dir $files


潘栩锋's avatar
潘栩锋 committed
106 107 108 109
#Project.FLY.Winder
src_dir="../Project.FLY.Winder_20190413/FLY.Winder.UI.Server"
dest_dir="FLY.Winder.UI.Server"
files=(\
110
	"x64" "x86" "nlog.config" \
潘栩锋's avatar
潘栩锋 committed
111
	"FLY.Winder.UI.Server.exe" \
112
	"Gage1" \
潘栩锋's avatar
潘栩锋 committed
113 114 115 116 117 118 119
	)
copy_to2 $src_dir $dest_dir $files

#Project.FLY.IBC
src_dir="../Project.FLY.IBC/FLY.IBC.UI.Server"
dest_dir="FLY.IBC.UI.Server"
files=(\
120
	"x64" "x86" "nlog.config" \
潘栩锋's avatar
潘栩锋 committed
121
	"FLY.IBC.UI.Server.exe" \
122
	"Gage1" \
潘栩锋's avatar
潘栩锋 committed
123 124 125
	)
copy_to2 $src_dir $dest_dir $files

126 127 128 129
#Project.FLY.Integrated
src_dir="../Project.FLY.Integrated/FLY.Integrated.UI.Server"
dest_dir="FLY.Integrated.UI.Server"
files=(\
130
	"x64" "x86" "nlog.config" \
131
	"FLY.Integrated.UI.Server.exe" \
132
	"Gage1" \
133 134 135
	)
copy_to2 $src_dir $dest_dir $files

潘栩锋's avatar
潘栩锋 committed
136 137 138

# Project.FLY.Thick.BlowingScan

139 140 141
src_dir="../Project.FLY.Thick.BlowingScan/FLY.Thick.BlowingScan.UI.Client"
dest_dir="FLY.Thick.BlowingScan.UI.Client"
files=(\
142
	"x64" "x86" "nlog.config" \
143 144 145 146 147 148 149 150 151 152
	"FLY.Thick.BlowingScan.UI.Client.exe" \
	"unity" "layout" "music" "default"\
	"版本说明.txt" "测厚仪说明书.pdf" \
	)
copy_to2 $src_dir $dest_dir $files


src_dir="../Project.FLY.Thick.BlowingScan/FLY.Thick.BlowingScan.UI.Server" 
dest_dir="FLY.Thick.BlowingScan.UI.Server" 
files=(\
153
	"x64" "x86" "nlog.config" \
154
	"FLY.Thick.BlowingScan.UI.Server.exe" \
155
	"Gage1" \
156 157
	)
copy_to2 $src_dir $dest_dir $files
潘栩锋's avatar
潘栩锋 committed
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188

# Project.FLY.Blowing.DbViewer
src_dir="../Project.FLY.Blowing.DbViewer" 
dest_dir="FLY.Blowing.DbViewer" 
files=(\
	"x64" "x86" "nlog.config" \
	"FLY.Blowing.DbViewer.exe" \
	)
copy_to2 $src_dir $dest_dir $files

# Project.FLY.Thick.Blowing360

src_dir="../Project.FLY.Thick.Blowing360/FLY.Thick.Blowing360.UI.Client"
dest_dir="FLY.Thick.Blowing360.UI.Client"
files=(\
	"x64" "x86" "nlog.config" \
	"FLY.Thick.Blowing360.UI.Client.exe" \
	"unity" "layout" "music" "default"\
	"版本说明.txt" "测厚仪说明书.pdf" \
	)
copy_to2 $src_dir $dest_dir $files


src_dir="../Project.FLY.Thick.Blowing360/FLY.Thick.Blowing360.UI.Server" 
dest_dir="FLY.Thick.Blowing360.UI.Server" 
files=(\
	"x64" "x86" "nlog.config" \
	"FLY.Thick.Blowing360.UI.Server.exe" \
	"Gage1" \
	)
copy_to2 $src_dir $dest_dir $files
潘栩锋's avatar
潘栩锋 committed
189
echo 完成