title: How to make a simple auto-updater for my electron app
body: <p>After searching on the web on how to make an installer and updater for my electron app I find that installer and update section is not soo easy, and I need extra help because this problem introduces more challenges.</p>
  
  <p>I have a simple folder structure like this:</p>
  
  <pre><code> - package.json
   - index.html
   - main.css
   - main.js
  </code></pre>
  
  <h3>package.json</h3>
  
  <pre><code>{
    "name": "myappname",
    "version": "1.0.0",
    "description": "my app description",
    "main": "main.js",
    "scripts": {
      "start": "electron main.js",
      "package-win": "electron-packager . --overwrite --asar=true --platform=win32 --arch=ia32 --icon=recurces/icons/win/001-pie-chart.ico --prune=false --out=release-builds --version-string.CompanyName=myCompany.inc --version-string.FileDescription=test --version-string.ProductName=test_5"
    },
  
    "author": "myName",
    "license": "BSD-3-Clause",
    "devDependencies": {
      "electron": "^1.6.2",
      "electron-packager": "^8.5.2"
    }
  }
  </code></pre>
  
  <p>What I have done so far:</p>
  
  <ul>
  <li>I have installed the electron modules.</li>
  <li>I package my app with the electron packager.</li>
  <li>and now I want to make the installer.</li>
  </ul>
  
  <p>I have tried the winstaller but the documentation is not so easy to follow.</p>
  
  <p>and then i try to give a chance to installForge.</p>
  
  <p>Inside installForge is an option to make the updates, that's good <strong>but</strong> the problem I am facing now is that I dont host my app on GitHub or any other hosting provider I want my code to be in my computer and with express.js I have to make a <strong>FILE SERVER</strong></p>
  
  <p>The server dont work as expected</p>
  
  <p>The code</p>
  
  <pre><code>var express = require('express');
  var path = require('path');
  var app = express();
  
  // Define the port to run on
  app.set('port', 3000);
  
  app.use(express.static(path.join(__dirname, 'public')));
  
  // Listen for requests
  var server = app.listen(app.get('port'), function() {
    var port = server.address().port;
    console.log('Magic happens on port ' + port);
  });
  </code></pre>
  
  <p>inside this project with express.js, I have a folder name dist/win</p>
  
  <p>inside dist/win, I have 1 more package that has the 1.0.2 version how to get the files from that local server and update my electron app source.</p>
  
  <p>How I can make a simple installer with a simple auto-update mechanism?</p>