Skip to content

Standalone settings in app.yml #220

@montegoulding

Description

@montegoulding

In my finalizePackagedAssets handler I have this and wondering if it's generally useful enough to include in the packager. I have a use case for the icon picker which is an ide widget that is not listed in the extensions on the standalone settings. You can add it manually the correct key in the custom prop but then if you go and add a different inclusion in standalone settings you lose it. Anyway I like to reduce opaque binary file changes wherever I can.

I have pondered if this should also merge up from the build profile/all profiles key so you can have different settings for different profiles but not sure I have a use case for that myself.

	/* Update standalone settings with those in the app.yml. */
	local tSettingsD, tSettingsToMergeD
	put the customProperties["cRevStandaloneSettings"] \
			of stack levureStandaloneStackName() \
		into tSettingsD
	put xAppA["standalone settings"] into tSettingsToMergeD

	repeat for each item tKey in "extensions,scriptLibraries,externals"
		split tSettingsD[tKey] by return as set
		split tSettingsToMergeD[tKey] by return as set
	end repeat

	union tSettingsToMergeD with tSettingsD recursively into tSettingsD

	repeat for each item tKey in "extensions,scriptLibraries,externals"
		combine tSettingsD[tKey] with return as set
	end repeat

	set the customProperties["cRevStandaloneSettings"] \
			of stack levureStandaloneStackName() \
		to tSettingsD

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