mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
Move desktop app to subdirectory
This commit is contained in:
parent
ea3bd35ffd
commit
775f3ffe90
109 changed files with 64 additions and 53 deletions
57
README.md
57
README.md
|
|
@ -4,60 +4,11 @@ The classical music player and organizer.
|
||||||
|
|
||||||
https://musicus.org
|
https://musicus.org
|
||||||
|
|
||||||
## Hacking
|
## Repository structure
|
||||||
|
|
||||||
### Building
|
The subdirectories contain toplevel components of the Musicus system. Currently
|
||||||
|
you will only find a Musicus desktop app under `musicus`. The component READMEs
|
||||||
Musicus uses the [Meson build system](https://mesonbuild.com/). You can build
|
provide more detailed information.
|
||||||
it using the following commands:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ meson build
|
|
||||||
$ ninja -C build
|
|
||||||
```
|
|
||||||
|
|
||||||
Afterwards the resulting binary executable is under
|
|
||||||
`build/target/debug/musicus`.
|
|
||||||
|
|
||||||
### Flatpak
|
|
||||||
|
|
||||||
There is a Flatpak manifest file called `de.johrpan.musicus.json`. To build a
|
|
||||||
Flatpak you need the the latest Gnome SDK and the Freedesktop SDK with the Rust
|
|
||||||
extension. You can install those using the following commands:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
|
||||||
$ flatpak remote-add --user --if-not-exists gnome-nightly https://nightly.gnome.org/gnome-nightly.flatpakrepo
|
|
||||||
$ flatpak install --user gnome-nightly org.gnome.Sdk org.gnome.Platform
|
|
||||||
$ flatpak install --user flathub org.freedesktop.Sdk.Extension.rust-stable//19.08
|
|
||||||
```
|
|
||||||
|
|
||||||
Afterwards, the following commands will build, install and run the application:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ rm -rf flatpak
|
|
||||||
$ flatpak-builder --user --install flatpak de.johrpan.musicus.json
|
|
||||||
$ flatpak run de.johrpan.musicus
|
|
||||||
```
|
|
||||||
|
|
||||||
### Special requirements
|
|
||||||
|
|
||||||
This program uses [Diesel](https://diesel.rs) as its ORM. After installing
|
|
||||||
the Diesel command line utility, you will be able to create a new schema
|
|
||||||
migration using the following command:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ diesel migration generate [change_description]
|
|
||||||
```
|
|
||||||
|
|
||||||
To update the `src/database/schema.rs` file, you should use the following
|
|
||||||
command:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ diesel migration run --database-url test.sqlite
|
|
||||||
```
|
|
||||||
|
|
||||||
This file should never be edited manually.
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|
|
||||||
0
.gitignore → musicus/.gitignore
vendored
0
.gitignore → musicus/.gitignore
vendored
60
musicus/README.md
Normal file
60
musicus/README.md
Normal file
|
|
@ -0,0 +1,60 @@
|
||||||
|
# Musicus
|
||||||
|
|
||||||
|
This is a desktop app for Musicus.
|
||||||
|
|
||||||
|
https://musicus.org
|
||||||
|
|
||||||
|
## Hacking
|
||||||
|
|
||||||
|
### Building
|
||||||
|
|
||||||
|
Musicus uses the [Meson build system](https://mesonbuild.com/). You can build
|
||||||
|
it using the following commands:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ meson build
|
||||||
|
$ ninja -C build
|
||||||
|
```
|
||||||
|
|
||||||
|
Afterwards the resulting binary executable is under
|
||||||
|
`build/target/debug/musicus`.
|
||||||
|
|
||||||
|
### Flatpak
|
||||||
|
|
||||||
|
There is a Flatpak manifest file called `de.johrpan.musicus.json`. To build a
|
||||||
|
Flatpak you need the the latest Gnome SDK and the Freedesktop SDK with the Rust
|
||||||
|
extension. You can install those using the following commands:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||||
|
$ flatpak remote-add --user --if-not-exists gnome-nightly https://nightly.gnome.org/gnome-nightly.flatpakrepo
|
||||||
|
$ flatpak install --user gnome-nightly org.gnome.Sdk org.gnome.Platform
|
||||||
|
$ flatpak install --user flathub org.freedesktop.Sdk.Extension.rust-stable//19.08
|
||||||
|
```
|
||||||
|
|
||||||
|
Afterwards, the following commands will build, install and run the application:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ rm -rf flatpak
|
||||||
|
$ flatpak-builder --user --install flatpak de.johrpan.musicus.json
|
||||||
|
$ flatpak run de.johrpan.musicus
|
||||||
|
```
|
||||||
|
|
||||||
|
### Special requirements
|
||||||
|
|
||||||
|
This program uses [Diesel](https://diesel.rs) as its ORM. After installing
|
||||||
|
the Diesel command line utility, you will be able to create a new schema
|
||||||
|
migration using the following command:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ diesel migration generate [change_description]
|
||||||
|
```
|
||||||
|
|
||||||
|
To update the `src/database/schema.rs` file, you should use the following
|
||||||
|
command:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ diesel migration run --database-url test.sqlite
|
||||||
|
```
|
||||||
|
|
||||||
|
This file should never be edited manually.
|
||||||
|
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 3 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue