| | |
| | | if unTarGzE := util.UnTarGz(unPackPath+sdkType+".tar.gz", unPackPath);unTarGzE == nil { |
| | | //复制json启动文件 |
| | | if util.Exists(unPackPath+sdkType+"/zconf/"+sdkType+".json") { |
| | | util.CopyFile(unPackPath+sdkType+"/zconf/"+sdkType+".json", zconfPath) |
| | | util.CopyFile(unPackPath+sdkType+"/zconf/"+sdkType+".json", zconfPath+sdkType+".json") |
| | | } |
| | | if util.DirExists(unPackPath+sdkType+"/"+sdkType) { |
| | | if _,cE := util.CopyDirByCmd(unPackPath+sdkType+"/"+sdkType, libPath);cE != nil { |
| | | if util.DirExists(unPackPath+sdkType) { |
| | | if _,cE := util.CopyDirByCmd(unPackPath+sdkType, libPath);cE != nil { |
| | | return false, cE |
| | | } |
| | | } |