Skip to content

Commit 4369e01

Browse files
authored
Merge pull request #370 from medengineer/development
Add Mac installer and update GHA workflow
2 parents 077484c + 53c4a6c commit 4369e01

3 files changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/osx.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,21 @@ jobs:
4040
user_info="$bintrayUser:$bintrayApiKey"
4141
curl -T $zipfile --user $user_info https://api.bintray.com/content/open-ephys-gui/Test/Test-mac/$gui_ver/$zipfile
4242
curl -X POST --user $user_info https://api.bintray.com/content/open-ephys-gui/Test/Test-mac/$gui_ver/publish
43+
brew install create-dmg && create-dmg \
44+
--volname "Open-Ephys Installer" \
45+
--volicon "open-ephys/open-ephys.app/Contents/Resources/Icon.icns" \
46+
--background "open-ephys/open-ephys.app/Contents/Resources/dmg_background.png" \
47+
--window-pos 300 0 \
48+
--window-size 688 416 \
49+
--icon-size 128 \
50+
--icon "open-ephys.app" 200 190 \
51+
--hide-extension "Open-Ephys.app" \
52+
--app-drop-link 500 188 \
53+
"Open-Ephys-Installer.dmg" \
54+
"open-ephys/"
55+
user_info="$bintrayUser:$bintrayApiKey"
56+
curl -T Open-Ephys-Installer.dmg --user $user_info https://api.bintray.com/content/open-ephys-gui/Test-Installer/Test-Installer-Mac/$gui_ver/Open-Ephys-Installer.dmg
57+
curl -X POST --user $user_info https://api.bintray.com/content/open-ephys-gui/Test-Installer/Test-Installer-Mac/$gui_ver/publish
4358
- name: deploy_release
4459
if: github.ref == 'refs/heads/master'
4560
env:
@@ -57,3 +72,18 @@ jobs:
5772
user_info="$bintrayUser:$bintrayApiKey"
5873
curl -T $zipfile --user $user_info https://api.bintray.com/content/open-ephys-gui/Release/Release-mac/$gui_ver/$zipfile
5974
curl -X POST --user $user_info https://api.bintray.com/content/open-ephys-gui/Release/Release-mac/$gui_ver/publish
75+
brew install create-dmg && create-dmg \
76+
--volname "Open-Ephys Installer" \
77+
--volicon "open-ephys/open-ephys.app/Contents/Resources/Icon.icns" \
78+
--background "open-ephys/open-ephys.app/Contents/Resources/dmg_background.png" \
79+
--window-pos 300 0 \
80+
--window-size 688 416 \
81+
--icon-size 128 \
82+
--icon "open-ephys.app" 200 190 \
83+
--hide-extension "Open-Ephys.app" \
84+
--app-drop-link 500 188 \
85+
"Open-Ephys-Installer.dmg" \
86+
"open-ephys/"
87+
user_info="$bintrayUser:$bintrayApiKey"
88+
curl -T Open-Ephys-Installer.dmg --user $user_info https://api.bintray.com/content/open-ephys-gui/Release-Installer/Release-Installer-Mac/$gui_ver/Open-Ephys-Installer.dmg
89+
curl -X POST --user $user_info https://api.bintray.com/content/open-ephys-gui/Release-Installer/Release-Installer-Mac/$gui_ver/publish

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ elseif(APPLE)
184184

185185
set(MAC_RESOURCE_FILES
186186
${RESOURCES_DIRECTORY}/Build-files/Icon.icns
187+
${RESOURCES_DIRECTORY}/Build-files/dmg_background.png
187188
${RESOURCES_DIRECTORY}/Build-files/RecentFilesMenuTemplate.nib
188189
${RESOURCES_DIRECTORY}/Bitfiles/rhd2000.bit
189190
${RESOURCES_DIRECTORY}/Bitfiles/rhd2000_usb3.bit
2.77 KB
Loading

0 commit comments

Comments
 (0)