Package Details: scratch3 3.31.1-5

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://github.com/scratchfoundation/scratch-desktop
Keywords: education kids programing
Licenses: AGPL-3.0-only
Conflicts: scratch-desktop, scratch3-bin
Provides: scratch3
Replaces: scratch-desktop
Submitter: relrel
Maintainer: jasongodev
Last Packager: jasongodev
Votes: 14
Popularity: 0.099980
First Submitted: 2020-08-14 14:55 (UTC)
Last Updated: 2026-03-16 19:18 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

etaboon commented on 2022-01-02 19:03 (UTC) (edited on 2022-01-02 20:22 (UTC) by etaboon)

@unphysicalix: hi,
could you please tell me more about the context?
Which version of npm do you use? The system (wide) version or a local one?

$ pacman -Ss npm
community/npm 8.3.0-1 [installed]

$ npm --version
8.3.0

A local version (with its modules) may interfere with the app's modules.

$ which npm
/usr/bin/npm

If it's different, edit your .bashrc and revert the $PATH back
so as to not use local version. I've already seen such weird troubles.

Then in a folder save all the files needed: scratch3* > plain > save as...
And build the package:

$ makepkg

I've do it again just a minute ago and I didn't see any errors.

unphysicalix commented on 2022-01-02 16:46 (UTC)

Hi @etaboon,

sorry for taking to long to respond and test: it does not compile for me:

> scratch-desktop@3.27.0 compile
> mkdirp ./dist && electron-webpack --bail --display-error-details --env.minify=false --no-progress

