Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelfmlourenco authored Apr 21, 2024
1 parent 49efd64 commit cc931b9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
13 changes: 6 additions & 7 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ installation, you must certify that your system is Debian based (or at least
uses apt-get) and that you have an active Internet connection. It is important
to note that you should also have the control commands for the function
generator already installed, but you can always install them later (please
refer to the packages "gf2-1.1.tar.gz" or "gf2-1.0.tar.gz" to do so).
refer to the package "gf2-2.0.tar.gz" to do so).

A list of the included scripts follows:
– install.sh;
Expand All @@ -15,16 +15,15 @@ A list of the included scripts follows:
In order to compile and install GF2 GUI for the first time, all you have to do
is to run "install.sh" by invoking "sudo ./install.sh" on a terminal window,
after changing your working directory to the current one. This script will
first obtain and install the required "build-essential" and "qt5-default"
packages (if they are not installed yet). Then it will compile the application
and move it to "/usr/local/bin/".
first obtain and install the required "build-essential" and
"qt5-default"/"qtbase5-dev" packages (if they are not installed yet). Then it
will compile the application and move it to "/usr/local/bin/".

Conversely, to uninstall, you should run "uninstall.sh" by invoking "sudo
./uninstall.sh", again on a terminal window after making sure that your
working directory is this one. This will delete the previously installed
application and source code. However it won't remove the "build-essential" and
"qt5-default" packages, since they could be already installed prior to the
first installation.
application and source code. However it won't remove the packages mentioned
above, since they could be already installed before the first installation.

P.S.:
Since the GUI was designed having KDE in mind, you should get the best
Expand Down
8 changes: 6 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,24 @@ echo Obtaining required packages...
apt-get -qq update
apt-get -qq install build-essential
apt-get -qq install qt5-default
apt-get -qq install qtbase5-dev
echo Copying source code files...
mkdir -p /usr/local/src/gf2-gui/icons
mkdir -p /usr/local/src/gf2-gui/misc
cp -f src/about.cpp /usr/local/src/gf2-gui/.
cp -f src/about.h /usr/local/src/gf2-gui/.
cp -f src/about.ui /usr/local/src/gf2-gui/.
cp -f src/gf2-gui.pro /usr/local/src/gf2-gui/.
cp -f src/GPL.txt /usr/local/src/gf2-gui/.
cp -f src/icons/active64.png /usr/local/src/gf2-gui/icons/.
cp -f src/icons/gf2-gui.png /usr/local/src/gf2-gui/icons/.
cp -f src/icons/greyed64.png /usr/local/src/gf2-gui/icons/.
cp -f src/icons/selected64.png /usr/local/src/gf2-gui/icons/.
cp -f src/main.cpp /usr/local/src/gf2-gui/.
cp -f src/mainwindow.cpp /usr/local/src/gf2-gui/.
cp -f src/mainwindow.h /usr/local/src/gf2-gui/.
cp -f src/mainwindow.ui /usr/local/src/gf2-gui/.
cp -f src/misc/gf2-gui.desktop /usr/local/src/gf2-gui/misc/.
cp -f src/resources.qrc /usr/local/src/gf2-gui/.
cp -f src/README.txt /usr/local/src/gf2-gui/.
cp -f src/serial.cpp /usr/local/src/gf2-gui/.
Expand All @@ -26,6 +30,6 @@ cp -f src/serial.ui /usr/local/src/gf2-gui/.
echo Building and installing application...
cd /usr/local/src/gf2-gui
qmake
make all clean
mv -f gf2-gui /usr/local/bin/.
make install clean
rm -f gf2-gui
echo Done!
7 changes: 7 additions & 0 deletions uninstall.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#!/bin/sh

echo Removing application...
rm -f /usr/local/share/applications/gf2-gui.desktop
rmdir --ignore-fail-on-non-empty /usr/local/share/applications
rm -f /usr/local/share/icons/hicolor/128x128/apps/gf2-gui.png
rmdir --ignore-fail-on-non-empty /usr/local/share/icons/hicolor/128x128/apps
rmdir --ignore-fail-on-non-empty /usr/local/share/icons/hicolor/128x128
rmdir --ignore-fail-on-non-empty /usr/local/share/icons/hicolor
rmdir --ignore-fail-on-non-empty /usr/local/share/icons
rm -f /usr/local/bin/gf2-gui
echo Removing source code files...
rm -rf /usr/local/src/gf2-gui
Expand Down

0 comments on commit cc931b9

Please sign in to comment.