Created
February 17, 2018 23:23
-
-
Save kichMan/4c7f1ca67c5f2e2a40e8eb4bd8bc1ad7 to your computer and use it in GitHub Desktop.
Скрипт для удобной установки FlatCam в Linux Mint (@source http://www.linuxmint.ro/install/flatcam)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DOWNLOAD_PATH=$(xdg-user-dir DOWNLOAD) | |
FLATCAM_ZIP="FlatCAM-8.5.zip" | |
echo Descarcare FlatCAM 8.5... | |
wget -cq https://bitbucket.org/jpcgt/flatcam/downloads/$FLATCAM_ZIP -P $DOWNLOAD_PATH | |
echo Instalare FlatCAM... | |
sudo unzip -o $DOWNLOAD_PATH/$FLATCAM_ZIP -d /opt/ | |
sudo apt-get update | |
sudo apt-get install -y build-essential libpng-dev libfreetype6 libfreetype6-dev python-dev python-simplejson python-qt4 python-numpy python-scipy python-matplotlib libgeos-dev python-shapely libspatialindex-dev python-tk python-pip | |
sudo pip install --upgrade pip setuptools | |
sudo -H easy_install -U distribute | |
sudo pip install --upgrade matplotlib Shapely | |
sudo pip install rtree svg.path | |
SHORTCUT="/usr/share/applications/flatcam.desktop" | |
sudo tee $SHORTCUT > /dev/null <<'DESKTOP' | |
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Categories=Graphics;GTK; | |
Name=FlatCAM | |
Comment=Free and Open-source PCB CAM | |
Exec=python FlatCAM.py | |
Icon=/opt/FlatCAM-8.5/share/flatcam_icon256.png | |
Path=/opt/FlatCAM-8.5/ | |
Terminal=false | |
StartupNotify=false | |
DESKTOP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Печалька, GitHub не подсвечивает "красиво" синтаксис