From ea5268d4201c864feccf822af4939b2d7e6bb09c Mon Sep 17 00:00:00 2001 From: Fredrik Bagge Carlson Date: Thu, 6 Apr 2023 10:38:04 +0200 Subject: [PATCH 1/3] Add hints on running non-compiled app --- docs/src/apps.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/src/apps.md b/docs/src/apps.md index c32a149a..3fd7bb1b 100644 --- a/docs/src/apps.md +++ b/docs/src/apps.md @@ -73,6 +73,16 @@ archive and sent to another machine or an installer could be wrapped around the directory, perhaps providing a better user experience than just an archive of files. +To make the non-compiled app runnable from the command line, one may, e.g., create a script +`MyApp/main.jl` with the contents +```julia +import MyApp +MyApp.julia_main() +``` +which can be invoked by calling `julia MyApp/main.jl args...`. +This requires the `MyApp` package is available on the julia +[`LOAD_PATH`](https://docs.julialang.org/en/v1/base/constants/#Base.LOAD_PATH). + ### Compilation of functions In the same way as [files for precompilation could be given when creating From f327a7a48755fd86acee131ca1b2f8222f6c57b5 Mon Sep 17 00:00:00 2001 From: Fredrik Bagge Carlson Date: Thu, 6 Apr 2023 10:40:21 +0200 Subject: [PATCH 2/3] Update apps.md --- docs/src/apps.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/apps.md b/docs/src/apps.md index 3fd7bb1b..141c26e7 100644 --- a/docs/src/apps.md +++ b/docs/src/apps.md @@ -80,7 +80,7 @@ import MyApp MyApp.julia_main() ``` which can be invoked by calling `julia MyApp/main.jl args...`. -This requires the `MyApp` package is available on the julia +This requires the `MyApp` package being available on the julia [`LOAD_PATH`](https://docs.julialang.org/en/v1/base/constants/#Base.LOAD_PATH). ### Compilation of functions From 88b35f77e3d2626f37314f0a479d29eb3a9b7316 Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Mon, 24 Apr 2023 09:12:13 +0200 Subject: [PATCH 3/3] tweak invocation --- docs/src/apps.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/src/apps.md b/docs/src/apps.md index 141c26e7..09832ce3 100644 --- a/docs/src/apps.md +++ b/docs/src/apps.md @@ -79,9 +79,7 @@ To make the non-compiled app runnable from the command line, one may, e.g., crea import MyApp MyApp.julia_main() ``` -which can be invoked by calling `julia MyApp/main.jl args...`. -This requires the `MyApp` package being available on the julia -[`LOAD_PATH`](https://docs.julialang.org/en/v1/base/constants/#Base.LOAD_PATH). +which can be invoked by calling `julia --project=MyApp MyApp/main.jl args...`. ### Compilation of functions