fix installer, icon and lic text couldnt be installed since data loc changed under nix

This commit is contained in:
Basile Burg 2015-09-25 05:50:36 +02:00
parent 819a45fa1e
commit 17baff8aa3
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
module cesetup; module cesetup;
import std.stdio; import std.stdio;
import std.file: mkdir, exists, remove, rmdir, getSize, FileException; import std.file: mkdirRecurse, exists, remove, rmdir, getSize, FileException;
import std.stream: File, FileMode; import std.stream: File, FileMode;
import std.process: environment, executeShell; import std.process: environment, executeShell;
import std.path: dirSeparator; import std.path: dirSeparator;
@ -230,7 +230,7 @@ string extractedName(Resource resource, string path)
bool installResource(Resource resource, string path) bool installResource(Resource resource, string path)
{ {
if (!path.exists) if (!path.exists)
mkdir(path); mkdirRecurse(path);
if (!path.exists) if (!path.exists)
return false; return false;