FreeCAD: use pkg-install

pull/910/head
Botspot 4 years ago
parent 36f3022668
commit 1965ee382b

@ -7,15 +7,11 @@ function error {
exit 1 exit 1
} }
#ensure uninstalled already
sudo apt purge -y freecad || error "apt failed to purge the freecad package!"
#remove file ahead of time, just in case it exists
rm -f ~/freecad.deb rm -f ~/freecad.deb
#download file #download file
wget -O ~/freecad.deb https://github.com/chunky-milk/freecad-rpi/releases/download/v0.19.2/freecad_0.19.2_armhf.deb || error "Failed to download freecad.deb" wget -O ~/freecad.deb https://github.com/chunky-milk/freecad-rpi/releases/download/v0.19.2/freecad_0.19.2_armhf.deb || error "Failed to download freecad.deb"
#install freecad #install freecad
sudo apt install -y --fix-broken ~/freecad.deb || error "apt failed to install freecad.deb" "${DIRECTORY}/pkg-install" "$HOME/freecad.deb" "$(dirname "$0")" || error "apt failed to install freecad.deb"
rm -f ~/freecad.deb rm -f ~/freecad.deb

@ -7,4 +7,4 @@ function error {
exit 1 exit 1
} }
sudo apt purge -y freecad || error "apt failed to purge the freecad package!" "${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1

Loading…
Cancel
Save