diff options
Diffstat (limited to 'deploy/windows')
-rw-r--r-- | deploy/windows/build.bat | 39 | ||||
-rw-r--r-- | deploy/windows/create-setup.nsi | 111 | ||||
-rw-r--r-- | deploy/windows/ethereum.bmp | bin | 0 -> 88376 bytes | |||
-rw-r--r-- | deploy/windows/logo.ico | bin | 0 -> 370070 bytes |
4 files changed, 150 insertions, 0 deletions
diff --git a/deploy/windows/build.bat b/deploy/windows/build.bat new file mode 100644 index 000000000..b67a6024d --- /dev/null +++ b/deploy/windows/build.bat @@ -0,0 +1,39 @@ +@ECHO off +set origin=%GOPATH%\src\github.com\ethereum\go-ethereum\cmd\mist +set ethgo=%GOPATH%\src\github.com\ethereum\eth-go +set target=%GOPATH%\pkg\ethereum\ +set qtPath=C:\Qt\Qt5.2.1\5.2.1\mingw48_32 +set mingwPath=C:\MingW\ + +ECHO "Setting up Windows binaries" + +ECHO "Copying assets from %GOPATH%" +xcopy /s %origin%\assets %target%assets + +ECHO "Copying mnemonic words" +copy %ethgo%\ethcrypto\mnemonic.words.lst %target% + +ECHO "Compiling Mist" +cd %origin% +go install + +ECHO "Copying to source folder" +copy %GOPATH%\bin\mist.exe %target% + +ECHO "Running QT Deploy" +cd %target% +windeployqt --webkit2 --qmldir=assets\qml\ . + +echo "Copy missing DLLs & Others" + +copy %qtPath%\bin\QtWebProcess.exe %target% +copy %qtPath%\bin\Qt5MultimediaWidgets.dll %target% +copy %qtPath%\bin\Qt5PrintSupport.dll %target% +copy %qtPath%\bin\Qt5OpenGL.dll %target% +copy %qtPath%\bin\Qt5WebKitWidgets.dll %target% + +copy %qtPath%\bin\libgcc_s_dw2-1.dll %target% +copy "%qtPath%\bin\libstdc++-6.dll" %target% +copy %qtPath%\bin\libwinpthread-1.dll %target% + +copy %mingwPath%\bin\libgmp-10.dll %target% diff --git a/deploy/windows/create-setup.nsi b/deploy/windows/create-setup.nsi new file mode 100644 index 000000000..ed2fdc29a --- /dev/null +++ b/deploy/windows/create-setup.nsi @@ -0,0 +1,111 @@ +;--------------------------------
+;Include Modern UI
+
+ !include "MUI2.nsh"
+
+;--------------------------------
+;General
+
+ ;Name and file
+ Name "Mist"
+ OutFile "mist-setup.exe"
+
+ ;Default installation folder
+ InstallDir "$PROGRAMFILES\Mist"
+
+ ;Get installation folder from registry if available
+ InstallDirRegKey HKCU "Software\Mist" ""
+
+ ;Request application privileges for Windows Vista
+ RequestExecutionLevel admin
+
+ SetCompressor /SOLID lzma ; had the strongest compression rate for Mist
+
+;--------------------------------
+;Variables
+
+;--------------------------------
+;Interface Settings
+
+
+ !define MUI_ICON "logo.ico"
+ !define MUI_HEADERIMAGE
+ !define MUI_HEADERIMAGE_BITMAP "ethereum.bmp"
+ !define MUI_HEADERIMAGE_RIGHT
+ !define MUI_ABORTWARNING
+
+;--------------------------------
+;Pages
+
+ ;!insertmacro MUI_PAGE_LICENSE "tmp/LICENCE"
+ ;!insertmacro MUI_PAGE_COMPONENTS
+ !insertmacro MUI_PAGE_DIRECTORY
+
+ ;Start Menu Folder Page Configuration
+ !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU"
+ !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\Mist"
+ !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
+
+ ;!insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
+
+ !insertmacro MUI_PAGE_INSTFILES
+
+ !insertmacro MUI_UNPAGE_CONFIRM
+ !insertmacro MUI_UNPAGE_INSTFILES
+
+;--------------------------------
+;Languages
+
+ !insertmacro MUI_LANGUAGE "English"
+
+;--------------------------------
+;Installer Sections
+
+Section
+
+ SetOutPath "$INSTDIR"
+
+ file /r $%GOPATH%\pkg\ethereum\*.*
+ file logo.ico
+
+ ;Store installation folder
+ WriteRegStr HKCU "Software\Mist" "" $INSTDIR
+
+ ;Create uninstaller
+ WriteUninstaller "$INSTDIR\Uninstall.exe"
+
+
+ CreateShortCut "$DESKTOP\Mist.lnk" "$INSTDIR\mist.exe" "" "$INSTDIR\logo.ico" 0
+
+ ;create start-menu items
+ CreateDirectory "$SMPROGRAMS\Mist"
+ CreateShortCut "$SMPROGRAMS\Mist\Uninstall.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0
+ CreateShortCut "$SMPROGRAMS\Mist\Mist.lnk" "$INSTDIR\mist.exe" "" "$INSTDIR\logo.ico" 0
+
+SectionEnd
+
+;--------------------------------
+;Descriptions
+
+ ;Assign language strings to sections
+ ;!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
+ ; !insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy)
+ ;!insertmacro MUI_FUNCTION_DESCRIPTION_END
+
+;--------------------------------
+;Uninstaller Section
+
+Section "Uninstall"
+
+ ;ADD YOUR OWN FILES HERE...
+ RMDir /r "$INSTDIR\*.*"
+
+ RMDir "$INSTDIR"
+
+ Delete "$DESKTOP\Mist.lnk"
+ Delete "$SMPROGRAMS\Mist\*.*"
+ RmDir "$SMPROGRAMS\Mist"
+
+ DeleteRegKey /ifempty HKCU "Software\Mist"
+
+SectionEnd
diff --git a/deploy/windows/ethereum.bmp b/deploy/windows/ethereum.bmp Binary files differnew file mode 100644 index 000000000..7c5242093 --- /dev/null +++ b/deploy/windows/ethereum.bmp diff --git a/deploy/windows/logo.ico b/deploy/windows/logo.ico Binary files differnew file mode 100644 index 000000000..bc85a69dd --- /dev/null +++ b/deploy/windows/logo.ico |