-
Notifications
You must be signed in to change notification settings - Fork 2
Development
cryi edited this page Feb 20, 2020
·
6 revisions
To develop AMI based applications you do not need access to AIR repository nor internet connectivity.
- install
ami
andeli
wget https://raw.githubusercontent.com/cryon-io/ami/master/install.sh -O /tmp/install.sh && sh /tmp/install.sh
- prepare directories for layers you want to develop
- Lets say you want to develop/improve
etho.node
andetho.binaries
layers - Create directories for your layers e.g.:
mkdir -p ~/ami/etho.binaries ~/ami/etho.node
- Lets say you want to develop/improve
- create source mapping for ami -
~/ami/sources.hjson
, for example:
"etho.node": "~/ami/etho.node"
"etho.binaries": "~/ami/etho.binaries"
- Run ami with
--local-sources
(It is recommended to usetrace
log level for testing)ami --local-source=~/ami/sources.hjson -ll=trace <command>
ami
packages local source as zip and copies it into cache to provide closest experience to using AIR repository. This will pollute your cache and you should clean it from time to time - it wont cause any issue, but it will take some space.