Skip to content

SketchExportGroup

Allows to easily match and install assets generated by the module in SketchExport product. Moreā€¦

Inherits Group

Properties

Detailed Description

The SketchExportGroup just captures all the assets generated by the Sketch.export module within current product. It also defines all of them as installable by default.

Internals

Essentially, it's just a convenient item defined as following:

import qbs

Group {
    property string installPrefix
    property string installDir

    fileTagsFilter: ['sketch.export']
    qbs.install: true
    qbs.installPrefix: installPrefix
    qbs.installDir: installDir
    qbs.installSourceBase: Sketch['export'].workingDir
}

It can be used in conjunction with SketchExport as following:

import qbs

SketchExport {
    name: 'sketch-assets'
    files: '*.sketch'

    SketchExportGroup {
        installPrefix: 'app'
        installDir: 'assets'
    }
}

Property Documentation

installPrefix

Alias to qbs.installPrefix

installDir

Alias to qbs.installDir