# {{ app_display }} {{ app_version }} -- ariza runner configuration.
#
# Read at startup by bin\{{ app_exec }}.exe, the compiled launcher.
# Generated by ariza for {{ platform }}: it describes this bundle, so
# there is nothing here worth editing -- rebuild the bundle instead.
#
# UTF-8, one directive per line, applied in order. A `#` in the first
# non-blank column starts a comment; blank lines are ignored; a `#`
# anywhere else is an ordinary character. A line the runner does not
# recognise stops the launch, naming the line: an app started with an
# environment that is quietly incomplete fails later and much worse.
#
#   target PATH          the script the interpreter is given
#   app-exec NAME        names the first-run marker directory
#   app-display NAME     the name messages are printed under
#   set NAME=VALUE       set an environment variable
#   unset NAME           remove one
#   prepend-path VALUE   put VALUE at the front of PATH
#
# In a VALUE, `{root}` is this bundle's root -- the directory above
# bin\, worked out at run time -- and two opening braces in a row stand
# for one literal brace. Nothing else is substituted, and no path here
# is absolute: an absolute one baked in at build time is exactly what
# stops an archive being movable.
#
# The environment below is this bundle's, not the runner's. The runner
# knows how to apply these three directives and nothing whatever about
# what the variables mean, so a bundle that carries a new native library
# needs a new line here and not a new executable.
target {{ target_win }}
app-exec {{ app_exec }}
app-display {{ app_display }}
set RAKULIB=inst#{root}\{{ site_win }}
unset PERL6LIB
set NOTCURSES_NATIVE_DATA_DIR={root}\native
{%- if updates_enabled %}
set ARIZA_UPDATES_ENABLED=1
{%- endif %}
{%- if sqlcipher %}
# `prepend-path` is applied immediately, so add the lower-priority
# SQLCipher directory first. The resulting PATH begins with Notcurses.
prepend-path {root}\{{ sqlcipher_dir_win }}
{%- endif %}
{%- if notcurses %}
prepend-path {root}\{{ notcurses_dir_win }}
{%- endif %}
{%- if sqlcipher %}
set DBIISH_SQLCIPHER_LIB={root}\{{ sqlcipher_lib_win }}
{%- endif %}
