ApplicationBuilderAppUtils.ApplicationBuilderAppUtils
— Modulemodule ApplicationBuilderAppUtils
Provides utilities for applications built with ApplicationBuilder.jl.
ApplicationBuilderAppUtils.cd_to_bundle_resources
— Methodcd_to_bundle_resources()
Change directories to the application bundle's resources directory, as calculated by get_bundle_resources_dir()
.
On macOS, this will be /path/to/MyApp.app/Contents/Resources
. On Windows/linux, this will be /path/to/MyApp/res
.
ApplicationBuilderAppUtils.get_bundle_resources_dir
— Methodget_bundle_resources_dir()
Return the runtime path to the application bundle's resources directory. This is calculated relative to the path to this binary, obtained via argv[0]
.
On macOS, this will be /path/to/MyApp.app/Contents/Resources
. On Windows/linux, this will be /path/to/MyApp/res
.
ApplicationBuilderAppUtils.is_static_compiling
— Methodis_static_compiling()
Returns true if the caller is being statically compiled via ApplicationBuilder.build_app_bundle()
, and false otherwise.
Note that this will return false when executing a statically compiled program; it only returns true during compilation. It is intended for use in top-level, global statements.