Difference between revisions of "Electron Build"

From Lianjapedia
Jump to: navigation, search
Line 117: Line 117:
 
<pre>C:\lianja\apps\lianja_mobiledemo\electron\dist\lianja_mobiledemo-win32-ia32</pre>
 
<pre>C:\lianja\apps\lianja_mobiledemo\electron\dist\lianja_mobiledemo-win32-ia32</pre>
  
[[Category:Electron]]
+
[[Category:Electron Apps]]
 
[[Category:Workspaces]]
 
[[Category:Workspaces]]

Revision as of 06:28, 3 April 2017

Init

Electron Workspace



Click the Init button.

This copies the template Electron files to the electron sub-directory of your App.


Electron Workspace



When the copy is complete, the App is now ready to build with Electron message will be displayed.


Files

Electron Workspace



From the Files pulldown, select the template files you want to edit in a popup editor.


Electron Workspace



Edit the package.json file to define the configuration of your Electron App.

The template file shows the format required.

Note: the version refers to your App version.


Electron Workspace



Edit the main.js file as required.

For example, uncomment the mainWindow.webContents.openDevTools(); line to enable debug mode.


Edit

Electron Workspace



Edit the Electron App Settings as required.

Specify the Lianja Cloud Server URL and any optional settings.

Then click Save to save your changes or Cancel to exit without saving.


Build

Electron Workspace



Check that the Platform, Architecture and Config pulldowns are displaying the correct values for your intended build.

Then click the Build button to build your Electron App.


Run

Electron Workspace



Once the Electron Build Log output window displays Build complete, click the Run button to run your App.


Electron Workspace



Your App will be displayed in a popup window.

Log in as usual.


Electron Workspace



And test your App.


Deploy

The files required to deploy your Electron App are created in:

<drive>:\lianja\apps\<appname>\electron\dist\<app>-<platformname>-<architecture>

For example, in the screenshots above the files are created in:

C:\lianja\apps\lianja_mobiledemo\electron\dist\lianja_mobiledemo-win32-ia32