Chicken and Raspberry Pie

This is based on my recipe for Chicken and Carrot pie.

Fry chicken, boil carrots lightly in chicken stock and butter, and add a little thickening flour made up into a paste. Put into a pie dish and cover with pastry, or fold into a giant turnover. Cook.

Raspberries are completely a carrot in this context.

Packaging electron for other users

Notes from a small Laptop…

Finding instructions for packaging election apps turned out to lead me, moment by moment, inexorably through the madness that is youtube. So, here is my typed version of Things That I Did, picked up from youtube and .

First of all, I moved all electron-based folders into an electron workspace. Into that workspace I hit npm install electron-winstaller.


cd whatever-your-app-folder-is


npm install electron-squirrel-startup

and wait a bit. Now is a good time for a cup of tea. Frankly any time is a good time for a cup of tea, but during downloads and installation you should be stretching your legs anyhow.

Now we alter the main.js file to handle events from squirrel.

After the const app module to control application life, we add some code snippets from ourcodeworld.

Then we find a link to electron-packager, and then we cry.


npm install electron-packager -g // The -g switch gives us a global install

We roll back npm 5.3.0 to 5.2.0 because otherwise the build breaks.

npm i -g npm@5.2 // On my ARCH installation I tried out 5.4 instead. Results as yet unknown.

We add a script to package.json and we run it, and it works, and we launch the app, and it dies.

Well, crap.

OK, so there are unexpected tokens, which means it’s borking on the not-JavaScript bits, which means it needs to be part of Webpack. So we use webpack-electron-packager instead, and there are tutorials for that so here, gentle reader, I leave you.