[846404:0102/164406.075655:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /home/archie/data/yay-cache/scratch3/src/scratch-desktop-3.27.0/node_modules/electron/dist/chrome-sandbox is owned by root and has mode 4755.
Error: Command failed: /home/archie/data/yay-cache/scratch3/src/scratch-desktop-3.27.0/node_modules/electron/dist/electron --version
[846404:0102/164406.075655:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /home/archie/data/yay-cache/scratch3/src/scratch-desktop-3.27.0/node_modules/electron/dist/chrome-sandbox is owned by root and has mode 4755.

    at checkExecSyncError (child_process.js:790:11)
    at Object.execSync (child_process.js:863:15)
    at Object.<anonymous> (/home/archie/data/yay-cache/scratch3/src/scratch-desktop-3.27.0/webpack.makeConfig.js:17:38)
    at Module._compile (/home/archie/data/yay-cache/scratch3/src/scratch-desktop-3.27.0/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (/home/archie/data/yay-cache/scratch3/src/scratch-desktop-3.27.0/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
    at Object.<anonymous> (/home/archie/data/yay-cache/scratch3/src/scratch-desktop-3.27.0/webpack.main.js:3:20)
    at Module._compile (/home/archie/data/yay-cache/scratch3/src/scratch-desktop-3.27.0/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (/home/archie/data/yay-cache/scratch3/src/scratch-desktop-3.27.0/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
    at applyCustom (/home/archie/data/yay-cache/scratch3/src/scratch-desktop-3.27.0/node_modules/electron-webpack/src/main.ts:255:28)
    at WebpackConfigurator.applyCustomModifications (/home/archie/data/yay-cache/scratch3/src/scratch-desktop-3.27.0/node_modules/electron-webpack/src/main.ts:271:14)
    at WebpackConfigurator.configure (/home/archie/data/yay-cache/scratch3/src/scratch-desktop-3.27.0/node_modules/electron-webpack/src/main.ts:246:54)
    at configure (/home/archie/data/yay-cache/scratch3/src/scratch-desktop-3.27.0/node_modules/electron-webpack/src/main.ts:376:10)
/home/archie/data/yay-cache/scratch3/PKGBUILD: line 74: cd: dist/renderer: No such file or directory
==> ERROR: A failure occurred in prepare().
    Aborting...
 -> error making: scratch3

the weird cache-dir comes from a symlink that I added:

archie@946a8a7dd355 ~]$ ls -lart .cache/
total 32
lrwxrwxrwx 1 archie archie   27 Jul 28 07:19 yay -> /home/archie/data/yay-cache

diskspace is more than enough

etaboon commented on 2022-01-02 12:56 (UTC) (edited on 2022-01-02 12:57 (UTC) by etaboon)

@gyurman: hi,
I know nothing about cross compiling, sorry.

If I were you, first I would give a try to scratch3-bin. See my post.

If it doesn't run, I would then try to make a direct compile so as to check
if the resulting package is usable, even if it takes 2 hours to compile.
If not, don't waste your time in trying to cross compile! It won't run any better...

If the resulting package is usable, only then I would try cross compiling (If I were you).

Don't forget to report, thanks!

gyurman commented on 2022-01-02 11:05 (UTC)

How can I build with x64 system volunteer for aarch64? Same as distccd? https://wiki.archlinux.org/title/Distcc#Cross_compiling_with_distcc

etaboon commented on 2021-12-31 03:31 (UTC)

@Gyurman: szia,
I think I found a way to successfully build the package on your device.
In fact you were almost done!

The output directory used by electron-builder is
dist/linux-arm64-unpacked because of your ARM system
instead of dist/linux-unpacked (for arch=x86_64).
Something I couldn't be aware of.

I updated the PKGBUILD: it reads now the system's architecture value
and should use the right folder accordingly. But it needs testing
since I don't have such a device.

gyurman commented on 2021-12-28 05:22 (UTC) (edited on 2021-12-28 05:23 (UTC) by gyurman)

After 2 hours build:


Fetched //cdn.assets.scratch.mit.edu/internalapi/asset/aa488de9e2c871e9d4faecd246ed737a.wav/get/
Fetched //cdn.assets.scratch.mit.edu/internalapi/asset/7d91d95d841dc6cf1282914306a4674a.wav/get/
Fetched //cdn.assets.scratch.mit.edu/internalapi/asset/199b30c8b4fe0642e849924bd1e1b463.wav/get/
Fetch succeeded.
Shutting down 5 agents.
  • electron-builder  version=22.14.5 os=5.10.83-1-MANJARO-ARM-RPI
  • loaded configuration  file=/home/gyurmo/.cache/yay/scratch3/src/scratch-desktop-3.27.0/electron-builder.yaml
  • loaded parent configuration  file=/home/gyurmo/.cache/yay/scratch3/src/scratch-desktop-3.27.0/node_modules/electron-webpack/out/electron-builder.js
  • writing effective config  file=dist/builder-effective-config.yaml
  • packaging       platform=linux arch=arm64 electron=13.6.3 appOutDir=dist/linux-arm64-unpacked
  • downloading     url=https://github.com/electron/electron/releases/download/v13.6.3/electron-v13.6.3-linux-arm64.zip size=83 MB parts=8
  • downloaded      url=https://github.com/electron/electron/releases/download/v13.6.3/electron-v13.6.3-linux-arm64.zip duration=13.521s
cp: 'dist/linux-unpacked/resources/icon.png' reguláris fájl nem hozható létre: Nincs ilyen fájl vagy könyvtár
==> HIBA: Hiba történt a prepare()-ben.
    Megszakítás...
 -> error making: scratch3

etaboon commented on 2021-12-27 16:00 (UTC) (edited on 2022-01-30 19:22 (UTC) by etaboon)

From version 3.27.0-3 and later

Instead of using the windows binary, this version will build the app from sources, targeting Electron version 13.6.y.
If you prefer the other way, then install scratch3-bin instead.

Before starting the installation, please check your disk space, the PKGBUILD won't do it for you.

Total size of the build directory on my system: 1.9 GiB (2 009 713 885)

Tested successfully under KDE/Plasma X11 arch=x86_64.

Any feedback are welcomed.