I am trying to create a ScriptLauncher.AppImage for aarch64 using a Raspberry Pi.
First off, I know nothing about Node.js.
The Pi was flashed with the image companion-pi-beta-384-15-02-26.img which is based on Debian Trixie from bitfocus.io.
My goal is to have ScriptLauncher running on the Pi along with Companion (and not somewhere else).
After many struggles, this is how I did achieve my goal (no .AppImage yet, see end of the post):
#############
# user root #
#############
aptitude install \
nodejs npm git xvfb python3-distutils-extra libx11-dev gcc-13 \
libxtst-dev libpng-dev zlib1g-dev libx11-dev libxtst-dev g++-13 \
libpng++-dev build-essential libatk1.0-0t64 libatk-bridge2.0-0t64 \
libcups2t64 libgtk-3-0t64 libasound2t64 yarnpkg
useradd -m -c 'Software Management' -U -s /bin/bash software
usermod -aG sudo,audio,video,render software
mkdir /software
chown software:root /software
cat > /etc/systemd/system/scriptlauncher.service <<-EOF
[Unit]
Description=ScriptLauncher App
[Service]
Type=simple
Restart=always
User=software
Group=software
WorkingDirectory=/software/scriptlauncher
ExecStart=/usr/bin/xvfb-run dbus-run-session -- /software/bin/yarn start
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable scriptlauncher.service
#################
# user software #
#################
mkdir -p /software/bin
corepack enable --install-directory /software/bin
export PATH="/software/bin:$PATH"
yarn --version
>1.22.22
node --version
>v20.19.2
cd /software
git clone https://github.com/josephdadams/scriptlauncher
cd scriptlauncher
# the default compiler in Debian Trixie is gcc-14 but we need gcc-13 to successfully compile ScriptLauncher
export CC=gcc-13
export CXX=g++-13
yarn
npm rebuild
npx electron-rebuild -f -w robotjs
xvfb-run yarn start
<Ctrl>-C
# killall Xvfb
#
# rm -rf /tmp/.X99-lock
vim ~/.config/scriptlauncher/config.json
>password": "MyComplexPass",
sudo reboot
All works fine since Companion can connect to http://localhost:8810 using MyComplexPass.
But when I try to run the last yarn dist command, as per the building instructions, I get the following error message:
yarn dist
>yarn run v1.22.22
>error Command "dist" not found.
>info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Any suggestion is highly appreciated.
Thank you.
I am trying to create a ScriptLauncher.AppImage for aarch64 using a Raspberry Pi.
First off, I know nothing about Node.js.
The Pi was flashed with the image companion-pi-beta-384-15-02-26.img which is based on Debian Trixie from bitfocus.io.
My goal is to have ScriptLauncher running on the Pi along with Companion (and not somewhere else).
After many struggles, this is how I did achieve my goal (no .AppImage yet, see end of the post):
All works fine since Companion can connect to http://localhost:8810 using MyComplexPass.
But when I try to run the last yarn dist command, as per the building instructions, I get the following error message:
Any suggestion is highly appreciated.
Thank you.