Skip to content
This repository was archived by the owner on Apr 27, 2024. It is now read-only.

Build Instructions

gitnew2018 edited this page Sep 24, 2019 · 1 revision

Option 1. Plain Files (Recommended)

Download NW.js https://nwjs.io/ (I recommend SDK version with Dev tools), unpack it.

To verify it's working open nw.exe, You should see something like this: screenshot

Download all source files from this github repository, unpack it. Move all of the files into the folder where nw.exe is.

clipboard04

Run nw.exe and you should see this: clipboard05

When you sign in, everything except chat and opening broadcasts should work. You can also paste there your old userdata folder from previous instalations but only if you updated files from repository, might not work if updated nwjs.

To update MY-OpenPeriscope just put the new files into the folder and overwrite if necessary.

Opening broadcasts

Nwjs is shipped without neccessary codecs, download nwjs-ffmpeg-prebuilt and replace the one in your folder.

The Chat

To make chat work download and install NPM (bundled with node.js): https://nodejs.org/download/release/latest/

Open folder with all the files and type cmd in folder location and press enter

screenshot

type:

npm install

result:

result

package-lock.json and node_modules folder should appear.

Option 2 Advanced

Merge all files into executable.

  1. Compress source files from github including everything npm added. rename it from app.zip to app.nw.

You can exclude some files like readme.md or license but it will work even if you don't.

  1. Move app.nw to unpacked nwjs folder.
  2. Run this there:

copy /b nw.exe+app.nw app.exe

or on linux

cat nw app.nw > app && chmod +x app

  1. Delete nw.exe(nw) and app.nw, rename resulting app.exe to OpenPeriscope.exe if you want.

You can also paste there your old userdata folder from previous installations.

Link to more general instructions. http://docs.nwjs.io/en/latest/For%20Users/Package%20and%20Distribute/