Fix build problems with latest tauri build

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/22/head
trivernis 3 years ago
parent 97846c86fc
commit 699f6b67bc
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -1,13 +1,7 @@
ARG DEBIAN_RELEASE=bullseye ARG DEBIAN_RELEASE=bullseye
ARG BASE_IMAGE=docker.io/bitnami/minideb:${DEBIAN_RELEASE}
FROM bitnami/minideb:${DEBIAN_RELEASE} AS builder FROM ${BASE_IMAGE} AS base
WORKDIR /usr/src
COPY mediarepo-api ./mediarepo-api
COPY mediarepo-daemon ./mediarepo-daemon
COPY mediarepo-ui ./mediarepo-ui
COPY scripts ./scripts
RUN apt-get update RUN apt-get update
RUN apt-get install -y \ RUN apt-get install -y \
build-essential \ build-essential \
@ -26,12 +20,24 @@ RUN apt-get install -y \
libwebkit2gtk-4.0-dev \ libwebkit2gtk-4.0-dev \
file \ file \
python python
RUN apt remove cmdtest -y RUN apt remove cmdtest -y
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}" ENV PATH="/root/.cargo/bin:${PATH}"
RUN rm -rf /var/lib/{apt,dpkg,cache,log}/ /var/cache
FROM base AS sources
WORKDIR /usr/src
COPY mediarepo-api ./mediarepo-api
COPY mediarepo-daemon ./mediarepo-daemon
COPY mediarepo-ui ./mediarepo-ui
COPY scripts ./scripts
RUN python3 scripts/clean.py RUN python3 scripts/clean.py
RUN python3 scripts/check.py --install RUN python3 scripts/check.py --install
RUN python3 scripts/build.py all --verbose
FROM sources AS build_daemon
WORKDIR /usr/src
RUN python3 scripts/build.py daemon --verbose
FROM sources AS build_ui
WORKDIR /usr/src
RUN python3 scripts/build.py ui --verbose

@ -99,7 +99,7 @@ After building the `out` directory contains all the built binaries and bundles.
### Test Builds ### Test Builds
For test builds the `Dockerfile` in this repository can be used. This way no build dependencies need to be installed on the system. The dockerfile doesn't provide any artifacts and can only be used for validation. For test builds the `Containerfile` in this repository can be used. This way no build dependencies need to be installed on the system. The Containerfile doesn't provide any artifacts and can only be used for validation.
## Usage and Further Information ## Usage and Further Information

