2016-11-21 16:37:13 +00:00
|
|
|
- Get the draw.io project from github
|
|
|
|
- Navigate to `drawio/etc/sandstorm`
|
2016-11-21 16:38:22 +00:00
|
|
|
- Create a directory named `build`
|
|
|
|
- [Install vagrant-spk](https://docs.sandstorm.io/en/latest/vagrant-spk/installation/)
|
|
|
|
- `cd build`
|
|
|
|
- `vagrant-spk setupvm diy`
|
|
|
|
- `vagrant-spk vm up`
|
2017-04-20 10:13:54 +00:00
|
|
|
- `cd ..`
|
|
|
|
- Invoke `./stage.sh` to stage the build files. gfind is gnu find on OS X.
|
2016-12-01 11:04:38 +00:00
|
|
|
- Log into the vagrant box `vagrant-spk vm ssh`
|
|
|
|
- `sudo apt-get install g++`
|
2016-11-21 16:38:22 +00:00
|
|
|
- [Install latest capnp](https://capnproto.org/install.html)
|
2017-04-20 10:13:54 +00:00
|
|
|
- In the vm, under `/opt/app/.sandstorm` run `make dev`
|
|
|
|
|
|
|
|
To package
|
|
|
|
- Transfer the correct `sandstorm-keyring` file to `/host-dot-sandstorm`
|
|
|
|
- Update the `sandstorm-pkgdef.capnp` to the correct version (re-stage prior to packaging)
|
|
|
|
- In the host under `/opt/app/.sandstorm` `spk pack --keyring=/host-dot-sandstorm/sandstorm-keyring --pkg-def=/opt/app/.sandstorm/sandstorm-pkgdef.capnp:pkgdef /home/vagrant/sandstorm-package.spk && spk verify --details /home/vagrant/sandstorm-package.spk && mv /home/vagrant/sandstorm-package.spk /opt/app/sandstorm-drawio.spk`
|
|
|
|
- In the host under `/opt/app` `spk publish -k /host-dot-sandstorm/sandstorm-keyring sandstorm-drawio.spk`
|