Skip to content

Commit

Permalink
Windows installer: Show license text
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmax committed Sep 29, 2019
1 parent a16f83c commit 7f10b5f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VisiCut itself is licensed under the GNU Lesser Public License (see COPYING.LESSER for details).
VisiCut itself is licensed under the GNU Lesser Public License (see https://www.gnu.org/licenses/lgpl-3.0-standalone.html or COPYING.LESSER for details).

However, it contains some 3rd Party files, which are listed below.

Expand Down
9 changes: 8 additions & 1 deletion distribute/distribute.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,14 @@ then
unzip -q ../cache/jre.zip
mv *jre*/ stream/jre/
test -e stream/jre/bin/java.exe || { echo "Cannot find java.exe in JRE ZIP file"; exit 1; }

test -e stream/jre/legal/java.base/LICENSE || { echo "Cannot find license information in JRE ZIP file"; exit 1; }
# Build license text for Windows installer
{
cat ../../LICENSE
echo "Java Runtime for Windows:"
echo -e "- OpenJRE (GPLv2 with Classpath exception). License details follow:"
find stream/jre/legal/ -type f -print -exec cat '{}' ';'
} > stream/license-with-jre.txt
makensis launcher.nsi > /dev/null || exit 1 # build VisiCut.exe
cp VisiCut.exe ../visicut/ # copy VisiCut.exe so that it is included in the platform independent ZIP
mv VisiCut.exe ./stream/
Expand Down
2 changes: 1 addition & 1 deletion distribute/windows/installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
;Pages

; License page
; !insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Contrib\Modern UI\License.txt"
!insertmacro MUI_PAGE_LICENSE "stream\license-with-jre.txt"
!insertmacro MUI_PAGE_INSTFILES
!define MUI_INSTFILESPAGE_FINISHHEADER_TEXT "Installation complete"
!define MUI_PAGE_HEADER_TEXT "Installing"
Expand Down

0 comments on commit 7f10b5f

Please sign in to comment.