|
@@ -1,14 +1,14 @@
|
1
|
1
|
const mv = require('mv');
|
2
|
2
|
const fs = require('fs');
|
3
|
3
|
const fse = require('fs-extra');
|
4
|
|
-const http = require('http');
|
|
4
|
+const http = require('https');
|
5
|
5
|
const path = require('path');
|
6
|
6
|
const walk = require('walk');
|
7
|
7
|
const unzip = require('unzip');
|
8
|
8
|
const child_process = require('child_process');
|
9
|
9
|
const ncp = require('ncp');
|
10
|
10
|
|
11
|
|
-const gameIconsUrl = "http://game-icons.net/archives/png/zip/ffffff/000000/game-icons.net.png.zip";
|
|
11
|
+const gameIconsUrl = "https://game-icons.net/archives/png/zip/ffffff/000000/game-icons.net.png.zip";
|
12
|
12
|
const tempFilePath = "./temp.zip";
|
13
|
13
|
const tempDir = "./temp";
|
14
|
14
|
const imgDir = "./generator/img";
|
|
@@ -176,4 +176,4 @@ fse.emptyDir(tempDir)
|
176
|
176
|
.then(() => generateCSS(imgDir, cssPath))
|
177
|
177
|
.then(() => generateJS(imgDir, jsPath))
|
178
|
178
|
.then(() => console.log("Done."))
|
179
|
|
-.catch(err => cosole.log("Error", err));
|
|
179
|
+.catch(err => console.log("Error", err));
|