Skip to content

jagomf/jjpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JJPack

Zip and destroy

Scans recursively for all files inside a given folder with a specific extension, zips them, and deletes originals.

NOTE: This project is the executable standalone app that runs on Windows, Linux and macOS. For a NodeJS-based solutio try JJscript.

Usage

Copy the executable file to the location you want to be processed, e.g., if you want ~/projects (or C:\Users\projects) to be processed copy the file so that it is placed in ~/projects/jjscript.exe (or C:\Users\projects\jjscript.exe).

Run from console in Windows:

jjscript.exe

Run from console in Linux/macOS:

./jjscript.exe

Results will be logged to the console.

Arguments

By default, files with dwg extension are processed, and original files get deleted after processing.

This behavior can be changed by passing extra arguments to the command line:

jjscript.exe [extension] [nodelete]

Both arguments are optional.

Examples

Files with jkl extension, delete after zip
jjscript.exe jkl
Files with default dwg extension, keep after zip
jjscript.exe nodelete
Files with nrv extension, keep after zip
jjscript.exe nrv nodelete

Build project

  1. This project is built in Dart; make sure you have the Dart SDK installed. If you don't, go get it.

  2. After cloning or copying the project, use a console to access the jjpack project folder and run

dart pub get
  1. Build executable with
dart compile exe bin/jjpack.dart -o build/jjpack.exe

NOTE: You can only build for a platform from that same platform, i.e.:

  • if you build on Windows, you can only run generated executable on Windows
  • if you build on Linux, you can only run generated executable on Linux
  • if you build on macOs, you can only run generated executable on macOs