2
currently create an application with Electron, the way I added external javascript scripts with scriptsrc to work on both Electron and a web page.
but I’m having trouble generating the executable for windows with Electron-packager
the problem is that apparently it is not loading some functions that when with the npm start command work, the only command that works is the exit button.
I am loading the scripts this way:
<!-- node_modules -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script src="../main.min.js" charset="utf-8"></script>
<script src="../node_modules/vue/dist/vue.min.js" charset="utf-8"></script>
<script src="../node_modules/vue-resource/dist/vue-resource.min.js" charset="utf-8"></script>
<script src="../node_modules/jquery/dist/jquery.min.js" charset="utf-8"></script>
<!-- Vendor -->
<script type="text/javascript" src="../assets/js/vendor/framework7.min.js"></script>
<!-- Core -->
<script type="text/javascript" src="../core/f7.core.js"></script>
<script src="../core/core.min.js" charset="utf-8"></script>
<script src="../core/CommonTypes.min.js" charset="utf-8"></script>
<!-- Controller -->
<script src="../controller/Token/token.min.js" charset="utf-8"></script>
The Command I am sending to generate the executable is:
Electron-packager src Unipipe --Platform=Win32 --Arch=all --version=1.6.2 --icon=Assets/img/icon.ico --out=Release --electronVersion-string.Companyname=Omegainc --version-string.Productname=Unipipe --version-string.Productversion=0.0.5
I wonder if I’m doing something wrong, if I can include the scripts this way, because the way it works with npm start does not work in the executable.