Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cmt #5

Merged
merged 1 commit into from
Dec 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions buildscripts/devversion.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env python
from __future__ import print_function
import sys
attrs={}
with open(sys.argv[1],"r") as fileh:
for line in fileh:
line=line.strip()
parts=line.split("=",2)
attrs[parts[0]]=parts[1]
if "type" in attrs:
print ("{0}-{1}".format(attrs["version"],attrs["type"]))
else:
print (attrs["version"])
64 changes: 64 additions & 0 deletions install_Agama_my_fork.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#!/bin/bash
agamamatch=`expr match "$(pwd)" '.*\([Aa]gama\)'`
if [[ -z $agamamatch ]]
#This IS NOT INTENDED to be run in any other submodule
then
git clone --recursive https://github.com/Lucioric2000/Agama
cd Agama
fi
git remote add upstream https://github.com/KomodoPlatform/Agama
git checkout fullapidev
git pull upstream dev
git merge dev
echo estamos en $(pwd)
npm install
npm install webpack@3.0.0 webpack-cli@3.0.0
./binary_artifacts.sh
#npm start
cd gui
echo cdggui in $(pwd)
if [[ -d EasyDEX-GUI ]]
then
echo The EasyDEX-GUI dir already existed
cd EasyDEX-GUI/react
echo edx0 en $(pwd)
else
git clone https://github.com/Lucioric2000/EasyDEX-GUI
cd EasyDEX-GUI/react
fi
echo edx en $(pwd)
git remote add upstream https://github.com/KomodoPlatform/EasyDEX-GUI
git checkout dev
git pull upstream dev
#npm install electron-packager electron-prebuilt
sudo /usr/local/bin/node /usr/local/bin/npm install -g electron-packager
npm install electron
npm install
pwd
cd src
npm install
#npm start
cd ../../../../
echo entonces en
pwd
#npm install electron-prebuilt
#Detect OS and run the adequate builder
os=${OSTYPE//[0-9.-]*/}

case "$os" in
darwin)
echo "I'm a Mac. ¿Do I need to run more steps?."
;;

msys)
echo "I'm Windows using git bash. ¿Do I need to run more steps?.";
;;
linux)
echo "Building on Linux"
./build-linux.sh $(python ../buildscripts/devversion.py version)
;;
*)

echo "Unknown Operating system $OSTYPE"
exit 1
esac