mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-29 19:03:44 +00:00
Add devcontainer setup (#4143)
Co-authored-by: Angelos Bouklis <me@arjix.dev> Co-authored-by: JellyBrick <shlee1503@naver.com>
This commit is contained in:
committed by
GitHub
parent
f3d988746a
commit
782204cc63
14
README.md
14
README.md
@ -144,6 +144,10 @@ pnpm install --frozen-lockfile
|
||||
pnpm dev
|
||||
```
|
||||
|
||||
Instead of installing pnpm on your system, you can also use [devcontainers](https://containers.dev/). You can use devcontainers either as a development environment in VS Code, or as a way to easily build the project without installing dependencies on your host system.
|
||||
|
||||
Note that this has it's own limitations (for example, GUI doesn't work on, at least some, Linux hosts).
|
||||
|
||||
## Build your own plugins
|
||||
|
||||
Using plugins, you can:
|
||||
@ -279,6 +283,16 @@ export default createPlugin({
|
||||
Builds the app for macOS, Linux, and Windows,
|
||||
using [electron-builder](https://github.com/electron-userland/electron-builder).
|
||||
|
||||
### Building in devcontainer
|
||||
|
||||
1. Clone the repo;
|
||||
2. Open the folder in VS Code;
|
||||
3. Reopen in container when prompted;
|
||||
4. Run `pnpm build` as above (choosing the desired target);
|
||||
5. Collect the built files from the `dist` folder.
|
||||
|
||||
Since devcontainer uses a mount for the workspace, the built files will be available on the host system as well.
|
||||
|
||||
## Production Preview
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user