saker.windows Documentation TaskDoc JavaDoc Packages
  1. saker.windows
  2. Appx handling
  3. Preparing appx

Preparing appx

Preparing an appx means that you construct the hierarchy of the application contents. The files that will be packaged into your final .appx file will be set up in the build directory.

The saker.appx.prepare() task lets you specify the contents of your application:

$executable_path = #...
saker.appx.prepare(
	AppxManifest: manifests/AppxManifest.xml,
	Contents: [
		$executable_path,
		{
			Directory: assets,
			Wildcard: **
		}
	]
)

The above simply sets up the application directory with the specified manifest and contents. The prepared application then can be registered and launched if you intent to run it for testing.

It can also be packaged and then signed for distribution.