Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3e5d884597 | |||
| 72cd558e2a | |||
| 0e2704fad2 |
@@ -1,8 +1,8 @@
|
|||||||
name: Build dioxus container
|
name: Build Mumble Web 2
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
BuildContainer:
|
linux_build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -41,3 +41,33 @@ jobs:
|
|||||||
name: mumble-web2-proxy
|
name: mumble-web2-proxy
|
||||||
path: target/release/mumble-web2-proxy
|
path: target/release/mumble-web2-proxy
|
||||||
retention-days: 5
|
retention-days: 5
|
||||||
|
|
||||||
|
windows_build:
|
||||||
|
runs-on: windows
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
|
- name: Install rust
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
|
||||||
|
- name: Install cargo binstall
|
||||||
|
shell: pwsh
|
||||||
|
run: Set-ExecutionPolicy Unrestricted -Scope Process; iex (iwr "https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.ps1").Content
|
||||||
|
|
||||||
|
- name: Install dioxus-cli
|
||||||
|
run: cargo binstall dioxus-cli --version 0.7.1
|
||||||
|
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
|
- name: Build dioxus project
|
||||||
|
run: dx bundle -p mumble-web2-gui --release --windows
|
||||||
|
|
||||||
|
- name: Upload mumble-web2-gui Windows Artifact
|
||||||
|
uses: https://gitea.com/actions/gitea-upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: mumble-web2-gui-windows
|
||||||
|
path: gui/dist
|
||||||
|
retention-days: 5
|
||||||
|
|||||||
@@ -2,13 +2,12 @@
|
|||||||
|
|
||||||
## Running Desktop
|
## Running Desktop
|
||||||
|
|
||||||
1. `cargo install dioxus-cli --version 0.6.3`
|
1. `cargo install dioxus-cli --version 0.7.1`
|
||||||
2. `dx run -p mumble-web2-gui --platform desktop --release`
|
2. `dx run -p mumble-web2-gui --platform desktop --release`
|
||||||
|
|
||||||
|
|
||||||
## Running Web (development)
|
## Running Web (development)
|
||||||
|
|
||||||
1. `cargo install dioxus-cli --version 0.6.3`
|
1. `cargo install dioxus-cli --version 0.7.1`
|
||||||
3. `dx serve -p mumble-web2-gui --platform web`
|
3. `dx serve -p mumble-web2-gui --platform web`
|
||||||
2. `cd docker && docker compose up`
|
2. `cd docker && docker compose up`
|
||||||
4. connect to `https://localhost:64444`
|
4. connect to `https://localhost:64444`
|
||||||
@@ -16,7 +15,7 @@
|
|||||||
|
|
||||||
## Running Web (with `proxy` only)
|
## Running Web (with `proxy` only)
|
||||||
|
|
||||||
1. `cargo install dioxus-cli --version 0.6.3`
|
1. `cargo install dioxus-cli --version 0.7.1`
|
||||||
2. `dx build -p mumble-web2-gui --platform web --release`
|
2. `dx build -p mumble-web2-gui --platform web --release`
|
||||||
3. `cp config.toml.example config.toml`
|
3. `cp config.toml.example config.toml`
|
||||||
4. `cargo run -p mumble-web2-proxy` in the background
|
4. `cargo run -p mumble-web2-proxy` in the background
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# Install the Dioxus CLI
|
|
||||||
#cargo install dioxus-cli --version 0.7.1
|
|
||||||
|
|
||||||
# Build the Dioxus web app (assumes workspace subproject at ./gui)
|
|
||||||
cd gui
|
|
||||||
dx build --platform web --release
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
# Build the backend (proxy package)
|
|
||||||
#cargo build --release -p proxy
|
|
||||||
#
|
|
||||||
## Prepare artifact directories
|
|
||||||
#mkdir -p artifacts
|
|
||||||
#
|
|
||||||
## Copy Dioxus webroot (usually at gui/dist)
|
|
||||||
#cp -r gui/dist artifacts/webroot
|
|
||||||
#
|
|
||||||
## Copy backend binary (proxy)
|
|
||||||
## Finds the built binary under target/release/
|
|
||||||
#PROXY_PATH=$(cargo metadata --format-version=1 --no-deps |
|
|
||||||
# jq -r '.packages[] | select(.name=="proxy") | .targets[] | select(.kind[] == "bin") | .name')
|
|
||||||
#cp "target/release/$PROXY_PATH" "artifacts/proxy"
|
|
||||||
#
|
|
||||||
#echo "Artifacts have been prepared at ./artifacts"
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
mkdir -p ./cargo-tmp
|
|
||||||
mkdir -p ./docker-target
|
|
||||||
|
|
||||||
rm -rf ./docker-tmp
|
|
||||||
mkdir ./docker-tmp
|
|
||||||
rsync -av --exclude-from=.gitignore --exclude .git/ --exclude docker-tmp/ --exclude cargo-tmp/ --exclude docker-target/ ./ ./docker-tmp/
|
|
||||||
|
|
||||||
docker build -f ./docker/release-builder.Dockerfile -t mumbleweb2-builder:latest .
|
|
||||||
|
|
||||||
docker run -it --rm \
|
|
||||||
-v "$(pwd)/docker-tmp":/work \
|
|
||||||
-v "$(pwd)/docker-target":/work/target \
|
|
||||||
-v "$(pwd)/cargo-tmp/registry":/usr/local/cargo/registry \
|
|
||||||
-v "$(pwd)/cargo-tmp/git":/usr/local/cargo/git \
|
|
||||||
-w /work \
|
|
||||||
mumbleweb2-builder:latest /bin/bash ./bin/build-release.sh
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
FROM rust:1-bookworm AS base
|
|
||||||
|
|
||||||
# Install cargo-binstall for faster CLI installation
|
|
||||||
#RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y screen
|
|
||||||
|
|
||||||
# Install dioxus-cli version 0.6.3 specifically
|
|
||||||
RUN cargo install dioxus-cli --version 0.6.3
|
|
||||||
|
|
||||||
# Set working directory
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
# Add wasm32 target for web development
|
|
||||||
RUN rustup target add wasm32-unknown-unknown
|
|
||||||
|
|
||||||
# Set environment variables
|
|
||||||
ENV PATH="/root/.cargo/bin:$PATH"
|
|
||||||
|
|
||||||
# Default command (can be overridden in docker-compose)
|
|
||||||
CMD ["dx", "--help"]
|
|
||||||
|
|
||||||
@@ -48,8 +48,6 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "64738:64738/tcp"
|
- "64738:64738/tcp"
|
||||||
- "64738:64738/udp"
|
- "64738:64738/udp"
|
||||||
environment:
|
|
||||||
- MUMBLE_CONFIG_WELCOMETEXT=Welcome to the Mumble server
|
|
||||||
network_mode: host
|
network_mode: host
|
||||||
#volumes:
|
#volumes:
|
||||||
# caddy_data:
|
# caddy_data:
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
#FROM rust:latest
|
|
||||||
FROM rust:1.90.0-trixie
|
|
||||||
|
|
||||||
RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
|
|
||||||
|
|
||||||
RUN cargo binstall dioxus-cli --version 0.6.3
|
|
||||||
@@ -31,3 +31,13 @@ script = []
|
|||||||
style = []
|
style = []
|
||||||
# Javascript code file
|
# Javascript code file
|
||||||
script = []
|
script = []
|
||||||
|
|
||||||
|
[bundle]
|
||||||
|
identifier = "xyz.ohea.mumble-web-2"
|
||||||
|
publisher = "OheaCorp"
|
||||||
|
icon = [
|
||||||
|
"icons/32x32.png",
|
||||||
|
"icons/256x256.png",
|
||||||
|
"gui/assets/favicon.ico",
|
||||||
|
"icons/icon.icns",
|
||||||
|
]
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 288 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 967 B |
File diff suppressed because one or more lines are too long
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
Reference in New Issue
Block a user