是否可以创建Windows安装程序以结合使用Electron Framework和AutoHotkey Tool构建的应用程序?

时间:2019-01-30 04:52:36

标签: build electron autohotkey

我已经尝试了多种方法来将 AutoHotKey 工具作为一个exe文件来构建电子应用,但仍然无法正常工作,如果您发现任何方法,请帮助我。这是 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}`)
});

0 个答案:

没有答案
相关问题