workflow(server): added predist script, now running just yarn dist
will do everything needed
This commit is contained in:
parent
94755a47a9
commit
96a1ac22b0
@ -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.
|
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`.
|
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.
|
You can change the default port by setting the environment variable `PORT` to any other number before starting the app.
|
||||||
|
|
||||||
## Building the app
|
## Building the app
|
||||||
Make sure you've installed the dependencies for all packages (the root folder, `server` and `webui`).
|
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
|
## Feature requests
|
||||||
Before asking for a feature make sure it isn't an already open issue on the repo
|
Before asking for a feature make sure it isn't an already open issue on the repo
|
||||||
|
@ -8,9 +8,9 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "electron . --dev",
|
"start": "electron . --dev",
|
||||||
"prebuild": "yarn server-build && yarn --cwd ./webui build",
|
"prebuild": "yarn server-build && yarn --cwd ./webui build",
|
||||||
|
"predist": "yarn prebuild",
|
||||||
"dist": "electron-builder",
|
"dist": "electron-builder",
|
||||||
"dist:dir": "electron-builder --dir",
|
"dist:dir": "electron-builder --dir",
|
||||||
|
|
||||||
"server-start": "yarn --cwd server start",
|
"server-start": "yarn --cwd server start",
|
||||||
"server-start-build": "yarn --cwd server start-build",
|
"server-start-build": "yarn --cwd server start-build",
|
||||||
"server-lint": "yarn --cwd server lint",
|
"server-lint": "yarn --cwd server lint",
|
||||||
@ -58,7 +58,10 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"linux": {
|
"linux": {
|
||||||
"target": ["appimage", "deb"],
|
"target": [
|
||||||
|
"appimage",
|
||||||
|
"deb"
|
||||||
|
],
|
||||||
"artifactName": "deemix-gui.${ext}",
|
"artifactName": "deemix-gui.${ext}",
|
||||||
"category": "AudioVideo,Audio",
|
"category": "AudioVideo,Audio",
|
||||||
"icon": "build/icon.icns"
|
"icon": "build/icon.icns"
|
||||||
|
Loading…
Reference in New Issue
Block a user