3 Commits

Author SHA1 Message Date
sam 3e5d884597 first attempt at windows job
Build Mumble Web 2 / windows_build (push) Failing after 32s
Build Mumble Web 2 / linux_build (push) Successful in 4m58s
2025-11-27 23:46:22 -07:00
sam 72cd558e2a prepare for bundling 2025-11-27 23:42:08 -07:00
sam 0e2704fad2 update to 0.7.1 in readme & cleanup unused files 2025-11-27 22:44:42 -07:00
13 changed files with 46 additions and 83 deletions
+32 -2
View File
@@ -1,8 +1,8 @@
name: Build dioxus container
name: Build Mumble Web 2
on: [push]
jobs:
BuildContainer:
linux_build:
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -41,3 +41,33 @@ jobs:
name: mumble-web2-proxy
path: target/release/mumble-web2-proxy
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
+3 -4
View File
@@ -2,13 +2,12 @@
## 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`
## 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`
2. `cd docker && docker compose up`
4. connect to `https://localhost:64444`
@@ -16,7 +15,7 @@
## 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`
3. `cp config.toml.example config.toml`
4. `cargo run -p mumble-web2-proxy` in the background
-27
View File
@@ -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"
-20
View File
@@ -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
-22
View File
@@ -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"]
-2
View File
@@ -48,8 +48,6 @@ services:
ports:
- "64738:64738/tcp"
- "64738:64738/udp"
environment:
- MUMBLE_CONFIG_WELCOMETEXT=Welcome to the Mumble server
network_mode: host
#volumes:
# caddy_data:
-6
View File
@@ -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
+10
View File
@@ -31,3 +31,13 @@ script = []
style = []
# Javascript code file
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

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

File diff suppressed because one or more lines are too long
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB