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.
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.
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.
jjscript.exe jkl
jjscript.exe nodelete
jjscript.exe nrv nodelete
-
This project is built in Dart; make sure you have the Dart SDK installed. If you don't, go get it.
-
After cloning or copying the project, use a console to access the
jjpack
project folder and run
dart pub get
- 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