-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: trivernis <trivernis@protonmail.com>
- Loading branch information
Showing
12 changed files
with
37,959 additions
and
8,004 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# compiled output | ||
out | ||
|
||
# IDEs and editors | ||
mediarepo-api/.idea | ||
mediarepo-daemon/.idea | ||
|
||
# IDE - VSCode | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
.history/* | ||
|
||
# System Files | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# other | ||
*.zip | ||
.vscode | ||
|
||
# ui | ||
mediarepo-ui/.angular | ||
mediarepo-ui/.idea | ||
mediarepo-ui/dist | ||
mediarepo-ui/node_modules | ||
mediarepo-ui/src-tauri/target | ||
|
||
# daemon | ||
mediarepo-daemon/.idea | ||
mediarepo-daemon/target | ||
mediarepo-daemon/*.svg | ||
mediarepo-daemon/*.folded | ||
|
||
# api | ||
mediarepo-api/.idea | ||
mediarepo-api/target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
ARG DEBIAN_RELEASE=bullseye | ||
|
||
FROM bitnami/minideb:${DEBIAN_RELEASE} AS builder | ||
|
||
WORKDIR /usr/src | ||
COPY mediarepo-api ./mediarepo-api | ||
COPY mediarepo-daemon ./mediarepo-daemon | ||
COPY mediarepo-ui ./mediarepo-ui | ||
COPY Makefile . | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y \ | ||
build-essential \ | ||
libssl-dev \ | ||
libgtk-3-dev \ | ||
libappindicator3-0.1-cil-dev \ | ||
patchelf \ | ||
librsvg2-dev \ | ||
curl \ | ||
wget \ | ||
pkg-config \ | ||
libavutil-dev \ | ||
libavformat-dev \ | ||
libavcodec-dev \ | ||
libavfilter-dev \ | ||
libavdevice-dev \ | ||
libavresample-dev \ | ||
libpostproc-dev \ | ||
clang \ | ||
nodejs \ | ||
npm \ | ||
libsoup2.4-dev \ | ||
libwebkit2gtk-4.0-dev \ | ||
file | ||
|
||
RUN apt remove cmdtest -y | ||
RUN npm install -g yarn | ||
|
||
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
RUN install_packages make | ||
|
||
RUN make build_daemon | ||
RUN make build_ui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
default: build | ||
|
||
build: build_daemon build_ui | ||
|
||
create_output_dir: | ||
mkdir -p out | ||
|
||
build_daemon: create_output_dir | ||
$(MAKE) -C mediarepo-daemon build | ||
cp mediarepo-daemon/target/release/mediarepo-daemon* out/ | ||
|
||
build_ui: create_output_dir | ||
$(MAKE) -C mediarepo-ui build | ||
cp mediarepo-ui/src-tauri/target/release/mediarepo-ui* out/ | ||
cp mediarepo-ui/src-tauri/target/release/bundle out/ | ||
cp mediarepo-ui/src-tauri/icons out/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
default: build | ||
|
||
build: install_deps | ||
cargo build --frozen --release --verbose | ||
|
||
install_deps: | ||
cargo fetch |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
default: build | ||
|
||
build: install_tauri install_angular | ||
cargo tauri build --verbose | ||
|
||
install_tauri: | ||
cargo install tauri-cli --version ^1.0.0-rc.4 | ||
|
||
install_angular: | ||
npm i --save-dev @angular/cli |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.