|
6 | 6 | # Copyright (c) 2024 Analog Devices, Inc. |
7 | 7 | # Author: Larisa Radu <larisa.radu@analog.com> |
8 | 8 |
|
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} |
12 | 13 |
|
13 | 14 | if [ "${CONFIG_SCOPY}" = y ]; then |
14 | 15 | if [ "${CONFIG_LIBIIO}" = y ]; then |
15 | 16 |
|
16 | | -mount -t proc proc "${BUILD_DIR}"/proc |
17 | | - |
18 | 17 | 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 |
29 | 34 | EOF |
30 | 35 |
|
31 | 36 | else |
|
0 commit comments