Added Build Scripts.

This commit is contained in:
Chris Esposito 2018-01-09 10:12:02 +11:00
parent e957460134
commit 9ce1cd72ce
24 changed files with 228 additions and 1 deletions

2
.gitignore vendored
View File

@ -34,3 +34,5 @@ Desktop_Interface/debug/qrc_resources.cpp
!Desktop_Interface/bin/firmware/dfu-programmer.exe !Desktop_Interface/bin/firmware/dfu-programmer.exe
*.o *.o
Desktop_Interface/bin/Labrador Desktop_Interface/bin/Labrador
*.deb
*.tar.gz

View File

@ -2251,7 +2251,7 @@
</action> </action>
<action name="actionOpen_DAQ_File"> <action name="actionOpen_DAQ_File">
<property name="text"> <property name="text">
<string>Open DAQ File</string> <string>DAQ Playback</string>
</property> </property>
</action> </action>
</widget> </widget>

Binary file not shown.

View File

@ -0,0 +1,72 @@
#!/bin/bash
echo
echo
echo "Cleaning up files..."
echo
./cleanup-junk
echo
echo
echo "Copying latest dev build..."
echo
#Copy across latest dev build
#########################################################################
#### Change "~/Labrador-master" to your Labrador GitHub directory. ####
#########################################################################
cp ~/Labrador-master/Desktop_Interface/bin/Labrador Labrador
cp -r ~/Labrador-master/Desktop_Interface/bin/waveforms waveforms
cp -r ~/Labrador-master/Desktop_Interface/bin/firmware firmware
echo
echo
echo "Running linuxdeployqt..."
echo
#Linuxdeployqt
export PATH=$PWD/labradeb/usr/lib:$PATH
./linuxdeployqt* Labrador -qmake=/usr/bin/qmake
echo
echo
echo "Moving linuxdeployqt files..."
echo
#Move to LABRADEPLOY directory
mkdir LABRADEPLOY
mv lib LABRADEPLOY
mv plugins LABRADEPLOY
mv translations LABRADEPLOY
mv qt.conf LABRADEPLOY
mv Labrador LABRADEPLOY
mv waveforms LABRADEPLOY
mv firmware LABRADEPLOY
#Clean up unwanted shortcut
rm AppRun
echo
echo
echo "Building .deb..."
echo
#Replace old folder in deb
rm -r labradeb/usr/share/espotek/labrador
cp -r LABRADEPLOY labradeb/usr/share/espotek/labrador
#build the deb.
dpkg-deb --build labradeb
echo
echo
echo "Final cleanup..."
echo
./cleanup-junk
#install the new deb
#./labradeb-install

View File

@ -0,0 +1,14 @@
#!/bin/bash
rm -r LABRADEPLOY
rm -r Labrador
rm -r lib
rm -r plugins
rm -r translations
rm -r waveforms
rm -r settings.set
rm -r doc
rm -r labradeb/usr/share/espotek/labrador
rm AppRun
rm qt.conf

View File

@ -0,0 +1,7 @@
#!/bin/bash
sudo dpkg -i labradeb.deb
sudo udevadm control --reload-rules
sudo udevadm trigger
exec /usr/share/espotek/labrador/Labrador

View File

@ -0,0 +1,8 @@
Package: espotek-labrador
Version: 1.1
Section: base
Priority: optional
Architecture: i386
Depends: libusb-1.0-0 (>= 1.0.19)
Maintainer: Chris Esposito <admin@espotek.com>
Description: Labrador Christmas Update 2017!

View File

@ -0,0 +1,2 @@
ENV{ID_VENDOR_ID}=="03eb", ENV{ID_MODEL_ID}=="ba94", SYMLINK="EspoTek_Labrador", MODE="0666"
ENV{ID_VENDOR_ID}=="03eb", ENV{ID_MODEL_ID}=="2fe4", SYMLINK="ATXMEGA32A4U DFU Bootloader", MODE="0666"

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Name=EspoTek Labrador
Comment=Software Interface for Labrador Board
Exec=/usr/share/espotek/labrador/Labrador
Terminal=false
Type=Application
Categories=Electronics
Icon=/usr/share/app-install/icons/espotek-labrador.png

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,69 @@
#!/bin/bash
echo
echo
echo "Cleaning up files..."
echo
./cleanup-junk
echo
echo
echo "Copying latest dev build..."
echo
#Copy across latest dev build
cp ~/Git/Labrador/Desktop_Interface/bin/Labrador Labrador
cp -r ~/Git/Labrador/Desktop_Interface/bin/waveforms waveforms
cp -r ~/Git/Labrador/Desktop_Interface/bin/firmware firmware
echo
echo
echo "Running linuxdeployqt..."
echo
#Linuxdeployqt
export PATH=$PWD/labradeb/usr/lib:$PATH
./linuxdeployqt_x64 Labrador -qmake=/usr/lib/x86_64-linux-gnu/qt5/bin/qmake
echo
echo
echo "Moving linuxdeployqt files..."
echo
#Move to LABRADEPLOY directory
mkdir LABRADEPLOY
mv lib LABRADEPLOY
mv plugins LABRADEPLOY
mv translations LABRADEPLOY
mv qt.conf LABRADEPLOY
mv Labrador LABRADEPLOY
mv waveforms LABRADEPLOY
mv firmware LABRADEPLOY
#Clean up unwanted shortcut
rm AppRun
echo
echo
echo "Building .deb..."
echo
#Replace old folder in deb
rm -r labradeb/usr/share/espotek/labrador
cp -r LABRADEPLOY labradeb/usr/share/espotek/labrador
#build the deb.
dpkg-deb --build labradeb
echo
echo
echo "Final cleanup..."
echo
./cleanup-junk
#install the new deb
#./labradeb-install

View File

@ -0,0 +1,14 @@
#!/bin/bash
rm -r LABRADEPLOY
rm -r Labrador
rm -r lib
rm -r plugins
rm -r translations
rm -r waveforms
rm -r settings.set
rm -r doc
rm -r labradeb/usr/share/espotek/labrador
rm AppRun
rm qt.conf

View File

@ -0,0 +1,7 @@
#!/bin/bash
sudo dpkg -i labradeb.deb
sudo udevadm control --reload-rules
sudo udevadm trigger
exec /usr/share/espotek/labrador/Labrador

View File

@ -0,0 +1,8 @@
Package: espotek-labrador
Version: 1.1
Section: base
Priority: optional
Architecture: amd64
Depends: libusb-1.0-0 (>= 1.0.19)
Maintainer: Chris Esposito <admin@espotek.com>
Description: EspoTek Labrador Christmas 2017 update!

View File

@ -0,0 +1,2 @@
ENV{ID_VENDOR_ID}=="03eb", ENV{ID_MODEL_ID}=="ba94", SYMLINK="EspoTek_Labrador", MODE="0666"
ENV{ID_VENDOR_ID}=="03eb", ENV{ID_MODEL_ID}=="2fe4", SYMLINK="ATXMEGA32A4U DFU Bootloader", MODE="0666"

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Name=EspoTek Labrador
Comment=Software Interface for Labrador Board
Exec=/usr/share/espotek/labrador/Labrador
Terminal=false
Type=Application
Categories=Electronics
Icon=/usr/share/app-install/icons/espotek-labrador.png

Binary file not shown.