An open API service indexing awesome lists of open source software.

https://github.com/datatags/scratch-with-git

A couple batch scripts that compress and decompress Scratch projects so they can be used properly with Git.
https://github.com/datatags/scratch-with-git

Last synced: 3 months ago
JSON representation

A couple batch scripts that compress and decompress Scratch projects so they can be used properly with Git.

Awesome Lists containing this project

README

          

# Scratch with Git
A couple batch scripts that compress and decompress Scratch projects so they can be used properly with Git. It includes a prettifier script written in Perl, so if you want to use it you will have to install a Perl interpreter. Strawberry Perl installed in default path is recommended.

The format is that when they are uploaded, all project files except project.json are in a folder named assets. Those in turn are inside a folder named the same as the project file (often similarly named to the repository). When the compile script is executed, it takes the extracted contents in this format and zips them back up into an SB3 file using 7-Zip, or PowerShell if 7-Zip couldn't be located. It works with 7-Zip installs as well as a 7za.exe file dropped in the same directory as the folder. For this reason, you should put 7za.exe in your .gitignore file if you plan to use 7za.exe. You may also want to put \*.bat in your .gitignore in case you don't want these files being uploaded with your project. If you don't upload these files with your project, you should probably put instructions on what to do with these files in noticeable font size.

Feel free to pull request if you come up with an improvement. Tag me on GitHub or Scratch (BASIC4U) if you use this tool, I'd love to see what you're doing with it!