Procházet zdrojové kódy

Make update-icons script work again

Tomas Carnecky před 6 roky
rodič
revize
7d86ec3055
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3
    3
      resources/tools/update-icons.js

+ 3
- 3
resources/tools/update-icons.js Zobrazit soubor

1
 const mv = require('mv');
1
 const mv = require('mv');
2
 const fs = require('fs');
2
 const fs = require('fs');
3
 const fse = require('fs-extra');
3
 const fse = require('fs-extra');
4
-const http = require('http');
4
+const http = require('https');
5
 const path = require('path');
5
 const path = require('path');
6
 const walk = require('walk');
6
 const walk = require('walk');
7
 const unzip = require('unzip');
7
 const unzip = require('unzip');
8
 const child_process = require('child_process');
8
 const child_process = require('child_process');
9
 const ncp = require('ncp');
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
 const tempFilePath = "./temp.zip";
12
 const tempFilePath = "./temp.zip";
13
 const tempDir = "./temp";
13
 const tempDir = "./temp";
14
 const imgDir = "./generator/img";
14
 const imgDir = "./generator/img";
176
 .then(() => generateCSS(imgDir, cssPath))
176
 .then(() => generateCSS(imgDir, cssPath))
177
 .then(() => generateJS(imgDir, jsPath))
177
 .then(() => generateJS(imgDir, jsPath))
178
 .then(() => console.log("Done."))
178
 .then(() => console.log("Done."))
179
-.catch(err => cosole.log("Error", err));
179
+.catch(err => console.log("Error", err));

Loading…
Zrušit
Uložit