Merged jpcgt/flatcam/Beta into Beta
This commit is contained in:
41
Makefile
Normal file
41
Makefile
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
|
||||||
|
# Install on Ubuntu(-like) systems
|
||||||
|
|
||||||
|
# Install dependencies system-wide (including python modules)
|
||||||
|
install_dependencies:
|
||||||
|
sudo -H ./setup_ubuntu.sh
|
||||||
|
|
||||||
|
USER_ID = $(shell id -u)
|
||||||
|
|
||||||
|
LOCAL_PATH = $(shell pwd)
|
||||||
|
LOCAL_APPS_PATH = ~/.local/share/applications
|
||||||
|
ASSEST_PATH = assets/linux
|
||||||
|
|
||||||
|
INSTALL_PATH = /usr/share/flatcam-beta
|
||||||
|
APPS_PATH = /usr/share/applications
|
||||||
|
|
||||||
|
install:
|
||||||
|
ifeq ($(USER_ID), 0)
|
||||||
|
@ echo "Installing it system-wide"
|
||||||
|
cp -rf $(LOCAL_PATH) $(INSTALL_PATH)
|
||||||
|
ln -sf $(INSTALL_PATH)/assets/linux/flatcam-beta /usr/local/bin
|
||||||
|
cp -f $(ASSEST_PATH)/flatcam-beta.desktop $(APPS_PATH)
|
||||||
|
@ sed -i "s|Exec=.*|Exec=$(INSTALL_PATH)/$(ASSEST_PATH)/flatcam-beta|g" $(APPS_PATH)/flatcam-beta.desktop
|
||||||
|
@ sed -i "s|Icon=.*|Icon=$(INSTALL_PATH)/$(ASSEST_PATH)/icon.png|g" $(APPS_PATH)/flatcam-beta.desktop
|
||||||
|
else
|
||||||
|
@ echo "Installing locally for $(USER) only"
|
||||||
|
cp -f $(ASSEST_PATH)/flatcam-beta.desktop $(LOCAL_APPS_PATH)
|
||||||
|
@ sed -i "s|Exec=.*|Exec=$(LOCAL_PATH)/$(ASSEST_PATH)/flatcam-beta|g" $(LOCAL_APPS_PATH)/flatcam-beta.desktop
|
||||||
|
@ sed -i "s|Icon=.*|Icon=$(LOCAL_PATH)/$(ASSEST_PATH)/icon.png|g" $(LOCAL_APPS_PATH)/flatcam-beta.desktop
|
||||||
|
endif
|
||||||
|
|
||||||
|
remove:
|
||||||
|
ifeq ($(USER_ID), 0)
|
||||||
|
@ echo "Uninstalling it system-wide"
|
||||||
|
rm -rf $(INSTALL_PATH)
|
||||||
|
rm -f /usr/local/bin/flatcam-beta
|
||||||
|
rm -r $(APPS_PATH)/flatcam-beta.desktop
|
||||||
|
else
|
||||||
|
@ echo "Uninstalling only for $(USER) user"
|
||||||
|
rm -f $(LOCAL_APPS_PATH)/flatcam-beta.desktop
|
||||||
|
endif
|
||||||
12
README.md
12
README.md
@@ -61,6 +61,18 @@ sudo apt-get install python3.8-pip
|
|||||||
- run the file setup_ubuntu.sh and install all the dependencies with the command: ./setup_ubuntu.sh
|
- run the file setup_ubuntu.sh and install all the dependencies with the command: ./setup_ubuntu.sh
|
||||||
- if the previous command is successful and has no errors, run FlatCAM with the command: python3 FlatCAM.py
|
- if the previous command is successful and has no errors, run FlatCAM with the command: python3 FlatCAM.py
|
||||||
|
|
||||||
|
- Alternatively you can install it on Ubuntu with:
|
||||||
|
```
|
||||||
|
# Optional if depencencies are missing
|
||||||
|
make install_dependencies
|
||||||
|
|
||||||
|
# Install for the current user only (using the folder in its place)
|
||||||
|
make install
|
||||||
|
|
||||||
|
# System-wide instalation
|
||||||
|
sudo make install
|
||||||
|
```
|
||||||
|
|
||||||
3. MacOS
|
3. MacOS
|
||||||
Instructions from here: https://gist.github.com/natevw/3e6fc929aff358b38c0a#gistcomment-3111878
|
Instructions from here: https://gist.github.com/natevw/3e6fc929aff358b38c0a#gistcomment-3111878
|
||||||
|
|
||||||
|
|||||||
10
assets/linux/flatcam-beta
Executable file
10
assets/linux/flatcam-beta
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
current_path=$(dirname $0)
|
||||||
|
cd $current_path
|
||||||
|
current_path=$(pwd)
|
||||||
|
cd -
|
||||||
|
|
||||||
|
script_path=$(dirname $current_path)
|
||||||
|
|
||||||
|
python3 $script_path/FlatCAM.py $*
|
||||||
7
assets/linux/flatcam-beta.desktop
Normal file
7
assets/linux/flatcam-beta.desktop
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=FlatCAM Beta
|
||||||
|
Exec=./bin/flatcam-beta
|
||||||
|
Type=Application
|
||||||
|
StartupNotify=true
|
||||||
|
Icon=./assets/icon.png
|
||||||
|
Comment=G-Code from GERBERS
|
||||||
BIN
assets/linux/icon.png
Normal file
BIN
assets/linux/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
@@ -1,9 +1,48 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh -e
|
||||||
sudo apt install --reinstall libpng-dev libfreetype6 libfreetype6-dev libgeos-dev libspatialindex-dev
|
|
||||||
sudo apt install --reinstall python3-dev python3-pyqt5 python3-pyqt5.qtopengl python3-gdal python3-simplejson
|
|
||||||
sudo apt install --reinstall python3-pip python3-tk
|
|
||||||
|
|
||||||
sudo python3 -m pip install --upgrade pyqt5
|
# Ubuntu packages
|
||||||
sudo python3 -m pip install --upgrade pip numpy shapely rtree tk lxml cycler python-dateutil kiwisolver dill
|
|
||||||
sudo python3 -m pip install --upgrade vispy pyopengl setuptools svg.path ortools freetype-py fontTools rasterio ezdxf
|
sudo apt-get install -y \
|
||||||
sudo python3 -m pip install --upgrade matplotlib qrcode reportlab svglib
|
libfreetype6 \
|
||||||
|
libfreetype6-dev \
|
||||||
|
libgeos-dev \
|
||||||
|
libpng-dev \
|
||||||
|
libspatialindex-dev \
|
||||||
|
python3-dev \
|
||||||
|
python3-gdal \
|
||||||
|
python3-pip \
|
||||||
|
python3-pyqt5 \
|
||||||
|
python3-pyqt5.qtopengl \
|
||||||
|
python3-simplejson \
|
||||||
|
python3-tk
|
||||||
|
|
||||||
|
|
||||||
|
# Python packages
|
||||||
|
|
||||||
|
sudo -H python3 -m pip install --upgrade \
|
||||||
|
pip \
|
||||||
|
numpy \
|
||||||
|
shapely \
|
||||||
|
rtree \
|
||||||
|
tk \
|
||||||
|
lxml \
|
||||||
|
cycler \
|
||||||
|
python-dateutil \
|
||||||
|
kiwisolver \
|
||||||
|
dill \
|
||||||
|
vispy \
|
||||||
|
pyopengl \
|
||||||
|
setuptools \
|
||||||
|
svg.path \
|
||||||
|
ortools \
|
||||||
|
freetype-py \
|
||||||
|
fontTools \
|
||||||
|
rasterio \
|
||||||
|
ezdxf \
|
||||||
|
matplotlib \
|
||||||
|
qrcode \
|
||||||
|
pyqt5 \
|
||||||
|
reportlab \
|
||||||
|
svglib
|
||||||
|
|
||||||
|
sudo -H easy_install -U distribute
|
||||||
|
|||||||
Reference in New Issue
Block a user