Code Monkey home page Code Monkey logo

fastdlcompressor's Introduction

FastDLCompressor

Introduction

FastDLCompressor is a tool to create a compressed FastDL directory for Garry's Mod.

Usage

Open a command line window (cmd.exe) and run the compressor with your source and target directory.

FastDLCompressor.exe -s <source> -t <target>
  • <source> is the source directory, that should be compressed
  • <target> is your FastDL directory, where the compressed files should be stored

Warning: The target directory will be deleted before compression!

Example

FastDLCompressor.exe -s C:\resources -t C:\fastdl

Usage with settings.json

settings.json

{
    "sources": [
        {
            "dir": "C:\\first\\dir"
        },
        {
            "dir": "C:\\second\\dir"
            "includes": [
                "materials/test(/.*)?"
            ],
            "excludes": [
                "materials/.*"
            ]
        }
    ],
    "compression": {
        "level": 9,
        "minimumSize": 5120
    },
    "ftp": {
        "username": "",
        "password": "",
        "hostname": "",
        "threads": 2
    },
    "log": {
        "file": "compressor.log",
        "append": true,
        "severity": "INFO"
    },
    "target": "C:\\target",
    "cleanupTarget": true,
    "threads": 0,
    "verbose": false
}

The above example uses two source directories. C:\first\dir and C:\second\dir.

The first directory is used without any restrictions.

The second directory defines some restrictions. Includes will match first. If they match, excludes won't be matched on this path. So in the above example only the materials/test directory from materials/ will be included.

The target directory is set to C:\target and will be deleted first, because cleanupTarget is set to true.

The compressor will use all logical processors for compression, because threads is set to 0. threads can be set to any value >= 0 and indicates how many threads should be used.

Only files bigger than 5 KiB will be compressed with a compression level of 9.

Run

FastDLCompressor.exe -c C:\settings.json

fastdlcompressor's People

Contributors

g0dscookie avatar

Stargazers

 avatar  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.