This commit is contained in:
Alexander Zhirov 2025-03-09 01:16:02 +03:00
commit 4bd060c44d
4 changed files with 41 additions and 0 deletions

5
README.md Normal file
View File

@ -0,0 +1,5 @@
![scratch](files/scratch-desktop.png)
# Scratch
[Scratch](https://scratch.mit.edu/) — крупнейшее в мире сообщество программирования для детей и язык программирования с простым визуальным интерфейсом, который позволяет молодым людям создавать цифровые истории, игры и анимацию.

View File

@ -0,0 +1,11 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=Scratch
GenericName=Create and share your own interactive stories, games, music and art
Comment=Create and share your own interactive stories, games, music and art
Exec=/opt/scratch/scratch-desktop
Icon=scratch-desktop
Terminal=false
StartupNotify=true
Categories=Education;

BIN
files/scratch-desktop.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

25
package.yml Normal file
View File

@ -0,0 +1,25 @@
name : scratch
version : 3.29.1
release : 1
source :
# - https://downloads.scratch.mit.edu/desktop/Scratch%20Setup.exe : dfca2f1a842aea69a2b0a22ca66fa7852f86259e3da4f576f8ae7fa16f1e9134
- https://ftp.zhirov.kz/trash/scratch_3.29.1.exe : dfca2f1a842aea69a2b0a22ca66fa7852f86259e3da4f576f8ae7fa16f1e9134
homepage : https://scratch.mit.edu/
license : AGPL-3.0
component : programming
summary : Scratch is the world's largest coding community for children and a coding language with a simple visual interface that allows young people to create digital stories, games, and animations.
description: |
Scratch is the world's largest coding community for children and a coding language with a simple visual interface that allows young people to create digital stories, games, and animations.
builddeps :
- nodejs
build : |
npm install electron asar --save-dev
install : |
mkdir -p $installdir/opt/scratch/resources/app
cp -r $workdir/node_modules/electron/dist/* $installdir/opt/scratch/
rm $installdir/opt/scratch/resources/default_app.asar
cp -r $workdir/resources/static $installdir/opt/scratch/resources
$workdir/node_modules/.bin/asar extract $workdir/resources/app.asar $installdir/opt/scratch/resources/app
ln -sfr $installdir/opt/scratch/electron $installdir/opt/scratch/scratch-desktop
install -Dm644 $pkgfiles/scratch-desktop.desktop "$installdir/usr/share/applications/scratch-desktop.desktop"
install -Dm644 $pkgfiles/scratch-desktop.png "$installdir/opt/scratch/scratch-desktop.png"