From 96a1ac22b021f769689db046db4340390c51457d Mon Sep 17 00:00:00 2001 From: Roberto Tonino Date: Sat, 17 Jul 2021 15:11:17 +0200 Subject: [PATCH] workflow(server): added predist script, now running just `yarn dist` will do everything needed --- README.md | 5 +++-- package.json | 7 +++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3ea684e..18dddda 100644 --- a/README.md +++ b/README.md @@ -9,14 +9,15 @@ You need to use nodejs 16.x, using `yarn` is recommended. If you're using git to get this repo you should use `git submodule update --init --recursive` as well. If you're just downloading the archive.zip, make sure you download and extract deemix-webui into the webui folder. -Install the dependencies using `yarn install`. +Install the dependencies using `yarn install` or just `yarn`. Then you should be able to run the app with `yarn start`. You can change the default port by setting the environment variable `PORT` to any other number before starting the app. ## Building the app Make sure you've installed the dependencies for all packages (the root folder, `server` and `webui`). -Then from the root folder run `yarn prebuild` to build the server and the webui and then `yarn dist` to make a distributable package for your current OS. +Then from the root folder run `yarn dist` to make a distributable package for your current OS or `yarn server-dist` +to make an executable for only the server. ## Feature requests Before asking for a feature make sure it isn't an already open issue on the repo diff --git a/package.json b/package.json index a4c85ae..bf6e93a 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,9 @@ "scripts": { "start": "electron . --dev", "prebuild": "yarn server-build && yarn --cwd ./webui build", + "predist": "yarn prebuild", "dist": "electron-builder", "dist:dir": "electron-builder --dir", - "server-start": "yarn --cwd server start", "server-start-build": "yarn --cwd server start-build", "server-lint": "yarn --cwd server lint", @@ -58,7 +58,10 @@ ] }, "linux": { - "target": ["appimage", "deb"], + "target": [ + "appimage", + "deb" + ], "artifactName": "deemix-gui.${ext}", "category": "AudioVideo,Audio", "icon": "build/icon.icns"