-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I'm trying out PackageBundler, and I'm not completely sure I'm getting the proper output in build
.
Should the following instructions yield a MWE? The following MWE might be useful.
- Generate a
PackageBundler
project inExampleBundle
:
julia --eval '
import Pkg
Pkg.activate(; temp = true)
Pkg.add(; url = "https://github.com/PumasAI/PackageBundler.jl")
import PackageBundler
PackageBundler.generate(joinpath(pwd(), "ExampleBundle"))
'
- Generate an environment in
ExampleBundle/environments/ExampleEnv
(Serialization
is required to be in env.):
cd ExampleBundle
mkdir -p environments/ExampleEnv
cat <<EOT > environments/ExampleEnv/Project.toml
[deps]
Example = "7876af07-990d-54b4-ab0e-23690620f79a"
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
EOT
julia --project=environments/ExampleEnv --eval '
using Pkg
Pkg.instantiate()
'
- Adapt the generated
ExampleBundle/PackageBundler.toml
to strip code fromExample
fromGeneral
:
cat <<EOT > PackageBundler.toml
name = "ExampleBundle"
uuid = "f3c4f87b-1a1f-6f7f-c170-8f556c78b68b"
environments = [
"environments/ExampleEnv",
]
outputs = ["build"]
key = "key"
clean = true
multiplexers = ["juliaup", "asdf"]
# Registries that you want to strip code from.
# [registries]
# Packages that you want to strip code from.
[packages]
"7876af07-990d-54b4-ab0e-23690620f79a" = "Example"
EOT
- Generate keys:
julia --project --eval '
import PackageBundler
PackageBundler.keypair(pwd())
'
- Bundle
ExampleBundle
(ExampleEnv
) intobuild
:
julia --project bundle.jl
Metadata
Metadata
Assignees
Labels
No labels