Build from the given config file using ``sencha build``.

        :param jsb: The JSB config as a string.
        :param nocompressjs: Compress the javascript? If ``True``, run ``sencha build --nocompress``.

def buildFromJsbString(self, jsb, nocompressjs=False):
        """
        Build from the given config file using ``sencha build``.

        :param jsb: The JSB config as a string.
        :param nocompressjs: Compress the javascript? If ``True``, run ``sencha build --nocompress``.
        """
        tempconffile = 'temp-app.jsb3'
        cmd = ['sencha', 'build', '-p', tempconffile, '-d', self.outdir]
        if nocompressjs:
            cmd.append('--nocompress')
        open(tempconffile, 'w').write(jsb)
        log.info('Running: %s', ' '.join(cmd))
        try:
            call(cmd)
        finally:
            remove(tempconffile)