Skip to content

Commit d969bd9

Browse files
committed
update chirp download
1 parent 9f56d8a commit d969bd9

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

functions/additional.function

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,27 @@ sudo make install
399399
##################################
400400
CHIRP() {
401401

402-
sudo apt install -y chirp
402+
#sudo apt install -y chirp
403+
cd ${DIR} || return
404+
CHIRP_FILE=$(curl -s https://github.com/goldstar611/chirp-appimage/releases | grep armhf | head -1 | sed 's/.*"\///;s/".*//')
405+
LINK="https://github.com/$CHIRP_FILE"
406+
wget $LINK
407+
CHIRP=$(ls | grep -i chirp)
408+
sudo mv $CHIRP /usr/local/bin/chirp
409+
410+
cat >chirp.desktop <<EOF
411+
[Desktop Entry]
412+
Name=Chirp
413+
Comment=Radio Programming Software
414+
GenericName=Chirp
415+
Exec=/usr/local/bin/chirp
416+
Icon=qsstv.png
417+
Type=Application
418+
Terminal=false
419+
Categories=HamRadio;
420+
EOF
421+
422+
sudo mv chirp.desktop /usr/share/applications/
403423

404424
OLDCODE(){
405425
#left for reference

0 commit comments

Comments
 (0)