mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
added build folder for getting splash screen working - buildResources will be ignored on import
This commit is contained in:
parent
db0f472f43
commit
e55623e0ae
4 changed files with 29 additions and 6 deletions
BIN
gui/build/icon.png
Normal file
BIN
gui/build/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 590 KiB |
|
@ -55,11 +55,11 @@
|
||||||
"appId": "app.freedata",
|
"appId": "app.freedata",
|
||||||
"npmRebuild": "false",
|
"npmRebuild": "false",
|
||||||
"directories": {
|
"directories": {
|
||||||
"buildResources": "src/img",
|
"buildResources": "build",
|
||||||
"output": "dist"
|
"output": "dist"
|
||||||
},
|
},
|
||||||
"dmg": {
|
"dmg": {
|
||||||
"icon": "src/img/icon.png",
|
"icon": "build/icon.png",
|
||||||
"contents": [
|
"contents": [
|
||||||
{
|
{
|
||||||
"x": 130,
|
"x": 130,
|
||||||
|
@ -74,13 +74,13 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"win": {
|
"win": {
|
||||||
"icon": "src/img/icon.png",
|
"icon": "build/icon.png",
|
||||||
"target": [
|
"target": [
|
||||||
"nsis"
|
"nsis"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"linux": {
|
"linux": {
|
||||||
"icon": "src/img/icon.png",
|
"icon": "build/icon.png",
|
||||||
"target": [
|
"target": [
|
||||||
"AppImage"
|
"AppImage"
|
||||||
],
|
],
|
||||||
|
|
|
@ -8,6 +8,28 @@ var configPath = path.join(configFolder, 'config.json')
|
||||||
const config = require(configPath);
|
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 LISTENER
|
||||||
window.addEventListener('DOMContentLoaded', () => {
|
window.addEventListener('DOMContentLoaded', () => {
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<meta http-equiv="Content-Security-Policy" content="script-src 'self';">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<img src="img/icon_cube_border.png" width="100%" height="100%">
|
<img src="img/icon_cube_border.png" width="100%" height="100%">
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue