mirror of https://github.com/EspoTek/Labrador.git
Added Build Scripts.
This commit is contained in:
parent
e957460134
commit
9ce1cd72ce
|
@ -34,3 +34,5 @@ Desktop_Interface/debug/qrc_resources.cpp
|
|||
!Desktop_Interface/bin/firmware/dfu-programmer.exe
|
||||
*.o
|
||||
Desktop_Interface/bin/Labrador
|
||||
*.deb
|
||||
*.tar.gz
|
||||
|
|
|
@ -2251,7 +2251,7 @@
|
|||
</action>
|
||||
<action name="actionOpen_DAQ_File">
|
||||
<property name="text">
|
||||
<string>Open DAQ File</string>
|
||||
<string>DAQ Playback</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
|
|
Binary file not shown.
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
|
@ -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!
|
|
@ -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.
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
|
@ -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
|
||||
|
||||
|
|
@ -0,0 +1 @@
|
|||
420
|
Binary file not shown.
Binary file not shown.
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
|
@ -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!
|
|
@ -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.
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
|
@ -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
|
||||
|
||||
|
|
@ -0,0 +1 @@
|
|||
420
|
Binary file not shown.
Loading…
Reference in New Issue