diff --git a/Dockerfile b/Dockerfile index 5246c794..2082b8b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,5 +37,5 @@ ENV CLASSPATH $JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar ENV PATH $PATH:$JAVA_HOME/bin ENV LANG zh_CN.UTF-8 ENV LC_ALL zh_CN.UTF-8 -ENV KKFILEVIEW_BIN_FOLDER /opt/kkFileView-3.5.1/bin -ENTRYPOINT ["java","-Dfile.encoding=UTF-8","-Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider","-Dspring.config.location=/opt/kkFileView-3.5.1/config/application.properties","-jar","/opt/kkFileView-3.5.1/bin/kkFileView-3.5.1.jar"] \ No newline at end of file +ENV KKFILEVIEW_BIN_FOLDER /opt/kkFileView-3.6.0/bin +ENTRYPOINT ["java","-Dfile.encoding=UTF-8","-Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider","-Dspring.config.location=/opt/kkFileView-3.6.0/config/application.properties","-jar","/opt/kkFileView-3.6.0/bin/kkFileView-3.6.0.jar"] \ No newline at end of file diff --git a/README.md b/README.md index 6fe79d75..6c39b76b 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,14 @@ pdf预览模式预览效果如下 ### 历史更新记录 +> 2021年6月17日,v3.6.0 版本发布 : + +ofd 类型文件支持版本,本次版本重要功能均由社区开发贡献,感谢 @gaoxingzaq、@zhangxiaoxiao9527 的代码贡献 +1. 新增 ofd 类型文件预览支持,ofd 是国产的类似 pdf 格式的文件 +2. 新增了 ffmpeg 视频文件转码预览支持,打开转码功能后,理论上支持所有主流视频的预览,如 rm、rmvb、flv 等 +3. 美化了 ppt、pptx 类型文件预览效果,比之前版本好看太多 +4. 更新了 pdfbox、xstream、common-io 等依赖的版本 + > 2021年1月28日 : 2020农历年最后一个版本发布,主要包含了部分 UI 改进,和解决了 QQ 群友、 Issue 里反馈的 Bug 修复,最最重要的是发个新版,过个好年 diff --git a/office-plugin/pom.xml b/office-plugin/pom.xml index e4984a16..e2bd122e 100644 --- a/office-plugin/pom.xml +++ b/office-plugin/pom.xml @@ -7,7 +7,7 @@ filepreview cn.keking - 3.5.1 + 3.6.0 office-plugin diff --git a/pom.xml b/pom.xml index f8907832..c1673613 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ cn.keking filepreview - 3.5.1 + 3.6.0 1.8 diff --git a/server/pom.xml b/server/pom.xml index a8f50f5a..e2568a94 100644 --- a/server/pom.xml +++ b/server/pom.xml @@ -6,7 +6,7 @@ filepreview cn.keking - 3.5.1 + 3.6.0 kkFileView diff --git a/server/src/main/bin/startup.bat b/server/src/main/bin/startup.bat index 93a1870b..8ac4410f 100644 --- a/server/src/main/bin/startup.bat +++ b/server/src/main/bin/startup.bat @@ -6,4 +6,4 @@ echo Starting kkFileView... echo Please check log file in ../log/kkFileView.log for more information echo You can get help in our official homesite: https://kkFileView.keking.cn echo If this project is helpful to you, please star it on https://gitee.com/kekingcn/file-online-preview/stargazers -java -Dspring.config.location=..\config\application.properties -jar kkFileView-3.5.1.jar -> ..\log\kkFileView.log \ No newline at end of file +java -Dspring.config.location=..\config\application.properties -jar kkFileView-3.6.0.jar -> ..\log\kkFileView.log \ No newline at end of file diff --git a/server/src/main/bin/startup.sh b/server/src/main/bin/startup.sh index a5b5015e..c3d27155 100644 --- a/server/src/main/bin/startup.sh +++ b/server/src/main/bin/startup.sh @@ -29,4 +29,4 @@ echo "Starting kkFileView..." echo "Please execute ./showlog.sh to check log for more information" echo "You can get help in our official homesite: https://kkFileView.keking.cn" echo "If this project is helpful to you, please star it on https://gitee.com/kekingcn/file-online-preview/stargazers" -nohup java -Dfile.encoding=UTF-8 -Dspring.config.location=../config/application.properties -jar kkFileView-3.5.1.jar > ../log/kkFileView.log 2>&1 & +nohup java -Dfile.encoding=UTF-8 -Dspring.config.location=../config/application.properties -jar kkFileView-3.6.0.jar > ../log/kkFileView.log 2>&1 & diff --git a/server/src/main/java/cn/keking/model/FileType.java b/server/src/main/java/cn/keking/model/FileType.java index 62636e40..f3255e2a 100644 --- a/server/src/main/java/cn/keking/model/FileType.java +++ b/server/src/main/java/cn/keking/model/FileType.java @@ -37,7 +37,7 @@ public enum FileType { private static final String[] SSIM_TEXT_TYPES = ConfigConstants.getSimText(); private static final String[] CODES = {"java", "c", "php", "go", "python", "py", "js", "html", "ftl", "css", "lua", "sh", "rb", "yaml", "yml", "json", "h", "cpp", "cs", "aspx", "jsp"}; private static final String[] MEDIA_TYPES = ConfigConstants.getMedia(); - private static final String[] MEDIA_TYPES_CONVERT = ConfigConstants.getConvertMedias(); + public static final String[] MEDIA_TYPES_CONVERT = ConfigConstants.getConvertMedias(); private static final Map FILE_TYPE_MAPPER = new HashMap<>(); static { diff --git a/server/src/main/resources/web/index.ftl b/server/src/main/resources/web/index.ftl index bd30d7b7..4aa6a4b6 100644 --- a/server/src/main/resources/web/index.ftl +++ b/server/src/main/resources/web/index.ftl @@ -79,6 +79,13 @@
+ 2021年6月17日,v3.6.0版本 :
+ ofd 类型文件支持版本,本次版本重要功能均由社区开发贡献,感谢 @gaoxingzaq、@zhangxiaoxiao9527 的代码贡献
+ 1、新增 ofd 类型文件预览支持,ofd 是国产的类似 pdf 格式的文件
+ 2、新增了 ffmpeg 视频文件转码预览支持,打开转码功能后,理论上支持所有主流视频的预览,如 rm、rmvb、flv 等
+ 3、美化了 ppt、pptx 类型文件预览效果,比之前版本好看太多
+ 4、更新了 pdfbox、xstream、common-io 等依赖的版本

+ 2021年1月28日 :
2020农历年最后一个版本发布,主要包含了部分 UI 改进,和解决了 QQ 群友、 Issue 里反馈的 Bug 修复,最最重要的是发个新版,过个好年
1、引入galimatias,解决不规范文件名导致文件下载异常