Building Wekan for Sandstorm

Lauri Ojansivu edited this page Oct 24, 2017 · 13 revisions

1) Download Wekan VirtualBox image

2) Update all packages

sudo apt-get update && sudo apt-get -y dist-upgrade

3) Install kernel that works with building for Sandtorm

Sandstorm issue about kernel bug

Kernel packaces list




sudo dpkg -i linux-headers-4.4.14-040414_4.4.14-040414.201606241434_all.deb \
linux-headers-4.4.14-040414-generic_4.4.14-040414.201606241434_amd64.deb \

4) Install gcc version that works for compiling VirtualBox extensions on kernel 4.4.14

Info source at VirtualBox forums

Info source at AskUbuntu

sudo add-apt-repository ppa:ubuntu-toolchain-r/test

sudo apt-get update

sudo apt-get install gcc-4.9

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20

5) Install VirtualBox kernel extensions

From Devices / Install Guest Additions CD image...

6) Install Sandstorm dev version

Info source

Start install:

curl | bash

Use options for development / dev install.

7) Add Wekan to sandstorm user group textfile /etc/group

sudo useradd -G sandstorm wekan

8) Download meteor-spk packaging tool

Info source

cd ~/repos
curl | tar Jxf -
echo "export PATH=$PATH:~/repos/meteor-spk-0.3.2" >> ~/.bashrc

9) Reboot

sudo reboot

10) Stop Wekan

cd ~/repos

Check did Wekan stop really:

ps aux | grep 'node main.js'

You may need to kill it:

sudo kill -9 PID-NUMBER-HERE

(This process should be improved).

11) Rebuild Wekan

cd ~/repos

12) Build development package and install to local Sandstorm

cd ~/repos/wekan
meteor-spk dev

13) After building Wekan, last line of text should be:

App in now available from Sandstorm server. Ctrl-C to disconnect.

14) In terminal, click File / Open Tab to open new shell, and get login URL

sudo sandstorm admin-token

15) Go to login URL with Firefox

16) You may need to setup your username etc

17) Go to Apps / Wekan. Wekan has grey "dev mode" background. Click Wekan.

18) Click + (Dev) Create new board

19) Check is everything working in Wekan.

After testing, when really xet7 is making release

20) Update Sandstorm release number

cd ~/repos/wekan
nano sandstorm-pkgdef.capnp

You may need to change these when everything works. AFAIK appVersion 20 is not released yet, as xet7 did increment it to 20. Sandstorm will reject wrong metadata, so it can be checked later.

    appVersion = 20,
    # Increment this for every release.

    appMarketingVersion = (defaultText = "0.32.0~2017-07-30"),
    # Human-readable presentation of the app version.

21) Build .spk package

meteor-spk pack wekan-0.32.spk

22) Publish to experimental Sandstorm App Market

spk publish wekan-0.32.spk

23) And then ocdtrekkie checks it, if it's Ok then he releases for official Sandstorm App Market

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.