Skip to content

Commit da46608

Browse files
authored
Add hint to make UI files relocatable (#103)
1 parent 9c066db commit da46608

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/src/manual/builder.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ b = GtkBuilder("path/to/myapp.ui")
3838
!!! note
3939
If you are developing the code in a package you can get the package directory using the `@__DIR__` macro.
4040
For instance, if your UI file is located at `MyPackage/src/builder/myuifile.ui`, you can get the full path using
41-
`uifile = joinpath(@__DIR__, "builder", "myuifile.ui")`.
41+
`uifile = joinpath(@__DIR__, "builder", "myuifile.ui")`. If you plan to create an executable application of your package using PackageCompiler,
42+
ensure that your UI file is relocatable by utilizing Artifacts.jl or RelocatableFolders.jl. For further details, please refer to the documentation of the respective packages.
4243

4344
Alternatively, if we store the above XML definition in a Julia string `myapp` we can initialize
4445
the builder by

0 commit comments

Comments
 (0)