Skip to content

Documentation for NimX is unclear. #499

@ShockedCoder

Description

@ShockedCoder

I cannot seem to find a solution to changing some of the attributes of "Builder".

I'm trying to do it like this after looking through the code:

import nimx/naketools
import strformat

const
    appName           = "CollectiveGallery"
    appVersion        = "1.0"
    javaPackageId     = &"eu.example.{appName}"
    activityClassName = &"{javaPackageId}.MainActivity"
    mainFile          = "src/CollectiveGallery"
    bin               = mainFile


var cgBuild = newBuilder() # cg = CollectiveGallery

cgBuild.appName           = appName
cgBuild.appVersion        = appVersion
cgBuild.javaPackageId     = javaPackageId
cgBuild.activityClassName = activityClassName
cgBuild.mainFile          = mainFile

beforeBuild(cgBuild)

But, as expected, this doesn't work and I'm met with a SIGSEGV error.

There also doesn't seem to be a way to change what name the binary ends up as.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions