Added deploy scripts from go-build
This commit is contained in:
39
deploy/windows/build.bat
Normal file
39
deploy/windows/build.bat
Normal file
@@ -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%
|
||||
111
deploy/windows/create-setup.nsi
Normal file
111
deploy/windows/create-setup.nsi
Normal file
@@ -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
|
||||
BIN
deploy/windows/ethereum.bmp
Normal file
BIN
deploy/windows/ethereum.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 86 KiB |
BIN
deploy/windows/logo.ico
Normal file
BIN
deploy/windows/logo.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 361 KiB |
Reference in New Issue
Block a user