Code Monkey home page Code Monkey logo

file-split-and-merge-tool's Introduction

文件分割与合并工具

一个小工具,可以分割和合并文件,基于 Java & Gluon。

使用场景

  • 传输文件时有大小限制,无法一次传输一个大文件;
  • 微信传输大于 1GiB 的文件;
  • 一次传输一个大文件的效率太低,将大文件拆开一起发送可以提高效率 (手动多线程)
  • 等等。

项目预览

首页
文件分割
文件合并

下载地址

从 GitLab 下载
从 GitHub 下载

开发

本项目基于 Gluon,下面的步骤参考 Gluon 文档,如遇到问题请阅读文档

环境配置

  1. 下载 Java 21 的 GraalVM,并配置系统环境变量:

    • GRAALVM_HOME:GraalVM 目录
    • JAVA_HOME:macOS/Linux 设为 $GRAALVM_HOME,Windows 设为 %GRAALVM_HOME%
    • PATH:macOS/Linux 设为 $JAVA_HOME\bin;$PATH,Windows 设为 %JAVA_HOME%\bin;%PATH%
  2. 下载并安装 JDK 11

  3. (仅对于 Windows)下载 Maven 3.8.8 ,并配置系统环境变量:

    • MVN_HOME:解压的目录
    • PATH%MVN_HOME%\bin;%PATH%
  4. (仅对于 Windows)下载 Visual Studio 2022,选择单个组件,勾选下面的组件:

    • MSVC v143 -VS 2022 C++ x64/x86 生成工具
    • 对 v143 生成工具的 C++/CLI 支持
    • Windows 10 SDK
    • Windows 通用 CRT SDK

    选择语言包,勾选且仅勾选英语,开始安装

    配置系统环境变量:

    • VS_HOME:Visual Studio 2022 安装目录
    • PATH%VS_HOME%\VC\Tools\MSVC\<MSVC版本>\bin\Hostx64\x64;%PATH%\
  5. (仅对于 macOS)安装 Homebrew,并执行 brew install create-dmg

  6. 使用 IntelliJ IDEA 打开本项目,在文件->项目结构->SDK中添加 JDK 11,并设置项目 SDK 为 JDK 11

运行

打开 IntelliJ IDEA 中的 Maven 面板,运行:file-split-and-merge-tool/插件/javafx/javafx:run

打包

macOS Apple Silicon

  1. 打开 IntelliJ IDEA 中的 Maven 面板,运行:file-split-and-merge-tool/插件/gluonfx/gluonfx:build
  2. 运行 pack/macos-apple.sh
  3. 打包后的文件在 target/macos-apple-silicon/ 目录下

Windows 10 x64

  1. 运行 pack/windows-10-x64.bat
  2. 使用 Inno Setup 运行 windows-10-x64.iss
  3. 打包后的文件在 target/windows-10-x64/ 目录下

file-split-and-merge-tool's People

Contributors

fstyou avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.