@ -1422,7 +1422,7 @@ dependencies = [
[[package]] [[package]]
name = "mediarepo-daemon" name = "mediarepo-daemon"
version = "1.0.0" version = "1.0.1"
dependencies = [ dependencies = [
"console-subscriber", "console-subscriber",
"glob", "glob",

@ -4,7 +4,7 @@ default-members = ["mediarepo-core", "mediarepo-database", "mediarepo-logic", "m
[package] [package]
name = "mediarepo-daemon" name = "mediarepo-daemon"
version = "1.0.0" version = "1.0.1"
edition = "2018" edition = "2018"
license = "gpl-3" license = "gpl-3"
repository = "https://github.com/Trivernis/mediarepo-daemon" repository = "https://github.com/Trivernis/mediarepo-daemon"

@ -1,6 +1,6 @@
{ {
"name": "mediarepo-ui", "name": "mediarepo-ui",
"version": "1.0.0", "version": "1.0.1",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",
@ -45,7 +45,7 @@
"@angular-eslint/template-parser": "^13.2.0", "@angular-eslint/template-parser": "^13.2.0",
"@angular/cli": "~13.3.2", "@angular/cli": "~13.3.2",
"@angular/compiler-cli": "~13.3.2", "@angular/compiler-cli": "~13.3.2",
"@tauri-apps/cli": "^1.0.0-rc.7", "@tauri-apps/cli": "^1.0.0-rc.8",
"@types/file-saver": "^2.0.4", "@types/file-saver": "^2.0.4",
"@types/jasmine": "~4.0.2", "@types/jasmine": "~4.0.2",
"@types/node": "^17.0.23", "@types/node": "^17.0.23",

@ -32,6 +32,21 @@ dependencies = [
"memchr", "memchr",
] ]
[[package]]
name = "alloc-no-stdlib"
version = "2.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "35ef4730490ad1c4eae5c4325b2a95f521d023e5c885853ff7aca0a6a1631db3"
[[package]]
name = "alloc-stdlib"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "697ed7edc0f1711de49ce108c541623a0af97c6c60b2f6e2b65229847ac843c2"
dependencies = [
"alloc-no-stdlib",
]
[[package]] [[package]]
name = "ansi_term" name = "ansi_term"
version = "0.12.1" version = "0.12.1"
@ -49,7 +64,7 @@ checksum = "4361135be9122e0870de935d7c439aef945b9f9ddd4199a553b5270b49c82a27"
[[package]] [[package]]
name = "app" name = "app"
version = "1.0.0" version = "1.0.1"
dependencies = [ dependencies = [
"mediarepo-api", "mediarepo-api",
"serde", "serde",
@ -286,6 +301,27 @@ dependencies = [
"x25519-dalek", "x25519-dalek",
] ]
[[package]]
name = "brotli"
version = "3.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1a0b1dbcc8ae29329621f8d4f0d835787c1c38bb1401979b49d13b0b305ff68"
dependencies = [
"alloc-no-stdlib",
"alloc-stdlib",
"brotli-decompressor",
]
[[package]]
name = "brotli-decompressor"
version = "2.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "59ad2d4653bf5ca36ae797b1f4bb4dbddb60ce49ca4aed8a2ce4829f60425b80"
dependencies = [
"alloc-no-stdlib",
"alloc-stdlib",
]
[[package]] [[package]]
name = "bstr" name = "bstr"
version = "0.2.17" version = "0.2.17"
@ -3245,9 +3281,9 @@ dependencies = [
[[package]] [[package]]
name = "tauri-build" name = "tauri-build"
version = "1.0.0-rc.4" version = "1.0.0-rc.5"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d7e31905edc1b40f369beccbbfb30b2e44c2f2bb1ffc06a3778d844af4a81da8" checksum = "ede6462a4692e2fd5030497ad576264dc90eea5fa337182492e77291d45fc78b"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"cargo_toml", "cargo_toml",
@ -3329,10 +3365,11 @@ dependencies = [
[[package]] [[package]]
name = "tauri-utils" name = "tauri-utils"
version = "1.0.0-rc.3" version = "1.0.0-rc.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "21f11483d205c77d1ec398e80566485101696335983e69832cc6c41ab1e07266" checksum = "a67fcf8fdd1340de4e75c01966fceab03057a8b0e97864eb39a21e420deed503"
dependencies = [ dependencies = [
"brotli",
"ctor", "ctor",
"glob", "glob",
"heck 0.4.0", "heck 0.4.0",
@ -3349,7 +3386,6 @@ dependencies = [
"thiserror", "thiserror",
"url", "url",
"walkdir", "walkdir",
"zstd",
] ]
[[package]] [[package]]

@ -1,6 +1,6 @@
[package] [package]
name = "app" name = "app"
version = "1.0.0" version = "1.0.1"
description = "The UI for the mediarepo media management tool" description = "The UI for the mediarepo media management tool"
authors = ["you"] authors = ["you"]
license = "" license = ""
@ -10,7 +10,7 @@ edition = "2018"
build = "src/build.rs" build = "src/build.rs"
[build-dependencies] [build-dependencies]
tauri-build = { version = "1.0.0-rc.4", features = [] } tauri-build = { version = "1.0.0-rc.5", features = [] }
[dependencies] [dependencies]
serde_json = "1.0.79" serde_json = "1.0.79"

@ -1,7 +1,7 @@
{ {
"package": { "package": {
"productName": "mediarepo-ui", "productName": "mediarepo-ui",
"version": "1.0.0" "version": "1.0.1"
}, },
"build": { "build": {
"distDir": "../dist/mediarepo-ui", "distDir": "../dist/mediarepo-ui",

@ -1681,7 +1681,7 @@
resolved "https://registry.yarnpkg.com/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-1.0.0-rc.8.tgz#bf58e24c42fccf098f78dc51e43f5cd7b7ff6842" resolved "https://registry.yarnpkg.com/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-1.0.0-rc.8.tgz#bf58e24c42fccf098f78dc51e43f5cd7b7ff6842"
integrity sha512-PiDr/iAKoL9nQSiWHkUSjRVHbvCJaa7Xj3P9UnGkjJQ9LGTr7AYZdLk4zISegF+/fZnOmaqUdZW9yWPPyJAzPw== integrity sha512-PiDr/iAKoL9nQSiWHkUSjRVHbvCJaa7Xj3P9UnGkjJQ9LGTr7AYZdLk4zISegF+/fZnOmaqUdZW9yWPPyJAzPw==
"@tauri-apps/cli@^1.0.0-rc.7": "@tauri-apps/cli@^1.0.0-rc.8":
version "1.0.0-rc.8" version "1.0.0-rc.8"
resolved "https://registry.yarnpkg.com/@tauri-apps/cli/-/cli-1.0.0-rc.8.tgz#ee8c9a587739853bd5f8a46a456a43ae594610f6" resolved "https://registry.yarnpkg.com/@tauri-apps/cli/-/cli-1.0.0-rc.8.tgz#ee8c9a587739853bd5f8a46a456a43ae594610f6"
integrity sha512-FWpNwbgGMPgDb41oO7wdBhBsBE6FMG9yHKbtbrkJ/8d/hWcT6e3UUTfFL9cR2VGdp1pdWlul5+BKH0PTf8rB9w== integrity sha512-FWpNwbgGMPgDb41oO7wdBhBsBE6FMG9yHKbtbrkJ/8d/hWcT6e3UUTfFL9cR2VGdp1pdWlul5+BKH0PTf8rB9w==

@ -4,7 +4,7 @@ import argparse
import os import os
tauri_cli_version = '1.0.0-rc.5' tauri_cli_version = '1.0.0-rc.8'
windows = os.name == 'nt' windows = os.name == 'nt'

Loading…
Cancel
Save