Skip to content

Commit

Permalink
Improved the error message that BlueJ and Greenfoot give when failing…
Browse files Browse the repository at this point in the history
… to load the JRE (which is the error you get when trying to run the Apple silicon build on an Intel processor).
  • Loading branch information
neilccbrown committed Oct 14, 2024
1 parent ebd89da commit 36bbc12
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bluej/package/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,12 @@
<fileset dir="BlueJ.app/Contents/PlugIns/${mac_bundler_arch_dir}/Contents/Home/bin" includes="java" />
</chmod>

<!-- We want to augment the error that appears when loading Apple build on Intel -->
<replaceregexp file="BlueJ.app/Contents/Resources/en.lproj/Localizable.strings"
match='(\"JRELoadError\".*?)\";'
replace='\1 You may need to download the Mac Intel version from bluej.org\";'
byline="true"/>

<!-- codesign needs Internet connection to verify current time -->
<echo message="Signing and verifying bundle (NOTE: Internet connection is required to sign)"/>
<chmod perm="+x" file="bundle-mac.sh" />
Expand Down
6 changes: 6 additions & 0 deletions bluej/package/greenfoot-build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,12 @@
<fileset dir="Greenfoot.app/Contents/PlugIns/${mac_bundler_arch_dir}/Contents/Home/bin" includes="java" />
</chmod>

<!-- We want to augment the error that appears when loading Apple build on Intel -->
<replaceregexp file="Greenfoot.app/Contents/Resources/en.lproj/Localizable.strings"
match='(\"JRELoadError\".*?)\";'
replace='\1 You may need to download the Mac Intel version from greenfoot.org\";'
byline="true"/>

<!-- codesign needs Internet connection to verify current time -->
<echo message="Signing and verifying bundle (NOTE: Internet connection is required to sign)"/>
<chmod perm="+x" file="bundle-mac.sh" />
Expand Down

0 comments on commit 36bbc12

Please sign in to comment.