Skip to content

Commit c1976d5

Browse files
committed
Add Linux Installer script and build Installer in GHA
Fix bintray api URLs for Windows
1 parent 2940e08 commit c1976d5

5 files changed

Lines changed: 53 additions & 4 deletions

File tree

.github/workflows/linux.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ jobs:
3838
user_info="$bintrayUser:$bintrayApiKey"
3939
curl -T $zipfile --user $user_info https://api.bintray.com/content/open-ephys-gui/Test/Test-linux/$gui_ver/$zipfile
4040
curl -X POST --user $user_info https://api.bintray.com/content/open-ephys-gui/Test/Test-linux/$gui_ver/publish
41+
cd ../Resources/Installers/Linux/Open-Ephys_Installer
42+
mkdir -p usr/local/bin/open-ephys-gui
43+
cp -r ../../../../Build/Release usr/local/bin/open-ephys-gui
44+
cp ../../../Scripts/40-open-ephys.rules usr/local/bin/open-ephys-gui
45+
cd ..
46+
dpkg-deb --build Open-Ephys_Installer
47+
installer=Open-Ephys_Installer_${gui_ver}-beta.deb
48+
mv -v Open-Ephys_Installer.deb $installer
49+
curl -T $installer --user $user_info https://api.bintray.com/content/open-ephys-gui/Test-Installer/Test-Installer-windows/$gui_ver/$installer
50+
curl -X POST --user $user_info https://api.bintray.com/content/open-ephys-gui/Test-Installer/Test-Installer-windows/$gui_ver/publish
4151
shell: bash
4252
- name: deploy_release
4353
if: github.ref == 'refs/heads/master'
@@ -55,4 +65,14 @@ jobs:
5565
user_info="$bintrayUser:$bintrayApiKey"
5666
curl -T $zipfile --user $user_info https://api.bintray.com/content/open-ephys-gui/Release/Release-linux/$gui_ver/$zipfile
5767
curl -X POST --user $user_info https://api.bintray.com/content/open-ephys-gui/Release/Release-linux/$gui_ver/publish
68+
cd ../Resources/Installers/Linux/Open-Ephys_Installer
69+
mkdir -p usr/local/bin/open-ephys-gui
70+
cp -r ../../../../Build/Release usr/local/bin/open-ephys-gui
71+
cp ../../../Scripts/40-open-ephys.rules usr/local/bin/open-ephys-gui
72+
cd ..
73+
dpkg-deb --build Open-Ephys_Installer
74+
installer=Open-Ephys_Installer_${gui_ver}-beta.deb
75+
mv Open-Ephys_Installer.deb $installer
76+
curl -T $installer --user $user_info https://api.bintray.com/content/open-ephys-gui/Release-Installer/Release-Installer-windows/$gui_ver/$installer
77+
curl -X POST --user $user_info https://api.bintray.com/content/open-ephys-gui/Release-Installer/Release-Installer-windows/$gui_ver/publish
5878
shell: bash

.github/workflows/windows.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ jobs:
4646
iscc "windows_installer_script.iss"
4747
installer=Open-Ephys_Installer_${gui_ver}-beta.exe
4848
mv Open-Ephys_Installer.exe $installer
49-
curl -T $installer --user $user_info https://api.bintray.com/content/open-ephys-gui/Release-Installer/Release-Installer-windows/$gui_ver/$installer
50-
curl -X POST --user $user_info https://api.bintray.com/content/open-ephys-gui/Release-Installer/Release-Installer-windows/$gui_ver/publish
49+
curl -T $installer --user $user_info https://api.bintray.com/content/open-ephys-gui/Test-Installer/Test-Installer-windows/$gui_ver/$installer
50+
curl -X POST --user $user_info https://api.bintray.com/content/open-ephys-gui/Test-Installer/Test-Installer-windows/$gui_ver/publish
5151
shell: bash
5252
- name: deploy_release
5353
if: github.ref == 'refs/heads/master'
@@ -70,6 +70,6 @@ jobs:
7070
iscc "windows_installer_script.iss"
7171
installer=Open-Ephys_Installer_${gui_ver}.exe
7272
mv Open-Ephys_Installer.exe $installer
73-
curl -T $installer --user $user_info https://api.bintray.com/content/open-ephys-gui/Test-Installer/Test-Installer-windows/$gui_ver/$installer
74-
curl -X POST --user $user_info https://api.bintray.com/content/open-ephys-gui/Test-Installer/Test-Installer-windows/$gui_ver/publish
73+
curl -T $installer --user $user_info https://api.bintray.com/content/open-ephys-gui/Release-Installer/Release-Installer-windows/$gui_ver/$installer
74+
curl -X POST --user $user_info https://api.bintray.com/content/open-ephys-gui/Release-Installer/Release-Installer-windows/$gui_ver/publish
7575
shell: bash
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Package: open-ephys
2+
Version: 0.5.0
3+
Architecture: amd64
4+
Installed-Size: 18644
5+
Section: science
6+
Priority: optional
7+
Maintainer: Open Ephys <info@open-ephys.com>
8+
Homepage: https://open-ephys.org/gui
9+
Description: Software for processing, recording, and visualizing multichannel electrophysiology data.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Files: *
2+
Copyright: 2020 Open Ephys <info@open-ephys.com>
3+
License: GPL-3+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/sh
2+
# postinst script for Open Ephys
3+
4+
if [ "$1" = configure ]; then
5+
6+
echo "Copying open-ephys udev rules and restaring udev service..."
7+
cd /usr/local/bin
8+
mv open-ephys-gui/40-open-ephys.rules /etc/udev/rules.d
9+
service udev restart
10+
11+
echo "Creating open-ephys symlink to /usr/local/bin..."
12+
ln -sf open-ephys-gui/open-ephys open-ephys
13+
14+
echo "Installation finished!"
15+
16+
fi
17+

0 commit comments

Comments
 (0)