on build time, run this to write all config files to app/config/linux/
# enable the original install function in native-autoinstall.js
export VDHCOAPP_INSTALL_ON_BUILDTIME=1
echo generating config files for linux
export HOME=$PWD/app/config/linux
grep '^only_if_dir_exists = "~/\.' config.toml | cut -d'"' -f2 |
while read d; do mkdir -p "$HOME/${d:2}"; done
./app/src/main.js install
on runtime, run vdhcoapp install
to create symlinks from $HOME to the installed app/config/linux/
im using this in vdhcoapp.nix
where all paths are constant so the generated config files are always identical
and when running vdhcoapp install again on runtime
it is cheaper to compare symlinks
instead of generating the config files and comparing file contents
where all paths are constant
this will be true only for some users
so probably this will not be merged into the main branch
on build time, run this to write all config files to
app/config/linux/
on runtime, run
vdhcoapp install
to create symlinks from$HOME
to the installedapp/config/linux/
example
im using this in vdhcoapp.nix where all paths are constant so the generated config files are always identical and when running
vdhcoapp install
again on runtime it is cheaper to compare symlinks instead of generating the config files and comparing file contentsthis will be true only for some users so probably this will not be merged into the main branch
based on #217