Discuss Scratch

MaybeARandomFox
Scratcher
100+ posts

Porting scratch to debian

I saw this suggestion about debian support. Someone tried to port it alredy here But it is in python wich is not great. So i saw the source code of Scratch VM and i will try to port it to Debian. Is it a good idea to write it in C?
jettypumpkin07
Scratcher
1000+ posts

Porting scratch to debian

It's important to understand how Scratch 3 works before trying to get it running on Debian or other Linux distributions.

Scratch 3 is written in the same programming languages that make up a website - JavaScript to run block code, save/load projects and make the costume/paint editors work, HTML and CSS to define how the Stage, sprites and blocks are displayed on the screen. This is how it works so well in the Scratch website's online editor.

For the desktop versions of Scratch, the Electron framework is used to run all of these website files as a desktop app. This doesn't play well with languages like C or Python which would need a “web browser” to load these files, or lots of Scratch's code to be rewritten in that language to work.

——————————————

You can already use community-made workarounds to get the latest version of Scratch running on 32 and 64-bit Linux. These are not made by the Scratch Team but are completely open-source and should be safe to use.

- These terminal commands can download the Windows version of the Scratch 3 app, take all the files out of it and use Electron to rebuild it as a working native Linux app.

- TurboWarp Desktop, a mod of Scratch 3's editor and vm, also provides many Linux packages without the need to type in complicated commands to install it, though it also contains TurboWarp's various changes to the Scratch source code which you might not need.

Last edited by jettypumpkin07 (Sept. 10, 2023 00:50:53)

MaybeARandomFox
Scratcher
100+ posts

Porting scratch to debian

Ah thanks. But i will still try to port it.

Powered by DjangoBB