Можно ли создать установщик Windows для объединения приложения, созданного с помощью Electron Framework и AutoHotkey Tool? - PullRequest
0 голосов
/ 30 января 2019

Я пробовал много способов собрать электронное приложение с AutoHotKey инструментом в виде одного исполняемого файла, но все же это не сработало, если вы найдете какой-либо способ, пожалуйста, помогите мне.Вот код build.js :

    // C:\Users\sdkca\Desktop\electron-workspace\build.js
    var electronInstaller = require('electron-winstaller');

    // In this case, we can use relative paths
    var settings = {
        // Specify the folder where the built app is located
        appDirectory: './KIT Online Examination System-win32-x64',
        // Specify the existing folder where 
        outputDirectory: './KIT-online-exam-installers',
        // The name of the Author of the app (the name of your company)
        authors: 'Kirirom Institute of Technology.',
        // The name of the executable of your built
        exe: './KIT Online Examination System.exe',
        exe: './AutoHotKey.exe'
    };

    resultPromise = electronInstaller.createWindowsInstaller(settings);

    resultPromise.then(() => {
        console.log

("The installers of your application were succesfully created !");
}, (e) => {
    console.log(`Well, sometimes you are not so lucky: ${e.message}`)
});
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...