Open alexzk1 opened 4 weeks ago
Yeah, good idea. I hoped Qt fix problem with manual plugin update and I will automate this. But looks better to create external-updater
Yeah, good idea. I hoped Qt fix problem with manual plugin update and I will automate this. But looks better to create external-updater
I'm not sure if it is possible, as requires root pass :/ I tend to avoid giving it to GUI applications.
Sorry I changed name for future multi QtCreator support and show plugin version
Sorry I changed name for future multi QtCreator support and show plugin version
No problem, it just worked. It checks "Linux-x64.7z" ending. However, when you will add more creator versions that will need extension.
Updated script which handles version.
#!/bin/bash
DIR=/tmp/QodeAssist
PLUGINS_DIR=/lib/qtcreator/plugins
rm -rf ${DIR}
mkdir -p ${DIR}
cd ${DIR}
version=$(qtcreator --version | grep -oP 'Qt Creator \K[0-9]+\.[0-9]+\.[0-9]+')
echo "Qt Creator version detected: '$version'"
if [[ -z ${version} ]]; then
echo "Could not detect version of the Qt Creator."
exit 1
fi
curl -s https://api.github.com/repos/Palm1r/QodeAssist/releases/latest | \
grep "browser_download_url.*QtC${version}-Linux-x64\.7z" | \
cut -d : -f 2,3 | \
tr -d \" | \
wget -qi -
#We do not keep folder structure here, so file will be right in place.
7z e "*.7z"
mkdir -p ${PLUGINS_DIR}
sudo cp ./libQodeAssist.so ${PLUGINS_DIR}
echo "Latest plugin is installed. Run QtCreator now and check."
Just sharing bash script with you. Finally I was tired enough to do manual updates :D