diff --git a/.gitignore b/.gitignore index 6291be8..c87c8f8 100644 --- a/.gitignore +++ b/.gitignore @@ -33,6 +33,9 @@ jspm_packages # Optional npm cache directory .npm +# electron cache directory +.electron + # Optional REPL history .node_repl_history diff --git a/assets/bitrock_installer/AgamaApp-linux.xml b/assets/bitrock_installer/AgamaApp-linux.xml new file mode 100755 index 0000000..000120e --- /dev/null +++ b/assets/bitrock_installer/AgamaApp-linux.xml @@ -0,0 +1,399 @@ + + AgamaApp + iguana + ${PKG_VERSION} + ../../LICENSE + ../installer_imgs/Agama_installer_wizard_image.png + ../installer_imgs/supernet-agama-logo.png + ../installer_imgs/Agama_installer_splash_image.png + 1 + + + default + ${project.shortName} + 0 + All application files. Required size: ${project.component(default).requiredSize} KB + 1 + 1 + + + Agama Desktop + ${installdir}/Agama + ${installdir}/resources/app/assets/icons/agama_icons/96x96.png + Agama Desktop + ${installdir} + all + 0 + 0 + + + + + + + + + Program Files + ${installdir} + programfiles + all + + + ../../build/Agama-linux-x64/locales + + + ../../build/Agama-linux-x64/resources + + + ../../build/Agama-linux-x64/version + + + ../../build/Agama-linux-x64/content_resources_200_percent.pak + + + ../../build/Agama-linux-x64/LICENSE + + + ../../build/Agama-linux-x64/blink_image_resources_200_percent.pak + + + ../../build/Agama-linux-x64/views_resources_200_percent.pak + + + ../../build/Agama-linux-x64/ui_resources_200_percent.pak + + + ../../build/Agama-linux-x64/natives_blob.bin + + + ../../build/Agama-linux-x64/snapshot_blob.bin + + + ../../build/Agama-linux-x64/LICENSES.chromium.html + + + ../../build/Agama-linux-x64/libffmpeg.so + + + ../../build/Agama-linux-x64/content_shell.pak + + + ../../build/Agama-linux-x64/icudtl.dat + + + ../../build/Agama-linux-x64/libnode.so + + + ../../build/Agama-linux-x64/Agama + + + + + Program Files + ${installdir} + programfileslinux + linux + + + Program Files + ${windows_folder_program_files} + programfileswindows + windows + + + Program Files + /Applications + programfilesosx + osx + + + + + + + previous_installation_exists + 1 + + + + + + + + version oldVersion installdir oldInstalldir + name variable + + + + /etc/${project.vendor}-${project.shortName}.ini + ${name} +
details
+ ${variable} + + + equals + ${previous_installation_exists} + 1 + + +
+
+ + + +
+
+ + + ${oldInstalldir}/${uninstallerName} + + + + equals + ${previous_installation_exists} + 1 + + + + + Deleting user data + ${user_home_directory}/.iguana + Deleting user data + + + equals + ${previous_installation_exists} + 1 + + + equals + ${installation_type} + uninstall + + + equals + ${keep_settings_and_userdata} + 0 + + + + + Deleting zcache-params + ${user_home_directory}/.zcache-params + Deleting zcache-params + + + equals + ${previous_installation_exists} + 1 + + + equals + ${installation_type} + uninstall + + + equals + ${keep_settings_and_userdata} + 0 + + + + + Uninstalled + Uninstalled + + + equals + ${previous_installation_exists} + 1 + + + equals + ${installation_type} + uninstall + + + + + 0 + Creating ZcashParam directory + ${user_home_directory}/.zcash-params/ + Creating ZcashParam directory + 0 + + + 0 + Zcash Params file: sprout-proving.key + Zcash Params file: sprout-proving.key + 0 + Downloading Zcash Params file + + + 0 + Zcash Params file: sprout-proving.key + ${user_home_directory}/.zcash-params/sprout-proving.key + Zcash Params file: sprout-proving.key + 0 + https://z.cash/downloads/sprout-proving.key + + + + + 1 + ${user_home_directory}/.zcash-params/sprout-proving.key + + + + + 0 + Zcash Params file: sprout-verifying.key + Zcash Params file: sprout-verifying.key + Downloading Zcash Params files + + + 0 + Zcash Params file: sprout-verifying.key + ${user_home_directory}/.zcash-params/sprout-verifying.key + Zcash Params file: sprout-verifying.key + 0 + https://z.cash/downloads/sprout-verifying.key + + + + + 1 + ${user_home_directory}/.zcash-params/sprout-verifying.key + + + + + + + 0 + /bin/Agama + ${installdir}/Agama + + + ${user_home_directory}/Desktop/Agama Desktop.desktop + Categories +
Desktop Entry
+ Office; +
+ + ${user_home_directory}/Desktop/Agama Desktop.desktop + users + nobody + + + /usr/share/applications/Agama Desktop.desktop + ${user_home_directory}/Desktop/Agama Desktop.desktop + + + + + version "${project.version}" installdir "${installdir}" + name variable + + + /etc/${project.vendor}-${project.shortName}.ini + ${name} +
details
+ ${variable} +
+
+ + + +
+ +
+ + + 0 + /bin/Agama + + + 1 + lzham-ultra + 755 + 0 + 1 + 1 + 1 + 1 + Uninstall-Agama + SuperNETOrg + + + /bin/Agama + & + Do you want to launch ${project.fullName} now? + $USER + + + + + installdir + Installer.Parameter.installdir.description + Installer.Parameter.installdir.explanation + + /opt/AgamaApp + 0 + prefix + 1 + 0 + 30 + + + You don't have enough disk space to install the application, + please select another installation directory + + + less + ${installdir} + ${required_diskspace} + + + + + + + installation_type + Instalation type + Existing instalation is detected + Existing instalation is detected + uninstall + uninstall + + + uninstall + Uninstall + Uninstall + + + + + + 0 + 0 + + + + + Re-install + + + + + + + equals + ${previous_installation_exists} + 1 + + + + +
+ diff --git a/assets/bitrock_installer/AgamaApp-osx.xml b/assets/bitrock_installer/AgamaApp-osx.xml new file mode 100755 index 0000000..240b0dc --- /dev/null +++ b/assets/bitrock_installer/AgamaApp-osx.xml @@ -0,0 +1,309 @@ + + AgamaApp + iguana + ${PKG_VERSION} + ../../LICENSE + ../installer_imgs/Agama_installer_wizard_image.png + ../installer_imgs/supernet-agama-logo.png + ../installer_imgs/Agama_installer_splash_image.png + 1 + + + default + ${project.shortName} + 0 + All application files. Required size: ${project.component(default).requiredSize} KB + 1 + 1 + + + Program Files + ${installdir} + programfiles + all + + + Program Files + ${installdir} + programfileslinux + linux + + + Program Files + ${windows_folder_program_files} + programfileswindows + windows + + + Program Files + /Applications + programfilesosx + osx + + + ../../build/Agama-darwin-x64/Agama.app + + + + + + + + + previous_installation_exists + 1 + + + + + + + + version oldVersion installdir oldInstalldir + name variable + + + + /etc/${project.vendor}-${project.shortName}.ini + ${name} +
details
+ ${variable} + + + equals + ${previous_installation_exists} + 1 + + +
+
+ + + +
+
+ + + open + ${oldInstalldir}/Agama.app/${uninstallerName}.app + + + equals + ${previous_installation_exists} + 1 + + + + + Deleting user data + ${user_home_directory}/Library/Application Support/Iguana + Deleting user data + + + equals + ${previous_installation_exists} + 1 + + + equals + ${installation_type} + uninstall + + + equals + ${keep_settings_and_userdata} + 0 + + + + + Deleting ZcashParams + ${user_home_directory}/Library/Application Support/ZcashParams/ + Deleting ZcashParams + + + equals + ${previous_installation_exists} + 1 + + + equals + ${installation_type} + uninstall + + + equals + ${keep_settings_and_userdata} + 0 + + + + + Uninstalled + Uninstalled + + + equals + ${previous_installation_exists} + 1 + + + equals + ${installation_type} + uninstall + + + + + 0 + Creating ZcashParam directory + ${user_home_directory}/Library/Application Support/ZcashParams/ + Creating ZcashParam directory + 0 + + + 0 + Zcash Params file: sprout-proving.key + Zcash Params file: sprout-proving.key + 0 + Downloading Zcash Params file + + + 0 + Zcash Params file: sprout-proving.key + ${user_home_directory}/Library/Application Support/ZcashParams/sprout-proving.key + Zcash Params file: sprout-proving.key + 0 + https://z.cash/downloads/sprout-proving.key + + + + + 1 + ${user_home_directory}/Library/Application Support/ZcashParams/sprout-proving.key + + + + + 0 + Zcash Params file: sprout-verifying.key + Zcash Params file: sprout-verifying.key + Downloading Zcash Params files + + + 0 + Zcash Params file: sprout-verifying.key + ${user_home_directory}/Library/Application Support/ZcashParams/sprout-verifying.key + Zcash Params file: sprout-verifying.key + 0 + https://z.cash/downloads/sprout-verifying.key + + + + + 1 + ${user_home_directory}/Library/Application Support/ZcashParams/sprout-verifying.key + + + + + + + + version "${project.version}" installdir "${installdir}" + name variable + + + /etc/${project.vendor}-${project.shortName}.ini + ${name} +
details
+ ${variable} +
+
+ + + +
+ +
+ lzham-ultra + 0 + 1 + 1 + 1 + 1 + ${installdir}/Agama.app/ + Uninstall-Agama + SuperNETOrg + + + open + /Applications/Agama.app + Do you want to launch ${project.fullName} now? + + + + + installdir + Installer.Parameter.installdir.description + Installer.Parameter.installdir.explanation + + /Applications + 0 + prefix + 1 + 0 + 30 + + + You don't have enough disk space to install the application, + please select another installation directory + + + less + ${installdir} + ${required_diskspace} + + + + + + + installation_type + Instalation type + Existing instalation is detected + Existing instalation is detected + uninstall + uninstall + + + uninstall + Uninstall + Uninstall + + + + + + 0 + 0 + + + + + Re-install + + + + + + + equals + ${previous_installation_exists} + 1 + + + + +
+ diff --git a/assets/bitrock_installer/AgamaApp-windows.xml b/assets/bitrock_installer/AgamaApp-windows.xml new file mode 100755 index 0000000..3851d8e --- /dev/null +++ b/assets/bitrock_installer/AgamaApp-windows.xml @@ -0,0 +1,491 @@ + + AgamaApp + iguana + ${PKG_VERSION} + ../../LICENSE + ../installer_imgs/Agama_installer_wizard_image.png + ../installer_imgs/supernet-agama-logo.png + ../installer_imgs/Agama_installer_splash_image.png + 1 + + + default + ${project.shortName} + 0 + All application files. Required size: ${project.component(default).requiredSize} KB + 1 + 1 + + + Start Agama App + + + Agama App + + all + 0 + 0 + ${installdir}/Agama.exe + + + ${installdir}/ + + + + + Program Files + ${installdir} + programfiles + all + + + Uninstall + ${installdir}/${uninstallerName} + + Uninstall ${product_fullname} + ${installdir} + all + 0 + 0 + ${installdir}/${uninstallerName}.exe + + + ${installdir} + + + + + Program Files + ${installdir} + programfileslinux + linux + + + Program Files + ${installdir} + programfileswindows + windows + + + ../../build/Agama-win32-x64/locales + + + ../../build/Agama-win32-x64/resources + + + ../../build/Agama-win32-x64/blink_image_resources_200_percent.pak + + + ../../build/Agama-win32-x64/content_resources_200_percent.pak + + + ../../build/Agama-win32-x64/content_shell.pak + + + ../../build/Agama-win32-x64/ui_resources_200_percent.pak + + + ../../build/Agama-win32-x64/views_resources_200_percent.pak + + + ../../build/Agama-win32-x64/icudtl.dat + + + ../../build/Agama-win32-x64/LICENSES.chromium.html + + + ../../build/Agama-win32-x64/natives_blob.bin + + + ../../build/Agama-win32-x64/snapshot_blob.bin + + + ../../build/Agama-win32-x64/d3dcompiler_47.dll + + + ../../build/Agama-win32-x64/ffmpeg.dll + + + ../../build/Agama-win32-x64/libEGL.dll + + + ../../build/Agama-win32-x64/libGLESv2.dll + + + ../../build/Agama-win32-x64/node.dll + + + ../../build/Agama-win32-x64/xinput1_3.dll + + + ../../build/Agama-win32-x64/LICENSE + + + ../../build/Agama-win32-x64/version + + + ../../build/Agama-win32-x64/Agama.exe + + + + + Program Files + ${installdir} + programfilesosx + osx + + + + + Uninstall ${product_fullname} + Uninstall Agama App + 0 + 0 + ${installdir}/${uninstallerName}.exe + + + ${installdir}/ + + + Start Agama App + Agama App + 0 + 0 + ${installdir}/Agama.exe + + + ${installdir}/ + + + Right Click and Run As Administrator + DLL Fix (Run As Administrator) + 0 + 0 + ${installdir}/resources/app/windeps/CopyWinDepsFiles.bat + + + ${installdir}/resources/app/windeps/ + + + + + + + HKEY_LOCAL_MACHINE\SOFTWARE\${project.shortname} + uninstaller_path + uninstaller_path + + + previous_installation_exists + 1 + + + + + + + + ${uninstaller_path} + + + + equals + ${previous_installation_exists} + 1 + + + + + Deleting user data + ${windows_folder_appdata}/Agama + Deleting user data + + + equals + ${previous_installation_exists} + 1 + + + equals + ${installation_type} + uninstall + + + equals + ${keep_settings_and_userdata} + 0 + + + + + Uninstalled + Uninstalled + + + equals + ${previous_installation_exists} + 1 + + + equals + ${installation_type} + uninstall + + + + + Downloading files + + + 0 + Visual C++ Redistributable for Visual Studio 2015 library files are needed for Agama daemon + ${system_temp_directory}/vc_redist.x64.exe + Downloading Visual C++ Redistributable for Visual Studio 2015 + 0 + https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x64.exe + + + + + 1 + ${system_temp_directory}/vc_redist.x64.exe + + + + + 0 + Visual C++ Redistributable for Visual Studio 2015 library files are needed for Agama daemon + ${system_temp_directory}/vc_redist.x64.exe + /install /passive + Downloading Visual C++ Redistributable for Visual Studio 2015 + 0 + + + Downloading files + + + 0 + Visual C++ Redistributable for Visual Studio 2015 library files are needed for Agama daemon + ${system_temp_directory}/vc_redist.x86.exe + Downloading Visual C++ Redistributable for Visual Studio 2015 + 0 + https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x86.exe + + + + + 1 + ${system_temp_directory}/vc_redist.x86.exe + + + + + 0 + Visual C++ Redistributable for Visual Studio 2015 library files are needed for Agama daemon + ${system_temp_directory}/vc_redist.x86.exe + /install /passive + Downloading Visual C++ Redistributable for Visual Studio 2015 + 0 + + + 0 + Creating ZcashParam directory + ${windows_folder_appdata}/ZcashParams/ + Creating ZcashParam directory + 0 + + + 0 + Zcash Params file: sprout-proving.key + Zcash Params file: sprout-proving.key + 0 + Downloading Zcash Params file + + + 0 + Zcash Params file: sprout-proving.key + ${windows_folder_appdata}/ZcashParams/sprout-proving.key + Zcash Params file: sprout-proving.key + 0 + https://z.cash/downloads/sprout-proving.key + + + + + 1 + ${windows_folder_appdata}/ZcashParams/sprout-proving.key + + + + + 0 + Zcash Params file: sprout-verifying.key + Zcash Params file: sprout-verifying.key + Downloading Zcash Params files + + + 0 + Zcash Params file: sprout-verifying.key + ${windows_folder_appdata}/ZcashParams/sprout-verifying.key + Zcash Params file: sprout-verifying.key + 0 + https://z.cash/downloads/sprout-verifying.key + + + + + 1 + ${windows_folder_appdata}/ZcashParams/sprout-verifying.key + + + + + + + HKEY_LOCAL_MACHINE\SOFTWARE\${project.shortname} + uninstaller_path + REG_SZ + ${installdir}/${uninstallerName}.exe + + + + + C:\Windows\System32\ + Copying ReqCopying Required DLL filesuired DLL files + ${installdir}/resources/app/windeps/x86/ucrtbased.dll + Copying ReqCopying Required DLL filesuired DLL files + + + C:\Windows\System32\ + Copying ReqCopying Required DLL filesuired DLL files + ${installdir}/resources/app/windeps/x86/vcruntime140d.dll + Copying ReqCopying Required DLL filesuired DLL files + + + + + + + + + + C:\Windows\System32\ + Copying ReqCopying Required DLL filesuired DLL files + ${installdir}/resources/app/windeps/x64/ucrtbased.dll + Copying ReqCopying Required DLL filesuired DLL files + + + C:\Windows\System32\ + Copying ReqCopying Required DLL filesuired DLL files + ${installdir}/resources/app/windeps/x64/vcruntime140d.dll + Copying ReqCopying Required DLL filesuired DLL files + + + C:\Windows\SysWOW64\ + Copying ReqCopying Required DLL filesuired DLL files + ${installdir}/resources/app/windeps/x86/ucrtbased.dll + Copying ReqCopying Required DLL filesuired DLL files + + + C:\Windows\SysWOW64\ + Copying ReqCopying Required DLL filesuired DLL files + ${installdir}/resources/app/windeps/x86/vcruntime140d.dll + Copying ReqCopying Required DLL filesuired DLL files + + + + + + + + + + HKEY_LOCAL_MACHINE\SOFTWARE\${project.shortname} + uninstaller_path + + + lzham-ultra + 0 + 1 + 1 + 1 + 1 + SuperNETOrg + 1 + + + ${installdir}/Agama.exe + & + Do you want to launch ${project.fullName} now? + + + + + installdir + Installer.Parameter.installdir.description + Installer.Parameter.installdir.explanation + + ${platform_install_prefix}/${product_shortname} + 0 + prefix + 1 + 0 + 30 + + + You don't have enough disk space to install the application, + please select another installation directory + + + less + ${installdir} + ${required_diskspace} + + + + + + + installation_type + Instalation type + Existing instalation is detected + Existing instalation is detected + uninstall + uninstall + + + uninstall + Uninstall + Uninstall + + + + + + 0 + 0 + + + + + Re-install + + + + + + + equals + ${previous_installation_exists} + 1 + + + + + + + windows + + + + diff --git a/buildscripts/electron-build-all.sh b/buildscripts/electron-build-all.sh index ff95080..7dd1357 100755 --- a/buildscripts/electron-build-all.sh +++ b/buildscripts/electron-build-all.sh @@ -2,16 +2,16 @@ ### Build script for Iguana application for Linux x32 and x64 platform. ### Created by mmaxian, 3/2017 -[ -z $IGUANA_VERSION ] && echo "IGUANA_VERSION variable is not set." && exit 0 +[ -z $AGAMA_VERSION ] && echo "AGAMA_VERSION variable is not set." && exit 0 -echo "Preparing electron package $IGUANA_VERSION for Linux." +echo "Preparing electron package $AGAMA_VERSION for Linux." ./buildscripts/electron-build-linux.sh echo -echo "Preparing electron package $IGUANA_VERSION for Windows." +echo "Preparing electron package $AGAMA_VERSION for Windows." ./buildscripts/electron-build-win.sh echo -echo "Preparing electron package $IGUANA_VERSION for MacOS." +echo "Preparing electron package $AGAMA_VERSION for MacOS." ./buildscripts/electron-build-osx.sh echo \ No newline at end of file diff --git a/buildscripts/electron-build-linux.sh b/buildscripts/electron-build-linux.sh index 8189ca1..23f5f89 100755 --- a/buildscripts/electron-build-linux.sh +++ b/buildscripts/electron-build-linux.sh @@ -1,16 +1,13 @@ #!/bin/bash -### Build script for Iguana application for Linux x32 and x64 platform. +### Build script for Iguana application for Linux x64 platform. ### Created by mmaxian, 3/2017 -[ -z $IGUANA_VERSION ] && echo "IGUANA_VERSION variable is not set." && exit 0 +[ -z $AGAMA_VERSION ] && echo "AGAMA_VERSION variable is not set." && exit 0 + +echo "Build script for Iguana application for Linux x64 platform." +echo "Preparing electron package $AGAMA_VERSION" -echo "Build script for Iguana application for Linux x32 and x64 platform." -echo "Preparing electron package $IGUANA_VERSION" -electron-packager . --platform=linux --arch=ia32 \ - --icon=assets/icons/iguana_app_icon_png/128x128.png \ - --out=build/ --buildVersion=$IGUANA_VERSION \ - --ignore=assets/bin/win64 --ignore=assets/bin/osx --overwrite electron-packager . --platform=linux --arch=x64 \ --icon=assets/icons/iguana_app_icon_png/128x128.png \ - --out=build/ --buildVersion=$IGUANA_VERSION \ + --out=build/ --buildVersion=$AGAMA_VERSION \ --ignore=assets/bin/win64 --ignore=assets/bin/osx --overwrite \ No newline at end of file diff --git a/buildscripts/electron-build-osx.sh b/buildscripts/electron-build-osx.sh index b92f5ae..208e7de 100755 --- a/buildscripts/electron-build-osx.sh +++ b/buildscripts/electron-build-osx.sh @@ -2,11 +2,11 @@ ### Build script for Iguana application for MacOS platform. ### Created by mmaxian, 3/2017 -[ -z $IGUANA_VERSION ] && echo "IGUANA_VERSION variable is not set." && exit 0 +[ -z $AGAMA_VERSION ] && echo "AGAMA_VERSION variable is not set." && exit 0 echo "Build script for Iguana application for MacOS platform." -echo "Preparing electron package $IGUANA_VERSION" +echo "Preparing electron package $AGAMA_VERSION" electron-packager . --platform=darwin --arch=x64 \ --icon=assets/icons/iguana_app_icon.icns \ - --out=build/ --buildVersion=$IGUANA_VERSION \ + --out=build/ --buildVersion=$AGAMA_VERSION \ --ignore=assets/bin/win64 --ignore=assets/bin/linux64 --overwrite \ No newline at end of file diff --git a/buildscripts/electron-build-win.sh b/buildscripts/electron-build-win.sh deleted file mode 100755 index 0e1e22a..0000000 --- a/buildscripts/electron-build-win.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -### Build script for Iguana application for Windows ia32 and x64 platform. -### Created by mmaxian, 3/2017 - -[ -z $IGUANA_VERSION ] && echo "IGUANA_VERSION variable is not set." && exit 0 - -echo "Build script for Iguana application for Windows ia32 and x64 platform." -echo "Preparing electron package $IGUANA_VERSION" - -electron-packager . --platform=win32 --arch=x64 \ - --icon=assets/icons/iguana_app_icon.ico \ - --out=build/ --buildVersion=$IGUANA_VERSION \ - --ignore=assets/bin/osx --ignore=assets/bin/linux64 --overwrite - -electron-packager . --platform=win32 --arch=ia32 \ - --icon=assets/icons/iguana_app_icon.ico \ - --out=build/ --buildVersion=$IGUANA_VERSION \ - --ignore=assets/bin/osx --ignore=assets/bin/linux64 --overwrite \ No newline at end of file diff --git a/buildscripts/electron-build-windows.sh b/buildscripts/electron-build-windows.sh new file mode 100755 index 0000000..b066f96 --- /dev/null +++ b/buildscripts/electron-build-windows.sh @@ -0,0 +1,13 @@ +#!/bin/bash +### Build script for Iguana application for Windows x64 platform. +### Created by mmaxian, 3/2017 + +[ -z $AGAMA_VERSION ] && echo "AGAMA_VERSION variable is not set." && exit 0 + +echo "Build script for Iguana application for Windows x64 platform." +echo "Preparing electron package $AGAMA_VERSION" + +electron-packager . --platform=win32 --arch=x64 \ + --icon=assets/icons/iguana_app_icon.ico \ + --out=build/ --buildVersion=$AGAMA_VERSION \ + --ignore=assets/bin/osx --ignore=assets/bin/linux64 --overwrite \ No newline at end of file