瀏覽代碼

Merge pull request #120 from wereHamster/update-icons-script-fix

Make update-icons script work again
Robert Autenrieth 6 年之前
父節點
當前提交
3f19f941c7
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      resources/tools/update-icons.js

+ 3
- 3
resources/tools/update-icons.js 查看文件

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…
取消
儲存