Package Details: scratch3 3.30.5-2

Git Clone URL: https://aur.archlinux.org/scratch3.git (read-only, click to copy)
Package Base: scratch3
Description: Scratch 3.0 as a self-contained desktop application
Upstream URL: https://scratch.mit.edu
Keywords: education kids programing
Licenses: custom:BSD-3-Clause
Conflicts: scratch3-bin
Submitter: relrel
Maintainer: etaboon
Last Packager: etaboon
Votes: 9
Popularity: 0.000024
First Submitted: 2020-08-14 14:55 (UTC)
Last Updated: 2023-10-26 22:40 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4

etaboon commented on 2021-04-14 20:31 (UTC)

Queenmedley was right: there are no images showed in "choose a sprite".

This is the same for "choose a background" (no images) and for "choose a sound" (no sound except the cat's one).

Proposal to fix this issue (package size will grow 113.6MB to 172.6MB but works for me), to make this work, I had to rename the downloaded file scratch3 to scratch3.sh. The installed file will still be named "scratch3":

$ diff PKGBUILD.old PKGBUILD
9c9
< depends=(electron)
---
> depends=(electron11)
13c13
<         "$pkgname"
---
>         "$pkgname.sh"
18c18
< 'd9dd01d52f91ded4ef033dcd22ed97e7bf3a2afc64b28b5c2d36efd095897953f0d93b7e5ec98905b970f99da2fa57b88e56e01cad54eec13af98e4786cb5bc7'
---
> '6cc5ab074b5e26361a6b80b0b98fe8a7804544577f11ec8b59c76b6d52b8c2916ac3f7eb09b8767a21915f7de91da220b55d9b50ceb32432c2d02969175d97f9'
24,25c24
<       7za x -bd -y "Scratch%20$pkgver%20Setup.exe" resources/
<
---
>       7za x -aoa -y "Scratch%20$pkgver%20Setup.exe" resources/ -o$pkgname/
27c26,35
<       chmod 755 resources/{,static/{,assets/}}
---
>       chmod 755 $pkgname/resources/{,static/{,assets/}}
>
>       # We don't need windows/dos file executables, remove them.
>       find $pkgname/ -type f -name "*.exe" -delete
>
>       # Copy the electron files needed for scratch.
>       cp -rf /usr/lib/electron11/* $srcdir/$pkgname/
>
>       # This file is useless
>       rm $pkgname/resources/default_app.asar
38,39c46,47
<       install -Dm644 -t "$pkgdir/usr/share/$pkgname/" resources/app.asar
<       cp -r resources/static/ "$pkgdir/usr/share/$pkgname/"
---
>       install -dm755 "${pkgdir}/usr/share/$pkgname"
>       cp -r $srcdir/$pkgname -t "$pkgdir/usr/share"
41c49
<       install -Dm755 -t "$pkgdir/usr/bin/" "$pkgname"
---
>       install -Dm755 "$pkgname.sh" $pkgdir/usr/bin/$pkgname

For the bash script:

$ diff scratch3 scratch3.sh
3c3
< exec electron /usr/share/scratch3/app.asar "$@"
---
> exec /usr/share/scratch3/electron "$@"

Tested successfully with Scratch3 3.18.1 and 3.20.1.

etaboon commented on 2021-04-14 15:16 (UTC)

Scratch3 stopped working for me:

a window opens with "Scratch is loading..." forever.

Had to replace electron with electron11 as a workaround:

$ diff PKGBUILD.old PKGBUILD.new
9c9
< depends=(electron)
---
> depends=(electron11)
18c18
< 'd9dd01d52f91ded4ef033dcd22ed97e7bf3a2afc64b28b5c2d36efd095897953f0d93b7e5ec98905b970f99da2fa57b88e56e01cad54eec13af98e4786cb5bc7'
---
> 'b3c108d89a5da7394330782dd1e2e59167816236f2410a2ac9bb5fbe89ba4749667ceea91b174b4a7787e251fdd393b06d57a146611c6a66004aff5cc0ac9474'

$ diff scratch3.old scratch3.new
3c3
< exec electron /usr/share/scratch3/app.asar "$@"
---
> exec electron11 /usr/share/scratch3/app.asar "$@"

Tested successfully with Scratch3 3.18.1 and 3.20.1.

queenmedley commented on 2021-02-06 07:57 (UTC)

There are no images showed in "choose a sprite".

Amethyste69 commented on 2021-01-27 19:43 (UTC) (edited on 2021-01-27 19:43 (UTC) by Amethyste69)

Adding this line fixed this issue indeed. Many thanks

markus24 commented on 2021-01-20 20:29 (UTC)

@relrel Proposal to fix the build issue mentioned by @Amethyste69 https://pastebin.com/zNtL31Rt

gendesk requires --pkgname "$pkgname"

Amethyste69 commented on 2020-11-16 21:45 (UTC)

Hello

I've got this message


[PKGBUILD]                        Generating desktop file... ok
==> Suppression du répertoire $pkgdir/ existant…
==> Entre dans l’environnement fakeroot…
==> Lancement de package()…
install: impossible d'évaluer 'scratch3.desktop': Aucun fichier ou dossier de ce type

Impossible to evaluate 'scratch3.desktop' : no such file or directory

Thanks for your help

relrel commented on 2020-09-02 05:51 (UTC)

@PCITechie This package runs natively, without wine. It just extracts the electron resources (which are platform-independent) from the Windows installer.

In fact it does what the source of your scratch3-bin package does, only without re-packaing to .deb.

Also, since this package is currently up-to-date, unlike scratch3-bin, I think it would be great to merge scratch3-bin into this package, in order to reduce duplication and confusion of users.

PCITechie commented on 2020-09-01 17:21 (UTC)

I advise you to call this package "scratch3-win32" instead of scratch3 so people know it runs in wine and not natively.