Showing
4 changed files
with
33 additions
and
2 deletions
| ... | @@ -22,7 +22,7 @@ function createWindow () { | ... | @@ -22,7 +22,7 @@ function createWindow () { |
| 22 | })) | 22 | })) |
| 23 | 23 | ||
| 24 | // Open the DevTools. | 24 | // Open the DevTools. |
| 25 | - // win.webContents.openDevTools() | 25 | + win.webContents.openDevTools() |
| 26 | 26 | ||
| 27 | // Emitted when the window is closed. | 27 | // Emitted when the window is closed. |
| 28 | win.on('closed', () => { | 28 | win.on('closed', () => { | ... | ... |
desktop-app/createInstaller.js
0 → 100644
| 1 | +const createWindowsInstaller = require('electron-winstaller').createWindowsInstaller | ||
| 2 | +const path = require('path') | ||
| 3 | + | ||
| 4 | +getInstallerConfig() | ||
| 5 | + .then(createWindowsInstaller) | ||
| 6 | + .catch((error) => { | ||
| 7 | + console.error(error.message || error) | ||
| 8 | + process.exit(1) | ||
| 9 | + }) | ||
| 10 | + | ||
| 11 | +function getInstallerConfig () { | ||
| 12 | + console.log('creating windows installer') | ||
| 13 | + const rootPath = path.join('./') | ||
| 14 | + const outPath = path.join(rootPath, 'release-builds') | ||
| 15 | + | ||
| 16 | + return Promise.resolve({ | ||
| 17 | + appDirectory: path.join(outPath, 'KLAS파일다운로더'), | ||
| 18 | + authors: 'Sung Junyoung', | ||
| 19 | + noMsi: true, | ||
| 20 | + outputDirectory: path.join(outPath, 'windows-installer'), | ||
| 21 | + exe: 'KLAS파일다운로더.exe', | ||
| 22 | + setupExe: 'KLAS파일다운로더-Installer.exe', | ||
| 23 | + setupIcon: path.join(rootPath, 'assets', 'icons', 'win', 'logo_256.ico') | ||
| 24 | + }) | ||
| 25 | +} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -60,9 +60,11 @@ $(document).ready(function () { | ... | @@ -60,9 +60,11 @@ $(document).ready(function () { |
| 60 | let id = $('#id').val(); | 60 | let id = $('#id').val(); |
| 61 | let pw = $('#pw').val(); | 61 | let pw = $('#pw').val(); |
| 62 | 62 | ||
| 63 | + userLectures = []; | ||
| 64 | + lectureFiles = []; | ||
| 65 | + selectedLecture = ''; | ||
| 63 | disableAll('로그인 중입니다...'); | 66 | disableAll('로그인 중입니다...'); |
| 64 | klasFD.getLectureList(id, pw, function (res) { | 67 | klasFD.getLectureList(id, pw, function (res) { |
| 65 | - | ||
| 66 | console.log(res); | 68 | console.log(res); |
| 67 | if (res.code) { | 69 | if (res.code) { |
| 68 | ableAll(); | 70 | ableAll(); |
| ... | @@ -246,6 +248,7 @@ $(document).ready(function () { | ... | @@ -246,6 +248,7 @@ $(document).ready(function () { |
| 246 | $('#logout').hide(); | 248 | $('#logout').hide(); |
| 247 | $('#id').val(''); | 249 | $('#id').val(''); |
| 248 | $('#pw').val(''); | 250 | $('#pw').val(''); |
| 251 | + location.reload(); | ||
| 249 | } | 252 | } |
| 250 | 253 | ||
| 251 | function disableAll(text) { | 254 | function disableAll(text) { | ... | ... |
-
Please register or login to post a comment