In order to build Scratch 3 desktop application for Linux execute commands below.
-
Install Git and Node.js (the easiest way to install Node.js is to use nvm). This is how it can be done in Ubuntu 20.04:
sudo apt install -y git wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash source ~/.bashrc nvm install --lts=fermium -
Clone repository:
git clone git@github.com:LLK/scratch-desktopor
git clone https://github.com/LLK/scratch-desktop cd scratch-desktop -
Checkout version of interest by tag (optionally), e.g.:
git checkout v3.24.0 -
Install dependencies:
npm install -
Compile the application:
npm run clean && npm run compile && npm run fetch -
Prepare Linux packages:
npx electron-builder --linuxIf you are interested in specific package targets only then specify them explicitly:
npx electron-builder --linux zipThe results can be found in
scratch-desktop/distdirectory.