package com.fdkankan.fusion.common.util; import com.fdkankan.fusion.config.CacheUtil; import java.io.File; public class ShellCmd { /** * oss文件上传命令 bash /opt/ossutil/fyun-upload.sh {bucket} {srcPath} {destPath} {fyunType} {opType} * opType: file or folder * fyunType : oss ,aws */ public static final String FYUN_UPLOAD = "bash /opt/ossutil/fyun-upload.sh %s %s /%s %s %s"; public static final String FYUN_DOWN = "bash /opt/ossutil/fyun-download.sh %s /%s %s %s %s"; public static String base_cmd = CacheUtil.installPath + File.separator +"CGAII" +File.separator ; //7za.exe x -y xxx.zip public static String unzip_cmd = base_cmd + "7z"+File.separator+ "7za.exe x -y -p %s -o%s" ; public static String obj2glb_cmd =base_cmd + "obj2gltf.exe -i %s -o %s"; public static String LAS_TO_BIN = base_cmd +"PotreeConverter.bat %s %s ''"; public static String osgbTob3dmCmd = base_cmd +"3dtile"+File.separator + "3dtile.exe -f osgb -i " + "%s -o %s"; public static String osgbTob3dmCmd2 = base_cmd +"3dtile"+File.separator + "ConvertApp.exe -f OSGB -m false -i " + "%s -o %s"; public static String ffmpegCmd = base_cmd + "ffmpeg.exe "; }