-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚀 Installer well set up and working for windowsMerge pull request #2 …
…from sandoche/dev 🚀 Installer well set up and working for windows
- Loading branch information
Showing
743 changed files
with
129,304 additions
and
13 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Release 1.0.1 | ||
|
||
https://bitbucket.org/JeanLucPicard/nxt/downloads/GTD-Cryptocurrency-1.0.1.exe | ||
|
||
sha256: | ||
|
||
75d7efaf624b01af512a6d4e93a3dc5fa55942d2e5561b892218897c053eaf78 *GTD-Cryptocurrency-1.0.1.exe | ||
https://bitbucket.org/JeanLucPicard/nxt/downloads/GTD-Cryptocurrency-1.0.1.jar | ||
|
||
sha256: | ||
|
||
f27abd10f830f8d99fea050a13353f2dce39b8f46d5e076304285c2fcd8c97c1 *GTD-Cryptocurrency-1.0.1.jar | ||
|
||
|
||
Change log: | ||
|
||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
java -cp lib/h2*.jar org.h2.tools.Shell -url jdbc:h2:./nxt_db/nxt -user sa -password sa |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.log |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | ||
<registry version="5.0"> | ||
|
||
<pack name="UninstallStuff"> | ||
<!-- Special "pack", if not defined an uninstall key will be generated automatically --> | ||
<!-- The variable $UNINSTALL_NAME can be only used if CheckedHelloPanel will be used | ||
because there the variable will be declared. With that variabel it is possible | ||
to install more as one instances of the product on one machine each with an | ||
unique uninstall key. --> | ||
<value name="DisplayName" | ||
keypath="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$UNINSTALL_NAME" | ||
root="HKLM" | ||
string="$UNINSTALL_NAME"/> | ||
<value name="UninstallString" | ||
keypath="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$UNINSTALL_NAME" | ||
root="HKLM" | ||
string=""$INSTALL_PATH\jre\bin\javaw.exe" -jar "$INSTALL_PATH\uninstaller\uninstaller.jar""/> | ||
<value name="UninstallString" | ||
keypath="SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\$UNINSTALL_NAME" | ||
root="HKLM" | ||
string=""$INSTALL_PATH\jre\bin\javaw.exe" -jar "$INSTALL_PATH\uninstaller\uninstaller.jar""/> | ||
<value name="DisplayIcon" | ||
keypath="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$UNINSTALL_NAME" | ||
root="HKLM" | ||
string="$INSTALL_PATH\html\ui\favicon.ico"/> | ||
<value name="HelpLink" | ||
keypath="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$UNINSTALL_NAME" | ||
root="HKLM" | ||
string="https://gtd.network"/> | ||
<value name="URLInfoAbout" | ||
keypath="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$UNINSTALL_NAME" | ||
root="HKLM" | ||
string="$APP_URL"/> | ||
<value name="Publisher" | ||
keypath="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$UNINSTALL_NAME" | ||
root="HKLM" | ||
string="GTD"/> | ||
<value name="Version" | ||
keypath="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$UNINSTALL_NAME" | ||
root="HKLM" | ||
string="$APP_VER"/> | ||
<value name="DisplayVersion" | ||
keypath="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$UNINSTALL_NAME" | ||
root="HKLM" | ||
string="$APP_VER"/> | ||
</pack> | ||
</registry> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | ||
|
||
<izpack:shortcuts version="5.0" | ||
xmlns:izpack="http://izpack.org/schema/shortcuts" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://izpack.org/schema/shortcuts http://izpack.org/schema/5.0/izpack-shortcuts-5.0.xsd"> | ||
|
||
<programGroup defaultName="NXT" location="applications"/> | ||
|
||
<shortcut | ||
name="Nxt Start" | ||
programGroup="yes" | ||
desktop="yes" | ||
target="$INSTALL_PATH/start.sh" | ||
workingDirectory="$INSTALL_PATH" | ||
description="Start Nxt" | ||
iconFile="$INSTALL_PATH/html/www/img/nxt-icon-32x32.png" | ||
type="Application" | ||
encoding="UTF-8" | ||
categories="Application;Network;" | ||
createForAll="true"> | ||
</shortcut> | ||
|
||
<shortcut | ||
name="Nxt Stop" | ||
programGroup="yes" | ||
desktop="yes" | ||
target="$INSTALL_PATH/stop.sh" | ||
workingDirectory="$INSTALL_PATH" | ||
description="Shutdown Nxt" | ||
iconFile="$INSTALL_PATH/html/www/img/nxt-icon-32x32.png" | ||
type="Application" | ||
encoding="UTF-8" | ||
categories="Application;Network;" | ||
createForAll="true"> | ||
</shortcut> | ||
|
||
<!-- | ||
<shortcut | ||
name="Nxt Browser" | ||
programGroup="yes" | ||
desktop="no" | ||
workingDirectory="$INSTALL_PATH" | ||
iconFile="$INSTALL_PATH/html/www/img/nxt-icon-32x32.png" | ||
url="http://localhost:7876/index.html" | ||
type="link" | ||
encoding="UTF-8" | ||
categories="Application;Network;" | ||
description="Open Nxt wallet in browser"> | ||
</shortcut> | ||
--> | ||
|
||
<shortcut | ||
name="Nxt Uninstaller" | ||
programGroup="yes" | ||
desktop="no" | ||
target="java" | ||
commandLine="-jar "$INSTALL_PATH/Uninstaller/uninstaller.jar"" | ||
iconFile="trashcan_full" | ||
workingDirectory="" | ||
type="Application" | ||
encoding="UTF-8" | ||
categories="Application;Network;" | ||
createForAll="true" | ||
description="Uninstall Nxt"> | ||
</shortcut> | ||
|
||
|
||
</izpack:shortcuts> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@echo off | ||
..\installer\lib\izpack2exe\izpack2exe.py --file ..\%1.jar --output ..\%1.exe --with-7z=..\installer\lib\izpack2exe\7za.exe --no-upx --with-jdk=..\jre --name nxt > ..\installer\build-exe.log 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
java -Xmx512m -cp "../installer/lib/*" com.izforge.izpack.compiler.bootstrap.CompilerLauncher ../installer/setup.xml -o $1.jar > ../installer/build-installer.log 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Building the NXT installer | ||
|
||
Note: all pathes are relative to the git repository folder (nxt-private) | ||
|
||
Pre-requisites for both Unix and Windows | ||
======================================== | ||
Compile classes on Unix using compile.sh | ||
Windows build has to be executed from a Cygwin shell (Install from https://www.cygwin.com/) | ||
Compile classes on Windows by running win-compile.sh from a Cygwin shell | ||
In order to create an obfuscated release also install proguard (http://proguard.sourceforge.net/) | ||
Package NXT.jar using jar.sh | ||
mkdir jre | ||
|
||
Building the installer on Unix | ||
============================== | ||
Execute the build: ./release-package.sh | ||
Review results: vi installer/build-installer.log | ||
Test X11 installer: java -jar nxt-client-<version>.jar | ||
Test console installer: java -jar nxt-client-<version>.jar -console | ||
|
||
Building the installer on Windows | ||
================================= | ||
Initial setup (perform once for each development workstation or whenever Java is updated) | ||
Install the latest version of the Java Windows Server JRE (64 bit) | ||
Copy the content of Java JRE folder (C:\Program Files\Java\jre<version>) into the jre folder under your nxt-private git repository preserving the folder structure | ||
Install the latest Java JDK x64 for Windows - needed for the jar and jarsigner commands | ||
Install python and associate it with .py file extension - required by build-exe.bat | ||
Install the Microsoft Windows SDK for Windows 7 and .NET Framework 4, make sure the signtool.exe command is in your path - needed to sign the installer executable | ||
|
||
From a Cygwin shell invoke the command win-release-package.sh followed by the version number | ||
Review results in installer/build-installer.log, installer/build-exe.log | ||
Digitally sign the installer jar file and zip file using jarsigner | ||
Digitally sign the installer exe file using signtool | ||
Test the installer using Java: java -jar nxt-client-<version>.jar | ||
Test the windows executable: nxt-client-<version>.exe | ||
|
||
Technical information | ||
===================== | ||
Installer is based on the IzPack product from http://izpack.org/ | ||
Installer project source code is in installer/setup.xml, RegistrySpec.xml and shortcutSpec.xml | ||
nxt.jar is now self executing, the full classpath is embedded into the jar file manifest automatically by jar.sh | ||
Converting the Jar file to a Windows exe relies on the 7za utility (http://www.7-zip.org/) bundled with the IzPack distribution | ||
Creating and signing the installer jar can be performed either on Unix or Windows | ||
Creating and signing the installer exe must be performed on a Windows workstation |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.