Skip to content

Commit 4055df7

Browse files
committed
05.adi-tools/10.install-scopy: Install Scopy v2 rc2
Signed-off-by: mlradu <larisa.radu@analog.com>
1 parent 756f840 commit 4055df7

File tree

5 files changed

+41
-15
lines changed

5 files changed

+41
-15
lines changed

kuiper-stages.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ chroot "${BUILD_DIR}" << EOF
104104
elif ([ -e "${1}"/packages-iio-oscilloscope ] && [ "${CONFIG_IIO_OSCILLOSCOPE}" = y ])
105105
then
106106
xargs -a "${1}"/packages-iio-oscilloscope apt-get install --no-install-recommends -y
107+
elif ([ -e "${1}"/packages-scopy ] && [ "${CONFIG_SCOPY}" = y ])
108+
then
109+
xargs -a "${1}"/packages-scopy apt-get install -y
107110
elif ([ -e "${1}"/packages-libm2k ] && [ "${CONFIG_LIBM2K}" = y ])
108111
then
109112
xargs -a "${1}"/packages-libm2k apt-get install --no-install-recommends -y
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
libfuse2
2+
libxcb-icccm4
3+
libxcb-image0
4+
libxcb-keysyms1
5+
libxcb-render-util0
6+
libxcb-xinerama0
7+
libxkbcommon-x11-0
8+
libxcb-xkb1
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Desktop Entry]
2+
Version=2.0
3+
Icon=/usr/local/share/scopy/icons/scopy.png
4+
Exec=/usr/local/bin/<name>
5+
Terminal=false
6+
Type=Application
7+
Categories=Science
8+
Name=Scopy
9+
GenericName=Oscilloscope
10+
Comment=A software oscilloscope
8.67 KB
Loading

stages/05.adi-tools/10.install-scopy/run.sh

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,31 @@
66
# Copyright (c) 2024 Analog Devices, Inc.
77
# Author: Larisa Radu <larisa.radu@analog.com>
88

9-
export SCOPY_RELEASE=v1.4.0
10-
export SCOPY_ARCHIVE=Scopy-${SCOPY_RELEASE}-Linux-arm.zip
11-
export SCOPY=https://github.com/analogdevicesinc/scopy/releases/download/${SCOPY_RELEASE}/${SCOPY_ARCHIVE}
9+
export SCOPY_RELEASE=v2.0.0-beta-rc2
10+
export SCOPY_ARCHIVE=Scopy-${SCOPY_RELEASE}-Linux-${TARGET_ARCHITECTURE}-AppImage.zip
11+
export SCOPY_PATH=https://github.com/analogdevicesinc/scopy/releases/download/${SCOPY_RELEASE}/${SCOPY_ARCHIVE}
12+
export SCOPY=Scopy-${SCOPY_RELEASE}-Linux-${TARGET_ARCHITECTURE}
1213

1314
if [ "${CONFIG_SCOPY}" = y ]; then
1415
if [ "${CONFIG_LIBIIO}" = y ]; then
1516

16-
mount -t proc proc "${BUILD_DIR}"/proc
17-
1817
chroot "${BUILD_DIR}" << EOF
19-
wget ${SCOPY}
20-
unzip ${SCOPY_ARCHIVE}
21-
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
22-
flatpak install Scopy.flatpak --assumeyes
23-
rm -rf ${SCOPY_ARCHIVE}
24-
25-
echo "alias scopy='flatpak run org.adi.Scopy'" >> /etc/bash.bashrc
26-
echo "alias Scopy='flatpak run org.adi.Scopy'" >> /etc/bash.bashrc
27-
28-
umount /proc
18+
19+
# Install Scopy 2
20+
wget -q ${SCOPY_PATH}
21+
unzip ${SCOPY_ARCHIVE} && mv ${SCOPY}/* . && rm ${SCOPY_ARCHIVE}
22+
chmod +x ${SCOPY}.AppImage
23+
mv ${SCOPY}.AppImage /usr/local/bin
24+
25+
# Add desktop file and icon
26+
mkdir -p /usr/local/share/scopy/icons/
27+
mkdir -p /usr/local/share/applications/
28+
cp stages/05.adi-tools/10.install-scopy/files/scopy.desktop /usr/local/share/applications/
29+
cp stages/05.adi-tools/10.install-scopy/files/scopy.png /usr/local/share/scopy/icons/scopy.png
30+
sed -i 's/<name>/${SCOPY}.AppImage/g' /usr/local/share/applications/scopy.desktop
31+
32+
echo "alias scopy='/usr/local/bin/${SCOPY}.AppImage'" >> /etc/bash.bashrc
33+
echo "alias Scopy='/usr/local/bin/${SCOPY}.AppImage'" >> /etc/bash.bashrc
2934
EOF
3035

3136
else

0 commit comments

Comments
 (0)