Fix the location of assets on mobile
with the routes branch updates this has become relative to the
location of the static folder
TODO: take in the relative location of the assets instead of defaulting
to ./static
commitff0153e4b866ed4e9d23adb1c69a46799f137320
authorLuigy Leon <luichi.19@gmail.com>
dateThu 4 Oct 2018, 17:32 (8 years ago)
parent3dc466d
lib/executable-config/default.nix+3−1
@@ -7,7 +7,9 @@
77}:
88let injectConfig = config: assets: nixpkgs.runCommand "inject-config" {} ''
99 set -x
10− cp -a "${assets}" $out
10+ mkdir -p $out
11+ mkdir -p $out/static
12+ cp -a "${assets}"/* $out/static
1113 chmod +w "$out"
1214 if ! mkdir $out/config; then
1315 2>&1 echo config directory already exists or could not be created