Artemis 4 RC1
This commit is contained in:
25
building/Linux/build_linux.sh
Normal file
25
building/Linux/build_linux.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo "Building Linux target ..."
|
||||
|
||||
echo "Installing requirements ..."
|
||||
pip install -r requirements.txt
|
||||
pip install nuitka
|
||||
|
||||
echo "Building with Nuitka ..."
|
||||
python -m nuitka app.py \
|
||||
--standalone \
|
||||
--follow-imports \
|
||||
--show-modules \
|
||||
--assume-yes-for-downloads \
|
||||
--disable-console \
|
||||
--enable-plugin=pyside6 \
|
||||
--include-qt-plugins=sensible,styles,qml,multimedia \
|
||||
--include-data-files=./artemis/resources.py=./artemis/resources.py \
|
||||
--include-data-files=./config/qtquickcontrols2.conf=./config/qtquickcontrols2.conf \
|
||||
--include-data-files=./building/Linux/create_shortcut.sh=./create_shortcut.sh \
|
||||
--include-data-files=./images/artemis_icon.svg=./images/artemis_icon.svg
|
||||
|
||||
chmod 755 ./app.dist/app.bin
|
||||
|
||||
echo "Building Linux target finished."
|
||||
62
building/Linux/create_shortcut.sh
Normal file
62
building/Linux/create_shortcut.sh
Normal file
@@ -0,0 +1,62 @@
|
||||
clear
|
||||
echo "
|
||||
===================================
|
||||
Artemis 4 Shortcut Creator
|
||||
LINUX
|
||||
===================================
|
||||
"
|
||||
|
||||
# Set the correct permissions for Artemis folder
|
||||
echo "Gaining admin privileges and set folder read/write permission..."
|
||||
echo ""
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
sudo chmod 700 $DIR
|
||||
|
||||
# Generation of shortcut
|
||||
file=/home/$USER/.local/share/applications/artemis.desktop
|
||||
if [ -e "$file" ]; then
|
||||
echo "A shortcut of Artemis 4 is already present:"
|
||||
echo ""
|
||||
echo "R) Remove the shortcut and the icon file"
|
||||
echo "U) Update the shortcut"
|
||||
echo ""
|
||||
read -p "" doit
|
||||
case $doit in
|
||||
u|U)
|
||||
echo "[Desktop Entry]" >> /home/$USER/.local/share/applications/artemis.desktop
|
||||
echo "Name=Artemis" >> /home/$USER/.local/share/applications/artemis.desktop
|
||||
echo "Type=Application" >> /home/$USER/.local/share/applications/artemis.desktop
|
||||
echo "StartupWMClass=artemis" >> /home/$USER/.local/share/applications/artemis.desktop
|
||||
echo "Exec=sh -c \"cd $DIR && ./app.bin\" " >> /home/$USER/.local/share/applications/artemis.desktop
|
||||
echo "Terminal=false" >> /home/$USER/.local/share/applications/artemis.desktop
|
||||
echo "Icon=artemis_icon" >> /home/$USER/.local/share/applications/artemis.desktop
|
||||
sudo cp ./images/artemis_icon.svg /usr/share/icons/
|
||||
echo "Link Updated!"
|
||||
;;
|
||||
r|R)
|
||||
sudo rm /home/$USER/.local/share/applications/artemis.desktop
|
||||
sudo rm /usr/share/icons/artemis_icon.svg
|
||||
echo "Link and icon removed!"
|
||||
;;
|
||||
*) echo "Sorry! Invalid option $REPLY";;
|
||||
esac
|
||||
else
|
||||
echo "[Desktop Entry]" >> /home/$USER/.local/share/applications/artemis.desktop
|
||||
echo "Name=Artemis" >> /home/$USER/.local/share/applications/artemis.desktop
|
||||
echo "Type=Application" >> /home/$USER/.local/share/applications/artemis.desktop
|
||||
echo "StartupWMClass=artemis" >> /home/$USER/.local/share/applications/artemis.desktop
|
||||
echo "Exec=sh -c \"cd $DIR && ./app.bin\" " >> /home/$USER/.local/share/applications/artemis.desktop
|
||||
echo "Terminal=false" >> /home/$USER/.local/share/applications/artemis.desktop
|
||||
echo "Icon=artemis_icon" >> /home/$USER/.local/share/applications/artemis.desktop
|
||||
sudo cp ./images/artemis_icon.svg /usr/share/icons/
|
||||
echo "
|
||||
Link copied in: /home/$USER/.local/share/applications/artemis.desktop
|
||||
Icon copied in: /usr/share/icons/artemis_icon.svg
|
||||
"
|
||||
fi
|
||||
|
||||
echo "
|
||||
================================
|
||||
SETTING COMPLETE
|
||||
================================
|
||||
"
|
||||
Reference in New Issue
Block a user