I can try...
Lyshie here create the create-deb-raspbian.sh file that do everything. The script installs some necessary software, download Scratch3 windows version and create the .deb file. You can stop to the second step if you don't need to distribute the .deb file to someone.
But what's inside this script? (You can execute the whole script or copy these lines in the terminal one at a time in the terminal and looks what happens, that is a better thing):
- sudo apt-get install npm gdebi p7zip-full (install necessary software)
- npm install electron@4.2.5 --save-dev (install electron that, more or less, do what AdobeAir did in previous version of Scratch)
- mkdir /tmp/scratch-desktop (make a folder inside /tmp)
- (download last Windows installer version)
Code: Select all
wget -O /tmp/scratch-desktop.exe 'https://downloads.scratch.mit.edu/desktop/Scratch%20Desktop%20Setup%203.4.0.exe'
- 7za x -aoa -y /tmp/scratch-desktop.exe -o/tmp/scratch-desktop (decompress .exe, it is an executable .zip folder apparently)
- cp -rf ~/node_modules/electron/dist/* /tmp/scratch-desktop/ (copy files from electron folder to scratch-desktop folder)
- ln -fsr /tmp/scratch-desktop/electron /tmp/scratch-desktop/scratch-desktop (create a simbolic link so you can launch software typing scratch-desktop instead of electron)
- /tmp/scratch-desktop/scratch-desktop (+Enter to launch Scratch)
The second part of the script make all the necessary to create .deb file.
To use the whole script, you must:
1) open a terminal (ctrl+alt+T or use icon)
2) download .sh script
Code: Select all
wget https://gist.githubusercontent.com/lyshie/0c49393076b8b375ca1bd98c28f95fb0/raw/831f65cdee181e1f5159d782a12cadf04994fc7e/create-deb-raspbian.sh
chmod +x create-deb-raspbian.sh
Code: Select all
chmod +x create-deb-raspbian.sh
Code: Select all
./create-deb-raspbian.sh
Omar