diff --git a/cli-boot-wrapper.js b/cli-boot-wrapper.js index b583b5c..6232141 100755 --- a/cli-boot-wrapper.js +++ b/cli-boot-wrapper.js @@ -25,7 +25,7 @@ if (program.error) { const colors = require('colors'); console.clear(); console.log(colors.bold(` - v4.2.1 ____ _ + v4.3.0 ____ _ _ __ ___ / ___|| |_ _ __ ___ __ _ _ __ ___ | '_ \` _ \\\\___ \\| __| '__/ _ \\/ _\` | '_ \` _ \\ | | | | | |___) | |_| | | __/ (_| | | | | | | diff --git a/docs/compile-express-2.md b/docs/compile-express-2.md index c0fa5bd..8886bb6 100644 --- a/docs/compile-express-2.md +++ b/docs/compile-express-2.md @@ -4,4 +4,37 @@ Alternative packaging steps ```shell npm install -g electron-builder -``` \ No newline at end of file + +# Install modclean (optional) +npm install -g modclean +``` + +**Modify package.json (optional)** + +Remove all dependencies related to the command line (commander, inquirer, colors). These packages will never be used by mStream Express and can be safely removed to reduce the output size + +**Cleanup node_modules (optional)** + +Modclean can be used to clean out the node_modules folder of useless files. This deletes over 1000 useless files saving space and shortening install time. To install modlcean, run: + +``` +npm install -g modclean +``` + +Then run modclean with: + +``` +modclean +``` + +**Compile** + +```shell +# OSX +electron-builder +``` + +**Code Signing** + +* OSX: Follow instructions here https://www.electron.build/code-signing. No modifications to the project needed +* Windows: \ No newline at end of file diff --git a/frp/mstream-ddns-osx b/frp/mstream-ddns-osx index 9a7b760..295b252 100755 Binary files a/frp/mstream-ddns-osx and b/frp/mstream-ddns-osx differ diff --git a/mstream-electron.js b/mstream-electron.js index ffdfd8d..11c49a8 100644 --- a/mstream-electron.js +++ b/mstream-electron.js @@ -7,7 +7,6 @@ const AutoLaunch = require('auto-launch'); const {autoUpdater} = require("electron-updater"); const mstreamAutoLaunch = new AutoLaunch({ name: 'mStream' }); -const currentVer = '0.16.0'; let appIcon; if (!fs.existsSync(fe.join(app.getPath('userData'), 'image-cache'))) { @@ -129,7 +128,7 @@ function bootServer(program) { const protocol = program.ssl && program.ssl.cert && program.ssl.key ? 'https' : 'http'; var trayTemplate = [ { - label: 'mStream Express v' + currentVer, click: function () { + label: 'mStream Server v' + app.getVersion(), click: function () { shell.openExternal('http://mstream.io/mstream-express'); } }, diff --git a/package.json b/package.json index a7d0669..1789201 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mstream", - "version": "4.2.1", + "version": "4.3.0", "description": "music streaming server", "main": "cli-boot-wrapper.js", "bin": {