Skip to content

Commit

Permalink
stage6: Add scopy shortcuts
Browse files Browse the repository at this point in the history
Add scopy shortcut to the menu bar and an alias to bashrc.

Signed-off-by: Sergiu Cuciurean <sergiu.cuciurean@analog.com>

Conflicts:
	stage6/04-gnuradio-m2k/00-run.sh
  • Loading branch information
scuciurean authored and SRaus committed Mar 1, 2022
1 parent e8a1f8d commit bee840d
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions stage6/04-gnuradio-m2k/00-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,28 @@ build_libsigrokdecode() {
}
install_scopy() {
[ -f "Scopy.flatpak" ] || {
wget ${SCOPY}
unzip ${SCOPY_ARCHIVE}
}
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install Scopy.flatpak --assumeyes
[ -f "Scopy.flatpak" ] || {
wget ${SCOPY}
unzip ${SCOPY_ARCHIVE}
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install Scopy.flatpak --assumeyes
mkdir -p /usr/local/share/scopy
wget https://raw.githubusercontent.com/analogdevicesinc/scopy/86ddd9dce67b2d90e7e52801d6bf730859153c4f/resources/icon_big.svg
mv icon_big.svg /usr/local/share/scopy/icon.svg
}
echo "
[Desktop Entry]
Version=1.1
Type=Application
Encoding=UTF-8
Name=Scopy
Comment=ADI
Icon=/usr/local/share/scopy/icon.svg
Exec=flatpak run org.adi.Scopy
Terminal=false
Categories=Science" > /usr/share/applications/Scopy.desktop
echo "alias scopy='flatpak run org.adi.Scopy'" >> /root/.bashrc
echo "alias scopy='flatpak run org.adi.Scopy'" >> /home/analog/.bashrc
}
install_scopy
Expand Down

0 comments on commit bee840d

Please # to comment.