|
| 1 | +# Release |
| 2 | + |
| 3 | +Making a release of Processing.R requires git, jdk8, and Ant. |
| 4 | + |
| 5 | +**NOTE:** These instructions do not yet include updating the docs using processing-doc-tools. |
| 6 | + |
| 7 | +## New Release Instructions |
| 8 | + |
| 9 | +1. Clone the Processing.R repo. |
| 10 | +2. Confirm that jdk8 is installed on the release computer, or install (see below) |
| 11 | +3. Confirm that Ant is installed. |
| 12 | +4. set JAVA_HOME and run deploy.sh from within the scripts folder |
| 13 | + |
| 14 | + ``` |
| 15 | + # ...install jdk8u202, then: |
| 16 | + export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home |
| 17 | + cd scripts |
| 18 | + ./deploy.sh 107 v1.0.7 > log.txt |
| 19 | + ``` |
| 20 | +
|
| 21 | +5. Confirm jdk8 was used by checking the log. |
| 22 | +
|
| 23 | + ``` |
| 24 | + cat log.txt | grep '1.8' |
| 25 | + ``` |
| 26 | +
|
| 27 | + The log may show a warning that will also indicate it is correctly using 1.8 (jdk8): |
| 28 | +
|
| 29 | + > build: |
| 30 | + > [javac] Compiling 34 source files to /Users/username/git/Processing.R/build |
| 31 | + > [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'org.eclipse.sisu.scanners.index.SisuIndexAPT6' less than -source '1.8' |
| 32 | + > [javac] Note: Some input files use or override a deprecated API. |
| 33 | + > [javac] Note: Recompile with -Xlint:deprecation for details. |
| 34 | + > [javac] 1 warning |
| 35 | +
|
| 36 | +6. Test install of the new mode by unzipping the new docs/RLangMode.zip to the local PDE Processing/modes directory and restarting PDE. |
| 37 | +
|
| 38 | + The mode "R" should appear in the dropdown menu, launch a new R sketch window, and run an R sketch from examples. |
| 39 | +
|
| 40 | +7. Commit the updated docs/RLangMode.txt to the Processing.R repo. |
| 41 | +8. Tag the commit for release (e.g. v1.0.7). |
| 42 | +9. Create a release on GitHub (e.g. v1.0.7). |
| 43 | +10. Upload as release attachments and save: |
| 44 | +
|
| 45 | + - docs/RLangMode.txt |
| 46 | + - docs/RL:angMode.zip |
| 47 | +
|
| 48 | + Be careful not to take RLangMode.txt from dist/ |
| 49 | +
|
| 50 | +11. Test download of the release: restart Processing PDE and download via Contributions Manager. |
| 51 | +
|
| 52 | +
|
| 53 | +## Installing jdk8 |
| 54 | +
|
| 55 | +JDK installation notes: |
| 56 | +
|
| 57 | +1. Review Java |
| 58 | +
|
| 59 | + Processing currently requires jdk8u202. |
| 60 | + |
| 61 | + Oracle has rapidly changed their hosting of jdk, |
| 62 | + making it increasingly difficult. For the latest, |
| 63 | + see Processing Build Instructions: |
| 64 | + |
| 65 | + - https://github.com/processing/processing/wiki/Build-Instructions |
| 66 | +
|
| 67 | +2. Download jdk8 if not installed |
| 68 | +
|
| 69 | + This may involve creating an Oracle account |
| 70 | + in order to download. |
| 71 | + |
| 72 | + Alternately, download from another source. |
| 73 | + |
| 74 | + For OS X: |
| 75 | + |
| 76 | + - https://github.com/frekele/oracle-java/releases/download/8u202-b08/jdk-8u202-macosx-x64.dmg |
| 77 | +
|
| 78 | +3. Confirm checksum |
| 79 | +
|
| 80 | + Image matches the published checksum via md5: |
| 81 | + - https://www.oracle.com/webfolder/s/digest/8u202checksum.html |
| 82 | + |
| 83 | + ``` |
| 84 | + md5 jdk-8u202-macosx-x64.dmg |
| 85 | + MD5 (jdk-8u202-macosx-x64.dmg) = 9eb027c06c5da727229a29b3be79bf50 |
| 86 | + ``` |
| 87 | +
|
| 88 | +4. Run the graphical installer. |
| 89 | +
|
| 90 | +5. Check the install is present. |
| 91 | +
|
| 92 | + On OS X: |
| 93 | +
|
| 94 | + ``` |
| 95 | + $ ls /Library/Java/JavaVirtualMachines/ |
| 96 | + jdk-10.0.1.jdk jdk1.8.0_192.jdk jdk1.8.0_202.jdk |
| 97 | + ``` |
| 98 | +
|
| 99 | +6. Set the JAVA_HOME environment variable immediately before running the deploy.sh script. |
| 100 | +
|
| 101 | + On OSX: |
| 102 | + |
| 103 | + ``` |
| 104 | + export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home |
| 105 | + echo $JAVA_HOME |
| 106 | + /Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home |
| 107 | + ``` |
| 108 | + |
| 109 | + ...or an alternative to the absolute path is the java_home utility: |
| 110 | + |
| 111 | + ``` |
| 112 | + export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) |
| 113 | + ``` |
| 114 | +
|
| 115 | +
|
| 116 | +### jdk on homebrew: DEPRECATED |
| 117 | +
|
| 118 | +The OS X homebrew cask was the most popular way of installing jdk. However, it has been removed due to changing availability from Oracle. |
| 119 | +
|
| 120 | +- https://github.com/Homebrew/homebrew-cask-versions/issues/7253 |
| 121 | +
|
| 122 | +These are the old install instructions. |
| 123 | +
|
| 124 | +``` |
| 125 | +brew cask install java8 |
| 126 | +ls /Library/Java/JavaVirtualMachines/ |
| 127 | + jdk-10.0.1.jdk jdk1.8.0_192.jdk |
| 128 | +export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) |
| 129 | +``` |
| 130 | +
|
| 131 | +A new java cask points to OpenJDK / AdoptOpenJDK, and Processing.R mode could move to OpenJDK -- however currently Processing cannot use OpenJDK, and some of the Processing.R test suite builds Processing. |
0 commit comments