You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
ca333 3d1162538b
333
7 years ago
assets Merge pull request #176 from SuperNETorg/master 7 years ago
buildscripts 333 7 years ago
gui AGT-113 7 years ago
private 333 7 years ago
routes addcoin bug fix 7 years ago
windeps Windows iguana changed to 32bit and DLL Fix batch file included 8 years ago
.gitignore added .electron cache to gitignore 8 years ago
.gitmodules EasyDEX-GUI submodule added 8 years ago
AgamaApp-windows.md Agama build 0.2.0.1a-beta-windows at Mon Jun 12 11:57:21 CEST 2017 7 years ago
LICENSE license file update, GameCredits info update, latest iguana osx binary 8 years ago
README.md updated readme, missing bins dl instructions 7 years ago
binary_artifacts.sh use legacy libs for OSX 7 years ago
binary_artifacts_mac.sh added binary artifacts dl sh mac 7 years ago
check_submodule.sh git submodule command change in parameters 8 years ago
main.js AGT-113 7 years ago
make-deb.js rpm/deb make script 7 years ago
make-patch.sh move startup windows html content to a separate folder 7 years ago
make-rpm.js rpm/deb make script 7 years ago
package.json rpm/deb make script 7 years ago
version iguana core cleanup 7 years ago
version_build iguana core cleanup 7 years ago

README.md

Agama Desktop App

Desktop App for SuperNET DAPPs

For Developers

You must have node.js and npm installed on your machine.

Clone Agama Desktop App with EasyDEX-GUI submodule

git clone --recursive https://github.com/SuperNETorg/Agama.git
cd gui/EasyDEX-GUI/
git checkout master
git pull
cd ../../

Install Agama App

cd Agama
npm install

Then start Agama App

npm start

Important dev notes

Use the following config.json for dev

Place it in ./iguana folder.

{
"edexGuiOnly": true,
"iguanaGuiOnly": false,
"manualIguanaStart": false,
"skipBasiliskNetworkCheck": true,
"minNotaries": 8,
"host": "127.0.0.1",
"agamaPort": 17777,
"iguanaCorePort": 7778,
"maxDescriptors": {
"darwin": 90000,
"linux": 1000000
},
"killIguanaOnStart": true,
"dev": true,
"v2": true,
"useBasiliskInstance": true,
"debug": true,
"iguanaAppPort": 17777,
"forks": {
"basilisk": false,
"all": false
}
}

Sockets.io

In dev mode backend is configured to send/receive messages from/to http://127.0.0.1:3000 address. If you open it as http://localhost:3000 sockets server will reject any messages.

Coin daemon binaries

Run binary_artifacts.sh from under agama folder you cloned previously. The script will fetch

For end users

The instructions to make production build of Agama App will be updated soon.

To build the production ready app, install electron-packager and electron-prebuilt packages from npm

npm install electron-packager -g
npm install electron-prebuilt -g

Build the Wallet-App

Refer to the original electron-packager repository for more detailed information.

Linux

Change directory to iguana and execute the following command to build the Linux app

cd iguana
electron-packager . --platform=linux --arch=x64 --icon=assets/icons/agama_icons/128x128.png --out=build/ --buildVersion=VERSION_NUMBER_HERE --ignore=assets/bin/win64 --ignore=assets/bin/osx --overwrite

change architecture build parameter to --arch=x32 for 32 bit build

OSX

Change directory to iguana and execute the following command to build the OSX app

cd iguana
electron-packager . --platform=darwin --arch=x64 --icon=assets/icons/agama_icons/agama_app_icon.icns --out=build/ --buildVersion=VERSION_NUMBER_HERE --ignore=assets/bin/win64 --ignore=assets/bin/linux64 --overwrite
Windows

Change directory to iguana and execute the following command to build the Windows app

dir iguana
electron-packager . --platform=win32 --arch=x64 --icon=assets/icons/agama_icons/agama_app_icon.ico --out=build/ --buildVersion=VERSION_NUMBER_HERE --ignore=assets/bin/osx --ignore=assets/bin/linux64 --overwrite

# If generating 32bit desktop package
electron-packager . --platform=win32 --arch=ia32 --icon=assets/icons/agama_icons/agama_app_icon.ico --out=build/ --buildVersion=VERSION_NUMBER_HERE --ignore=assets/bin/osx --ignore=assets/bin/linux64 --overwrite

# To build both x64 and x86 desktop package
electron-packager . --platform=win32 --arch=all --icon=assets/icons/agama_icons/agama_app_icon.ico --out=build/ --buildVersion=VERSION_NUMBER_HERE --ignore=assets/bin/osx --ignore=assets/bin/linux64 --overwrite

change architecture build parameter to --arch=x64 for 64 bit build

Troubleshooting Instructions

Windows DLL issues

On Windows it's noticed iguana.exe complains about VCRUNTIME140D.DLL and ucrtbased.dll file.

Please see windeps directory and README file for instructions to install the required DLL files on Windows, and then try again running Agama App.