diff --git a/gui/build/icon.png b/gui/build/icon.png new file mode 100644 index 00000000..2e346c91 Binary files /dev/null and b/gui/build/icon.png differ diff --git a/gui/package.json b/gui/package.json index 487543f9..9cbab7ee 100644 --- a/gui/package.json +++ b/gui/package.json @@ -55,11 +55,11 @@ "appId": "app.freedata", "npmRebuild": "false", "directories": { - "buildResources": "src/img", + "buildResources": "build", "output": "dist" }, "dmg": { - "icon": "src/img/icon.png", + "icon": "build/icon.png", "contents": [ { "x": 130, @@ -74,13 +74,13 @@ ] }, "win": { - "icon": "src/img/icon.png", + "icon": "build/icon.png", "target": [ "nsis" ] }, "linux": { - "icon": "src/img/icon.png", + "icon": "build/icon.png", "target": [ "AppImage" ], diff --git a/gui/preload-log.js b/gui/preload-log.js index dd4748ce..533ebbb6 100644 --- a/gui/preload-log.js +++ b/gui/preload-log.js @@ -8,6 +8,28 @@ var configPath = path.join(configFolder, 'config.json') const config = require(configPath); +var _getAllFilesFromFolder = function(dir) { + + var filesystem = require("fs"); + var results = []; + + filesystem.readdirSync(dir).forEach(function(file) { + + file = dir+'/'+file; + var stat = filesystem.statSync(file); + + if (stat && stat.isDirectory()) { + results = results.concat(_getAllFilesFromFolder(file)) + } else results.push(file); + + }); + + return results; + +}; + +console.log(_getAllFilesFromFolder(__dirname)); + // WINDOW LISTENER window.addEventListener('DOMContentLoaded', () => { diff --git a/gui/src/splash.html b/gui/src/splash.html index 74c66b25..002fd335 100644 --- a/gui/src/splash.html +++ b/gui/src/splash.html @@ -1,10 +1,11 @@ - + + + -